/* -------------------------------------------------- */
/* THEME VARIABLES - LIGHT & DARK MODE               */
/* -------------------------------------------------- */
 :root {
  --bg-slip: #444;
}

[data-theme="dark"] {
  --bg-slip: #444;

}

.fighter-chart {

padding-bottom: 0px;
margin-bottom:0px;
}

/* === Not ready box === */

.note-box {
  font-weight: 500;
  padding: 14px 16px;
  font-size: 14px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.05); /* subtle transparency */
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--accent-color, #ddd);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin: 12px auto;  
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

  /* Upcoming picks - darker blue */
.note-upcoming {
 border-color: rgba(0, 123, 255, 0.3);
  color: #7abaff;
}

/* === PICKS and CONFIDENCE === */

.pick-row {
 backgroundxx: linear-gradient(180deg, #1a1a1a, #2a2a2a); 
    border-radius: 0 0 20px 20px; 
    padding: 5px 0; /* Minimal padding to fit row */
    animation: fadeInRow 0.5s ease-out; /* Smooth entry */
    border-top: 0px solid;
    padding-bottom: 2px;
}


.pick-label-td {
    width: 10%; /* Narrow column for label */
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--border-color);
cursor: default;
}

   .pick-label-td:hover {
box-shadow: 0 0px 0px var(--accent-color);
 cursor: default;
}

.pick-label {
    color: #00ff00; /* Green, matching your theme */
    font-weight: bold;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 2px;
}

.pick-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #00ff00;
    animation: underlineGrow 0.5s ease-out forwards;
}

.pick-fighter-td {
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-bottom: 2px;
}

.pick-fighter-td:hover {
box-shadow: 0 0px 0px var(--accent-color);
 cursor: default;
}

.fighter-highlightx {

    font-size: 1.1em;
    font-weight: bold;
    
    
    position: relative;
}

.fighter-highlightx::before {
    margin-right: 5px;
    opacity: 0.7;
}


