/* -------------------------------------------------- */
/* THEME VARIABLES - LIGHT & DARK MODE               */
/* -------------------------------------------------- */
 :root {
  --bg-slip: #fff;
}

[data-theme="dark"] {
  --bg-slip: #444;

}

.special-button1 {
 
  
  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;
}
.special-button1:hover {
  background-color: #bbb;
}


 
/* ========== 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: 1rem;
}

tr {
  height: 36px;
}

th, td {
  padding: 8px 6px;
  text-align: center;
  border: none;
  cursor: pointer;
}

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;
}

th {
  background-color: var(--bg-content);
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
}

.th2 {
border-top: 1px solid var(--border-color);

}

.td_title {
cursor: default;

}

.td_title:hover {
box-shadow: 0 0px 0px var(--accent-color);

}

/* ========== ADDITIONAL TABLE DESIGNS ========== */

.outcome_table {

border:1px solid var(--border-color);
box-shadow: 0 2px 4px var(--accent-color);

}

.special-button { width: 42%;
max-width: 150px;
height: 30px;}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  table { width: 100%; }
  .td_title { width: 90px; }


}
@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-cell {

box-shadow: 0 2px 4px rgba(0, 200, 100, 0.8);
  background-color: rgba(0, 200, 100, 0.05);
  border-radius: 4px;
  padding: 4px;
  gap: 8px;
}

.loser-cell {
  box-shadow: 0 2px 4px rgba(200, 0, 50, 0.8);
  background-color: rgba(200, 0, 50, 0.05);
  border-radius: 4px;
  padding: 4px;
  gap: 8px;
}

.grey-cell {

 box-shadow: 0 2px 4px rgba(120, 120, 120, 0.4);
  background-color: rgba(120, 120, 120, 0.06);
  border-radius: 4px;
  padding: 4px;
  gap: 8px;
}

/* 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.4) !important;
  transition: background 0.3s ease-in-out;
}

.highlights {
  background-color: yellow !important;
  color: #222;
}

/* ========== 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: 400px;
  background: var(--bg-slip);
  padding: 15px;
  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: 36px;
  overflow: hidden;
  padding-top: 6px;
  background: var(--btn-bg);
  border-top: 2px solid var(--border-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: 18px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: bold;
  z-index: 1000;
}

.bet-close {
  top: 10px;
  right: 15px;
}

.minimize-btn {
  top: 6px;
  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);
}

.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:18px;
    background:none; 
    color: var(--text-color);
}

    .hidden-rows {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    cursor:default;
}

   .hidden-rows-td {
   cursor:default;
}

   .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:5px;
		
    }
.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;
}
