/* ========== READ ME BUTTONS ========== */

.odds-block {
  margin-bottom: 28px;
  padding: 8px;
background: rgba(100, 120, 180, 0.12);
    border-radius: 10px;
}
.odds-block label {
  display: block;
  margin-top: 2px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #f44336; /* Red color */
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}
.modal-close:hover {
  color: #c62828;
}


.modal-x {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
position: relative;
  background: var(--bg-container);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 10px;
  width: 90%;
  max-width: 460px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-family: sans-serif;
}

.modal-stake {
	text-align: center;
	
}

.modal-content h2 {
  margin-top: 0;
  text-align: center;
  padding:5px;
}

.modal-content label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.modal-content input {
  width: 80px;
  padding: 6px;
  margin-top: 4px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.buttonx[type="submit"] {
 background-color: var(--bg-btn);
    color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.buttonx[type="submit"]:hover {
  background-color: #2980b9;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 32px;
    background-color: rgba(0,0,0,0.05);
    color: white;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
	width:64px;
}

.pc_only {
	display: inline-block;
}

@media (max-width: 768px) {
.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.05);
    color: white;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
	width:24px;
}

.pc_only {
	display: none;
}

}

.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;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  color: var(--accent-color); /* or a different shade */
  text-decoration: underline;
}

    .header-row {
      display: flex;
      gap: 10px;
      margin-bottom: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;
    }
  
  /* ========== Others ========== */  
  
  .betting-reminder {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

.betting-reminder h4 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--accent-color);
}

.betting-reminder ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
}

.betting-reminder li {
  margin-bottom: 8px;
}

.betting-reminder .alt-tip {
  margin-top: 16px;
  color: #aaa;
  font-style: italic;
}

    
/* Base style for all note boxes */
.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 0;
}

  /* Upcoming picks - darker blue */
.note-upcoming {
 border-color: rgba(0, 123, 255, 0.3);
  color: #7abaff;
}

/* Preliminary picks - darker amber */
.note-preliminary {
border-color: rgba(255, 193, 7, 0.3);
  color: #ffda7a;
}

/* Finalized picks - darker green */
.note-finalized {
border-color: rgba(40, 167, 69, 0.3);
  color: #8be29f;
}


/* Upcoming picks */
[data-theme="dark"] .note-upcoming {
  border-color: rgba(0, 123, 255, 0.3);
  color: #7abaff;
}

/* Preliminary picks */
[data-theme="dark"] .note-preliminary {
  border-color: rgba(255, 193, 7, 0.3);
  color: #ffda7a;
}

/* Finalized picks */
[data-theme="dark"] .note-finalized {
  border-color: rgba(40, 167, 69, 0.3);
  color: #8be29f;
}


    
.Chartcontainer {
  width: 700px;
  height: 400px;
  position: relative;  
  margin: 0 auto;
}

.Chartcontainer canvas {
  position: absolute;  
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.stats-table {
	width:700px;
  border-collapse: collapse;
  margin-bottom: 20px;
  text-align:center;
}


.tablewrapper {
  margin: 0 auto;
  text-align: center;
  height:100%;
  background-color: var(--bg-container);
  width: 700px;
}

@media (max-width: 768px) {
.Chartcontainer {
	width:100%;
	height: 350px !important;
} 
.tablewrapper {
  width: 100%;
}

}

.stats-table {
	width:100%;
}


.stats-table th,
.stats-table td {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  text-align: left;
}

.stats-table thead {
  font-weight: bold;
}


  .stats-table {
    display: table;
  }


  .stats-table thead {
    display: none;
  }

  .stats-table tr {
    margin-bottom: 12px;
border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
  }

  .stats-table td {
    padding: 6px 10px;
    text-align: left;
  }

  .stats-table td:first-child {
    font-weight: bold;
    
  }

  .stats-table td:last-child {
    text-align: right;
    
  }
}



.tab-highlight {
  background: var(--accent-color); 
}

.fade-in {
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0.8;
    transform: translateY(0px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0.8;
    transform: translateY(-4px);
  }
}

.picks-tabs, .picks-subtabs {
  text-align: left;
  margin-bottom: 10px;
}
.tab-buttons-wrapper,
.subtab-buttons-wrapper {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border-radius: 6px;
  background: none;
}

.tab-highlight {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 6px;
  background: var(--accent-color);
  z-index: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.tab-button, .subtab-button {
  position: relative;
  z-index: 1;
  padding: 4px 10px;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  color: var(--text1-color);
  transition: color 0.2s ease;
}

.tab-button.active, .subtab-button.active {
  color: #222;
}

.tab-button:hover, .subtab-button:hover {
  background: none;
}

.ticket-card {
  background: #2c3e36;
  border-left: 0px solid #ffd700;
  color: #fff;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  max-width: 700px;
}
.ticket-header {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 10px;
  gap: 20px;
}
.ticket-meta {
  font-weight: bold;
  color: #e0e0e0;
}
.ticket-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #333;
  padding-top: 8px;
}
.ticket-item {
  display: flex;
  justify-content: space-between;
  background-color: transparent;
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
}
.ticket-item.won { }
.ticket-item.lost {  }
.ticket-item.pending {  }
.ticket-fighter { flex: 2; font-weight: bold; }
.ticket-bet { flex: 3; text-align: left; }
.ticket-event { flex: 3; font-size: 12px; color: #aaa; }
.ticket-result { flex: 1; text-align: center; font-weight: bold; padding-right: 6px; max-width:20px; justify-content: flex-start; }
.event-date { display: block; font-size: 11px; color: #bbb; }

.delete-button {
  position: absolute;
  top: 8px;
  right: 10px;
  color: red;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  z-index: 1;
}
.ticket-card {
  position: relative; /* Needed for absolute position inside */
}