.pick-confidence-td {
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.pick-confidence-td:hover {
box-shadow: 0 0px 0px var(--accent-color);
 cursor: default;
}

.confidence-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.confidence-text {
    color: #e0e0e0;
    font-weight: normal;
    margin-right: 5px;
}

.confidence-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

.confidence-badge.prediction-very-high {
    background: radial-gradient(circle, #00cc00, #009900); /* Bright green glow */
    color: #fff;
}

.confidence-badge.prediction-high {
    background: radial-gradient(circle, #66ff66, #33cc33); /* Light green glow */
    color: #fff;
}

.confidence-badge.prediction-neutral {
    background: radial-gradient(circle, #ffff66, #cccc00); /* Yellow glow */
    color: #000;
}

.confidence-badge.prediction-low {
  background: radial-gradient(circle, #ffd966, #e67e22); /* softer yellow to orange */
  color: #000; /* black text */
}

.confidence-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    filter: blur(8px);
    z-index: 0;
    animation: pulse 1.5s infinite;
}

.pick-note-td {
    padding: 10px;
    text-align: center;
    background: linear-gradient(180deg, #1a1a1a, #2a2a2a); 
}

.pick-note-td:hover {
box-shadow: 0 0px 0px var(--accent-color);
 cursor: default;
}

.plain-td:hover {
box-shadow: 0 0px 0px var(--accent-color);
 cursor: default;
}

.note-text {
    color: #ffcc00; /* Gold for underdog note */
    font-style: italic;
    font-size: 0.9em;
}

@keyframes fadeInRow {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 50%; }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
}

.pick-row:hover .confidence-badge {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.confidence-bars {
  display: flex;
  gap: 4px;
  padding: 5px 0;
 text-align: center;
  align-items: center;
  justify-content: center;
}

.barx {
  width: 6px;
  height: 20px;
  border: 1px solid #00cc00; /* Keep green border */
  border-radius: 3px;
}

.barx.filled {
  background: radial-gradient(circle, #00cc00, #388E3C); /* Bright green to deep muted green */
  transition: background 0.3s ease; /* Smooth gradient transition */
}

/* Confidence levels (0-5 bars) */
.confidence-0 .barx { background: transparent; }
.confidence-1 .barx:nth-child(-n+1) { background: radial-gradient(circle, #00cc00, #388E3C); }
.confidence-2 .barx:nth-child(-n+2) { background: radial-gradient(circle, #00cc00, #388E3C); }
.confidence-3 .barx:nth-child(-n+3) { background: radial-gradient(circle, #00cc00, #388E3C); }
.confidence-4 .barx:nth-child(-n+4) { background: radial-gradient(circle, #00cc00, #388E3C); }
.confidence-5 .barx:nth-child(-n+5) { background: radial-gradient(circle, #00cc00, #388E3C); }


.icon-row {
  transition: all 0.5s ease;
  height:30px;
}

.icon-bar {
  display: flex;
  justify-content: center; /* Center icons */
  align-items: center;
  gap: 15px;
  padding: 5px;
  width: fit-content;
  margin: 0 auto;
}

.icon-link {
  display: flex;
  align-items: center;
  color: #fff; /* White by default */
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease, font-size 0.3s ease;
}

.icon-link[type="submit"] {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit; /* Match link font */
  font-size: inherit; /* Match link size */
  color: inherit; /* Match link color */
  text-decoration: none; /* No underline */
  outline: none; /* Remove focus outline for cleaner look */
}

.icon-link[type="submit"]:hover,
.icon-link[type="submit"]:focus {
  background: none; /* Ensure no hover background */
  border: none;
}

.icon-link i {
  margin-right: 5px;
}

.icon-link .revealed-text {
  color: #fff; /* White text always visible */
  font-size: 0.9rem;
  margin-left: 3px;
  white-space: nowrap;
  transition: color 0.3s ease, font-size 0.3s ease; /* Smooth color/size change */
}

/* Green only on specific icon-link hover */
.icon-link:hover {
  color: #00cc00; /* Green on hover */
  font-size: 1.2rem; /* Slightly larger */
}

.icon-link:hover .revealed-text {
  color: #00cc00; /* Green text on hover */
  font-size: 0.95rem; /* Slightly larger */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .icon-bar {
    gap: 10px; /* Tighter on mobile */
  }

  .icon-link .revealed-text {
    font-size: 0.75rem; /* Smaller on mobile */
  }
  
  
  .tablewrapper {
    overflow-x: hidden;
    padding: 0 4px;
  }

  table {
    font-size: 0.95rem;
  }

  td, th {
    word-break: break-word;
    white-space: normal;
  
}
}


/* === Summary WHY WIN and UPSET === */

/* Section titles */
.section-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #ffd86b;
    text-transform: uppercase;
    padding-top: 4px;
	padding-bottom: 4px;
    letter-spacing: 0.5px;
}

/* Highlight keywords like *KO/TKO*, *Submission*, *Decision* */
.summary-box em {
    font-style: normal;
    font-weight: 600;
    color: #f39c12;
}

/* Specific highlight colors by keyword */
.summary-box .ko { color: #e74c3c; }        /* red */
.summary-box .sub { color: #9b59b6; }       /* purple */
.summary-box .dec { color: #2ecc71; }       /* green */


.summary-box {
    backgroundxx: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
    border-left: 4px solid #3a3a3a;
    padding: 14px 18px;
	width: 98%;
    line-height: 1.65;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: #ddd;
    transition: all 0.25s ease-in-out;
	font-size: 1.1em;
}

.summary-box:hover {
    box-shadow: 0 0 12px rgba(255, 216, 107, 0.15);
    background: linear-gradient(180deg, #202020 0%, #151515 100%);
	transition: box-shadow 0.3s ease;
}



.tooltip-box {
  display: none;
  position: absolute;
  background-color: #222;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  max-width: 240px;
  z-index: 9999;
  margin-top: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tooltip-trigger {
  display: inline-block;
  margin-left: 5px;
  cursor: pointer;
  font-weight: normal;
  color: #555;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
  width:100%;
}

.special-button1xxx {
 
  
  background-color: var(--text2-color);
  color: var(--bg-body); /* Ensures readability */
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
  width: 35%;
  text-align: center;
 margin: 0 auto 8px auto;
 margin-left: 10px;
 margin-right: 10px;
 max-width:120px;
 padding:8px;
}



@keyframes shimmer {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

/* Optional: keep hover without nuking gradients */
.special-button1:hover {
  filter: brightness(1.05);
}



 
/* ========== THEME TABLE STYLES (LIGHT/DARK READY) ========== */

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  color: var(--accent-color); /* or a different shade */
  text-decoration: underline;
}

table {
  width: 700px;
  margin: 20px auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-content);
  font-size: 1.03rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

tr {
  height: 38px;

}


th, td {
  text-align: center;
  border: none;
  cursor: pointer;
  padding-bottom: 10px;
  padding-top: 10px;
}


@media (hover: hover) and (pointer: fine) {
  td:hover {
    box-shadow: 0 1px 2px var(--accent-color);
  }
}


tr:not(:last-child) td {
  border-bottom: 0px solid var(--border-color);
}

tr:first-child th:first-child {
  border-top-left-radius: 8px;
}

tr:first-child th:last-child {
  border-top-right-radius: 8px;
}

thead th {
  background: linear-gradient(to right, green, grey);
  color: white;
  padding: 10px;
  text-align: left;
  
  font-family: 'Montserrat', 'Arial Black', sans-serif; /* Bold, athletic feel */
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px
}

th {
  
  
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
}

.th2 {
border-top: 1px solid var(--border-color);

}

.td_title {
cursor: default;
 padding-left:8px;
font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
}

.td_title:hover {
box-shadow: 0 0px 0px var(--accent-color);

}

/* ========== ADDITIONAL TABLE DESIGNS ========== */

.outcome_table {



}

.special-button { width: 42%;
max-width: 150px;
height: 30px;}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  table { width: 100%; }
  .td_title { width: 90px; }

.tablewrapper { padding: 2px; }
}
@media (min-width: 769px) {
  
  .td_title { width: 140px; }
.cardTable th,
.cardTable td {
  min-width: 200px;
}
.tablewrapper {
  float: center !important;
  text-align: center;
  background-color: var(--bg-container);
}

}
/* ========== GENERAL COMPONENTS ========== */


.tablewrapper {
  background-color: var(--bg-container);
}

.td_title {
  text-align: left;
}

.bet-cell {
    align-items: center;
    gap: 8px; 
    
}

.winner-cellx {
  box-shadow: 0 1px 2px rgba(34, 197, 94, 0.8);
  background-colorx: rgba(34, 197, 94, 0.08);
  border-radius: 4px;
  padding: 4px;
  gap: 8px;
}

.loser-cellx {
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.8);
  background-colorx: rgba(239, 68, 68, 0.08);
  border-radius: 4px;
  padding: 4px;
  gap: 8px;
}


.winner-cell {
 box-shadow: 0 2px 4px rgba(34, 197, 94, 0.8);
  background-colorx: rgba(34, 197, 94, 0.08);
  border-radius: 4px;
  padding: 4px;
  gap: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.loser-cell {
box-shadow: 0 2px 4px rgba(34, 197, 94, 0.8);
  background-colorx: rgba(34, 197, 94, 0.08);
  border-radius: 4px;
  padding: 4px;
  gap: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grey-cell {
 box-shadow: 0 2px 4px rgba(34, 197, 94, 0.8);
  background-colorx: rgba(34, 197, 94, 0.08);
  border-radius: 4px;
  padding: 4px;
  gap: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}




/* Badge for odds (background still handled in PHP) */
.odd-badge {
  padding: 2px 4px;
  border-radius: 2px;
  margin-left:28px;
  margin-bottom: 2px;
  font-size: 0.7em;
  color: var(--btn-text);
   width: 36px;
  box-sizing: border-box; 
  text-align: center; 
  display: inline-block;
}

.bet-cell span.odd-badge {
  display: inline-block;
  min-width: 36px;
  text-align: center;
}

.circle {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 5px;
}

.green { background-color: green; }
.orange { background-color: orange; }
.red { background-color: red; }

/* ========== TEXT + HIGHLIGHT ========== */
.fighter-name {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
}


.highlight {
  font-size: 12px;
  font-weight: bold;
  background-color: rgba(255, 215, 0, 0.35) !important;   /* Golden yellow (like #FFD700) */
  border: 1px solid rgba(255, 200, 0, 0.7) !important;    /* Slightly deeper gold border */
  box-shadow: 
    0 0 4px rgba(255, 215, 0, 0.4),
    0 0 8px rgba(255, 180, 0, 0.2) !important;          /* Layered warm glow */
  color: #fff !important;
  transition: all 0.3s ease-in-out;
}

.highlight:hover {
  background-color: rgba(255, 215, 0, 0.5) !important;
  box-shadow: 
    0 0 10px rgba(255, 215, 0, 0.6),
    0 0 18px rgba(255, 180, 0, 0.3) !important;
  transform: translateY(-1px);
}


/* ========== EXPANDABLE INFO ========== */
.info-container {
  top: 50px;
  max-width: 700px;
  padding: 15px;
  font-size: 14px;
}

.expand-link {
  color: var(--text-color);
  cursor: pointer;
  text-decoration: underline;
  font-weight: bold;
}

.expandable-content {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: var(--bg-content);
  border-left: 4px solid var(--accent-color);
  border-radius: 5px;
}

.expandable-content p {
  margin: 5px 0;
}

.hiddenx, .hiddenxx { display: none; }

.small-input {
  width: 50%;
  display: block;
  margin: auto;
}

/* ========== BETTING WINDOW ========== */
.bet-window {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: 90%;
  max-width: 460px;
  background: var(--bg-slip);
  padding: 10px;
  box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
  border-top: 3px solid var(--special-btn-hover);
  border-radius: 10px 10px 0 0;
  z-index: 1000;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.bet-window.active {
  transform: translateX(-50%) translateY(0%);
  opacity: 1;
  pointer-events: auto;
}

.bet-window.minimized {
  height: 42px;
  overflow: hidden;
  padding-top: 4px;
  background: var(--btn-bg);
  border-top: 4px solid var(--accent-color);
  z-index: 999;
  transform: translateX(-50%) translateY(calc(100% - 36px));
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.bet-window:not(.active):not(.minimized) {
  pointer-events: none;
}

/* ========== BUTTONS + INPUTS ========== */
.bet-close,
.minimize-btn {
  position: absolute;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: bold;
  z-index: 1000;
}

.bet-close {
  top: 2px;
  right: 15px;
}

.minimize-btn {
  top: 2px;
  left: 10px;
}

.bet-input,
.stake-input {
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-align: right;
  background: var(--bg-container);
  color: var(--text-color);
}

.bet-input {
  width: 100%;
  margin-top: 10px;
}

.stake-input {
  flex: 1;
  max-width: 90px;
  height: 40px;
}

.save-button {
  background-color: var(--special-btn-bg);
  color: var(--special-btn-text);
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 98%;
  margin-top: 10px;
  font-size: 14px;
}

.save-button:hover {
  background-color: var(--special-btn-hover);
}

.currency-symbol-left,
.currency-label {
  font-weight: bold;
  font-size: 14px;
  min-width: 18px;
  margin-right: 6px;
}

/* ========== COMMENT AREA ========== */
.comment-box {
  width: 100%;
  height: 80px;
  padding: 8px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-top: 10px;
  resize: none;
  background-color: var(--bg-content);
  color: var(--text-color);
}

.add-comment-link {
  text-decoration: underline;
  color: var(--text-color);
  font-weight: bold;
  cursor: pointer;
}

/* ========== SELECTIONS & STAKE PANEL ========== */
.selection-table {
  width: 98%;
  max-width:392px;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}

.selection-table th, .selection-table td {
  padding: 2px 4px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.remove-btn-inline {
  background: none;
  border: none;
  color: red;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  margin-right: 5px;
  padding: 0;
  vertical-align: middle;
}

.odds-input {
  width: 6ch;
  font-weight: bold;
  text-align: center;
}

.stake-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
}

.payout-info {
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-color);
  min-width: 65px;
  text-align: right;
}

/* ========== PARLAY + RETURN ========== */
.parlay-summary {
  font-size: 14px;
  font-weight: bold;
  margin-top: 0px;
  width: 98%;
  max-width: 392px;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  background-color: var(--box-bg);
}

.parlay {
  display: flex;
  justify-content: space-between;
}

.bet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.stake-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.stake-center {
  flex: 1.2;
}

.stake-right {
  text-align: right;
  font-size: 13px;
  color: var(--text-color);
}

.payout-title {
  font-size: 11px;
  color: var(--text-secondary);
}

.payout-amount {
  font-size: 14px;
  font-weight: bold;
}

/* ========== EVENT NAVIGATION ========== */
.event-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--bg-container);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  user-select: none;
  margin: 0 auto 20px auto;
  max-width:700px;
}

.event {
max-width:700px;
text-align: center;
margin: 0 auto 20px auto;
}

.event-details {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.event-details h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.event-details p {
  margin: 5px 0;
  font-size: 1em;
}

.nav-button {
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--btn-bg);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: var(--btn-text);
}

@media (max-width: 600px) {
  .nav-button {
    width: 30px;
  }
  
  .odd-badge {
  margin-left:12px;
}

  .event-details h2 {
    font-size: 14px;
  }
}

/* ========== TOOLTIP ========== */
.tooltip {
  position: absolute;
  background: var(--text-color);
  color: var(--bg-content);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9em;
  line-height: 1.4em;
  max-width: 300px;
  z-index: 9999;
  display: none;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-align: center;
}

.score-positive {
  color: var(--success-text);
   font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.25px; 
}

.score-default {
  color: var(--text-color);
}

/* ========== HIDDEN ROWS AND BAR ========== */

.toggle-btn {
    cursor: pointer;
    padding: 4px;
    transition: transform 0.6s ease; /* Smooth animation */
    font-size:26px;
    background:none; 
    color: var(--text-color);
    text-align: center;
		padding:0px;
		padding-left:12px;
}



.toggle-btnxx {
        color: var(--accent-color); 
        transition: opacity 0.6s ease-in-out;
		font-size:26px;
		text-align: center;
		padding:0px;
		padding-left:5px;
		
    }

    .hidden-rows {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    cursor:default;
}

   .hidden-rows-td {
   cursor:default;
   padding-left:8px;
   font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
}

   .hidden-rows-td:hover {
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.5);
}

  .hidden-rows2 {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.hidden-rows.show {
    display: table-row;
    opacity: 1;
}

.expandedx {
        color: var(--accent-color); 
        transition: opacity 0.6s ease-in-out;
		font-size:26px;
		text-align: center;
		padding:0px;
		padding-left:12px;
		
    }
.stacked-bar {
    display: flex;
    height: 16px; /* Adjust bar height */
    width: 90%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #0cb901;
    text-align: center; /* Center text horizontally */
}

.bar {
    height: 100%;
    display: flex;
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
    font-size: 10px;
    overflow: visible;
    font-weight: bold;
    white-space:nowrap;
    color: white; /* Ensure contrast */
}

/* ========== ODDS ARROWS ========== */

.odd-badge-wrapper {
display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.odd-arrow {
  position: relative;
  top: 2px;
  right: 0px;
  line-height: 1;
  pointer-events: none;
   z-index: 10;
   
     font-size: 12px;
  font-weight: bold;
}

/* ========== Navigation ========== */

.nav-overlay-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 96%;
  transition: background-size 0.2s ease;
}

/* Positioning */
.nav-overlay-btn.left {
  left: -4px;
 background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><polygon points="70,10 30,50 70,90" fill="none" stroke="%23999" stroke-width="2"/></svg>');
}

.nav-overlay-btn.right {
  right: -4px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><polygon points="30,10 70,50 30,90" fill="none" stroke="%23999" stroke-width="2"/></svg>');
}

/* On hover — solid filled triangle */
.nav-overlay-btn.left:hover {
	
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><polygon points="70,10 30,50 70,90" fill="rgba(153,153,153,0.5)" stroke="%23999" stroke-width="2"/></svg>');
  
}

.nav-overlay-btn.right:hover {

  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><polygon points="30,10 70,50 30,90" fill="rgba(153,153,153,0.5)" stroke="%23999" stroke-width="2"/></svg>');
  
}

@media (max-width: 768px) {
  .nav-overlay-btn.right {
    right: -5px;
	}
.nav-overlay-btn.left {
	 left: -5px;
}
	}

/* ========== READ ME BUTTONS ========== */

    .header-row {
      display: flex;
      gap: 10px;
    }

    .info-button {
  padding: 4px 6px;
      border-radius: 10%;
      border: 1px solid var(--border-color);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      transition: background-color 0.2s;
	  gap: 6px;
    }
    
  

    .info-button:hover {
      background-color: #bbb;
    }
    

@keyframes flashRedTwice {
  0%, 100% { color: inherit; }
  20%, 60% { color: red; }
  40%, 80% { color: inherit; }
}

.flash-twice {
  animation: flashRedTwice 2s ease-in-out 1;
}




    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
      z-index: 999;
	  overflow-y: auto;
    }

    .modal {
      background: var(--bg-content);
      padding: 20px;
      border-radius: 8px;
      width: 96%;
      max-width: 700px;
      font-size:1.3rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      position: relative;
	  max-height: 90vh;
  overflow-y: auto;
  margin-top:10px;
  text-align: left;
    }
	
	@media (max-width: 768px) {
  .modal {
    margin-top:60px;
	} }
	
	.modal b {
background-color: #fff3cd;
color: #333;
padding: 2px 4px;
border-radius: 3px;
}

    .modal h3 {
      margin-top: 0;
    }

    .close-button {
      background-color: var(--accent-color);
      border: none;
      padding: 4px 6px;
      border-radius: 4px;
      cursor: pointer;
      float: right;
	  color: #222;
    }

    .close-button:hover {
      background-color: #bbb;
    }
    
    
.path-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.path-column {
    flex: 1 1 300px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.path-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.step {
    margin-bottom: 10px;
    padding: 5px;
    text-align: left;
    border-left: 3px solid #007BFF;
    font-family: Arial, sans-serif;
}

.stepr {
    margin-bottom: 10px;
    padding: 5px;
    text-align: left;
    border-left: 3px solid #D9534F;
    font-family: Arial, sans-serif;
}

.summary {
    margin-top: auto;
    font-style: italic;
    margin-bottom: 10px;
}

.prediction {
    font-weight: bold;
    color: #FFFFFF; /* fallback for dark */
    color: color-mix(in srgb, #000 40%, #FFF); /* adapts in most modern browsers */
    text-align: center;
}
.prediction-high {
    color: #28a745; /* Green */
    font-weight: bold;
}

.prediction-low {
    color: #dc3545; /* Red */
    font-weight: bold;
}

.prediction-neutral {
    color: #ffc107; /* Yellow */
    font-weight: bold;
}

/* CSS Variables for easy color management */
:root {
  --text-base: #f5f5f5;
  --text-muted: rgba(255,255,255,0.80); /* Increased for less blending */
  --text-positive: #66BB6A;
  --text-negative: #EF5350;
  --text-moderate: #FFC107;
  --bg-card: rgba(255,255,255,0.04);
  --border-light: rgba(255,255,255,0.12);
  --bg-hover: rgba(255,255,255,0.08);
  --green-accent: rgba(144,238,144,0.55);
  --yellow-accent: rgba(255,215,0,0.55);
  --red-accent: rgba(255,99,71,0.55);
  --gray-accent: rgba(200,200,200,0.30);
  --highlight-bg: rgba(255,255,255,0.05); /* For notes/tables */
}
/* Betting Report button */
.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #eaeaea;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}
.report-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.25);
}
.report-btn:active {
  transform: scale(0.98);
}
.report-btn i {
  opacity: 0.9;
}
/* Modal overlay */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}
.report-modal-overlay.is-open {
  display: flex;
}
/* Modal card */
.report-modal {
  width: min(920px, 96vw);
  max-height: 86vh;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: #141414;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}
/* Header */
.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(circle 140px at top left, rgba(255,255,255,0.06), transparent);
}
.report-modal-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-modal-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-base);
}
.report-modal-title small {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
}
/* Close button */
.report-close {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.report-close:hover {
  background: rgba(255,255,255,0.10);
}
/* Body scroll */
.report-modal-body {
  padding: 12px 14px 14px;
  overflow: auto;
  max-height: calc(86vh - 54px);
  overflow-wrap: break-word;
}
/* JSON viewer */
.report-json {
  margin: 0;
  padding: 12px 12px;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  white-space: pre;
  overflow: auto;
}
/* Fallback text */
.report-empty {
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}
/* --- Report UI inside modal --- */
.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px; /* Increased for scanability */
}
.report-cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent); /* Softer gradient for niceness */
  transition: box-shadow 0.2s ease;
}
.report-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.report-card h4 {
  margin: 0 0 12px 0;
  font-size: 17px; /* Bolder hierarchy */
  font-weight: 700;
  color: var(--text-base);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-card h4 i {
  font-size: 17px; /* Larger icons */
  color: var(--text-moderate); /* Subtle color for positive/negative sections, can override */
}
.report-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.report-kv .k {
  color: var(--text-muted);
  font-weight: 700;
}
.report-kv .v {
  color: var(--text-base);
  font-weight: 600;
  word-break: break-word;
}
.report-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px; /* Rounded for niceness */
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.06);
  color: var(--text-base);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.15s ease;
}
.badge:hover {
  background: var(--bg-hover);
}
.badge-strong {
  border-color: var(--green-accent);
  background: rgba(144,238,144,0.12);
  color: var(--text-positive);
}
.badge-moderate {
  border-color: var(--yellow-accent);
  background: rgba(255,215,0,0.12);
  color: var(--text-moderate);
}
.badge-weak {
  border-color: var(--gray-accent);
  background: rgba(255,255,255,0.05);
}
.badge-negative {
  border-color: var(--red-accent);
  background: rgba(255,99,71,0.12);
  color: var(--text-negative);
}
.badge-high { border-color: var(--green-accent); color: var(--text-positive); background: rgba(144,238,144,0.08); }
.badge-medium { border-color: var(--yellow-accent); color: var(--text-moderate); background: rgba(255,215,0,0.08); }
.badge-low { border-color: var(--red-accent); color: var(--text-negative); background: rgba(255,99,71,0.08); }
.report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(0,0,0,0.25);
  overflow: auto;
}
.report-table th, .report-table td {
  padding: 16px; /* Increased vertical for clarity */
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.report-table th:last-child, .report-table td:last-child { border-right: none; }
.report-table th {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.04);
}
.report-table th:nth-child(1) { width: 30%; }
.report-table th:nth-child(2), .report-table th:nth-child(3), .report-table th:nth-child(6) { width: 15%; }
.report-table th:nth-child(4), .report-table th:nth-child(5) { width: 20%; }
.report-table tr:last-child td { border-bottom: 0; }
.report-table tr:hover { background: var(--highlight-bg); transition: background 0.2s ease; } /* Highlight for scanability */
.report-table .text-right { text-align: right; }
.text-positive { color: var(--text-positive); font-weight: 600; }
.text-negative { color: var(--text-negative); font-weight: 600; }
.report-pill {
  display: inline-block;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 6px; /* Rounded */
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.06);
  white-space: nowrap;
}
.report-note {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: 12px;
  margin-top: 8px;
  font-style: italic;
  background: var(--highlight-bg);
  word-break: break-word;
  hyphens: auto;
}
.report-hr {
  height: 1.5px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
  border: 0;
  margin: 14px 0;
}
.report-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.report-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-style: italic;
}
/* Media Queries */
/* Tablets/Medium Screens */
@media (max-width: 820px) {
  .report-cards-2 { grid-template-columns: 1fr; }
  .report-kv { grid-template-columns: 120px 1fr; }
  .report-modal { max-height: 90vh; }
  .report-modal-body { max-height: calc(90vh - 54px); }
  .report-card { padding: 14px; }
  .report-table th, .report-table td { padding: 12px 14px; }
}
/* Phones/Small Screens - Drastic simplifications */
@media (max-width: 480px) {
  .report-modal-overlay { padding: 0px; }
  .report-modal { border-radius: 12px; max-height: 92vh; width: 100%; padding: 2px; margin: 0px; }
  .report-modal-body { width: 100%; padding: 0px; padding-top:16px; }
  .report-modal-header { padding: 5px 6px; }
  .report-modal-title h3 { font-size: 14px; }
  .report-modal-title small { font-size: 13px; }
  .report-close { width: 42px; height: 42px; }
  .report-grid { gap: 16px; padding: 0px; width: 100%; min-width:100%;  }
  .report-card { padding: 6px; } /* More air */
  .report-card h4 { font-size: 14px; }
  .report-card h4 i { font-size: 14px; }
  .report-kv {
    gap: 10px; /* More space between pairs */
    font-size: 13px;
  }
  .report-kv .k { font-size: 13px; }
  .report-kv .v { font-size: 14px; }
  .report-table th, .report-table td {
    padding: 4px; /* Reduced padding */
    font-size: 12px; /* Reduced font size */
    line-height: 1.5;
  }
  .report-table { min-width: 100%; overflow: auto; border-spacing: 0; }
  /* Hide True/Implied columns */
  .hide-mobile { display: none; }
  /* Adjust widths for remaining columns */
  .report-table th:nth-child(1), .report-table td:nth-child(1) { width: 40%; } /* Bet/Market */
  .report-table th:nth-child(4), .report-table td:nth-child(4) { width: 20%; } /* Edge */
  .report-table th:nth-child(5), .report-table td:nth-child(5) { width: 20%; } /* EV/Confidence */
  .report-table th:nth-child(6), .report-table td:nth-child(6) { width: 20%; } /* Stake */
  /* Expandable rationale/reason */
  .report-expandable {
    max-height: 3em; /* Truncate initially */
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
  }
  .report-expandable:after {
    content: '... more'; /* Ellipsis indicator */
    position: absolute;
    bottom: 0;
    right: 0;
    background: #141414;
    color: var(--text-muted);
    padding: 0 2px;
  }
  .report-expandable:hover, .report-expandable:focus {
    max-height: 20em; /* Expand on hover/tap */
  }
  .report-expandable:hover:after, .report-expandable:focus:after { content: ''; }
  .report-note { font-size: 14px; /* Reduced */ }
  .report-hr { margin: 16px 0; }
  .badge, .report-pill { font-size: 10px; padding: 3px 6px; }
  .report-empty { font-size: 14px; padding: 8px; }
  /* Full width rationale/reason rows */
  .rationale-row td, .reason-row td {
    padding: 4px 0;
    border-top: none;
    border-bottom: none;
    background: var(--highlight-bg);
  }
}