

html, body { 
	background-color: #1a1a1a; 
	color: #ffffff; 
	font-family: Arial, sans-serif; 
	margin: 0;
	padding: 0;
	height: 100%;
	/*padding-bottom: 500px;*/ /* equal to or more than .footer-bar height */
}
table {
	width: 100%;
	margin-top: 20px;
	border-collapse: collapse;
}

table, th, td {
	border: 1px solid #444;
}

th, td {
	padding: 4px;
	text-align: left;
	vertical-align: top;
}

th {
	background-color: #444;
	color: #fff;
}

tbody tr {
	background-color: #1a1a1a;
}

td {
	color: #fff;
	width: 50%;
	word-break: break-word;
}

a {
	color: #38B6FF;
	display: inline-block;
	max-width: 100%;
}

h2 {
  margin: 0;
  padding: 6px 0; /* optional for consistent spacing */
}
/* Applies to all input fields */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
input[type="datetime-local"] {
    width: 95%;
    height: 48px;
    font-size: 1.2rem; /* reasonable size */
    padding: 10px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
}

/* Applies to all buttons and submit inputs */
input[type="submit"],
button {
    width: 99%; /* ← Add this line */
    height: 48px;
    font-size: 1.2rem; /* reasonable size */
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

select {
    width: 100%;
	max-width: 300px;
    height: 60px;
    font-size: 1.2rem; /* reasonable size */
    padding: 10px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    appearance: none; /* Removes native styling in most browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.form-container-main {
	background-color: #2a2a2a;
	text-align: left;       /* optional: ensures content stays left-aligned */
	padding: 10px 10px;
	border-radius: 12px;
	width: 95%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.form-container-1 {
	background-color: #2a2a2a;
	padding: 10px 10px;
	border-radius: 12px;
	width: 95%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.form-container-transactions {
	background-color: #2a2a2a;
	padding: 10px 10px;
	border-radius: 12px;
	width: 95%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.login-container {
	background-color: #2a2a2a;
	padding: 30px 20px;
	border-radius: 12px;
	width: 90%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.filter-container { 
	margin-top: 20px; 
}

img.fullwidth-top {
  display: block;
  width: 100vw;
  height: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.header-image-container {
  width: 100%;
}

.header-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.page-content {
  padding-left: 10px;
  padding-right: 10px;
  /* no margin-top needed, because container is in flow */
}

.logout-container {
  text-align: right;
  padding: 10px;
}
/*
.logout-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #FE2E3C;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: background-color 0.2s ease;
}
*/
.logout-button:hover {
  background-color: #d82432;
}


.logout-button:hover {
  background-color: #d92833;
}


.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid #444;
  font-size: .95rem; /* or 14px or whatever size you want */
}

.transactions-table th:nth-child(1),
.transactions-table td:nth-child(1) {
  width: 50%;  /* Casino */
}

.transactions-table th:nth-child(2),
.transactions-table td:nth-child(2) {
  width: 25%;  /* Amount */
}

.transactions-table th:nth-child(3),
.transactions-table td:nth-child(3) {
  width: 20%;  /* Date */
}

.transactions-table th:nth-child(4),
.transactions-table td:nth-child(4) {
  text-align: middle;
  width: 5%;  /* Del */
}

.form-container-transaction {
	background-color: #2a2a2a;
	padding: 30px 20px;
	border-radius: 12px;
	width: 90%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	align-items: center; /* Center h2 */
	gap: 20px; /* 👈 This adds spacing between all children, including the <form> */
}

/* Optional: if you want spacing within the form itself too */
.form-container-transaction form {
	display: flex;
	flex-direction: column;
	align-items: center; /* 👈 This horizontally centers all children */
	gap: 16px; /* 👈 Spacing between select/input/button inside the form */
}

.form-container-transaction form input,
.form-container-transaction form select,
.form-container-transaction form button {
	width: 100%;
	max-width: 300px;
}

.edit-btn, .delete-btn { 
	cursor: pointer;
	margin: 0 block;
	display: block;
}

.total-balance {
	margin-top: 20px;
	font-size: 18px;
	color: #ffffff;
	text-align: center;
}
.editbal-link {
	color: #4da6ff;
	text-decoration: none;
}

.balances-table th,
.balances-table td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  text-align: center;
  border-bottom: 1px solid #444;
}


/* Column 1: Casino name */
.balances-table th:nth-child(1),
.balances-table td:nth-child(1) {
  width: 55%; 
  text-align: left;
}

/* Column 2: Date */
.balances-table th:nth-child(2),
.balances-table td:nth-child(2) {
  width: 20%;
  text-align: center;
}

/* Column 3: Balance */
.balances-table th:nth-child(3),
.balances-table td:nth-child(3) {
  width: 20%;
  text-align: right;
  white-space: nowrap;
}

/* Column 4: Edit icon */
.balances-table th:nth-child(4),
.balances-table td:nth-child(4) {
  width: 5%;
  text-align: center;
}

/* Container for edit casino form */
.edit-casino-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
}

/* Grid layout for checkboxes and radios */
.checkbox-grid,
.radio-grid {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 4px;
    margin-top: 5px;
}

.checkbox-grid label,
.radio-grid label {
    font-weight: normal; /* overrides bold from base label */
}

/* Fixed width inputs for special fields */
.edit-casino-container input[type="text"],
.edit-casino-container input[type="url"],
.edit-casino-container input[type="time"] {
    width: 300px;
    padding: 5px;
}

.edit-casino-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.edit-casino-buttons button {
  flex: 1;
  max-width: 200px;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold; /* BOLD TEXT */
}

/* Specific colors */
.edit-casino-buttons button[type="submit"] {
  background-color: #7ED957;
  color: #000;
}

.edit-casino-buttons .delete-button {
  background-color: #D5252D;
  color: #fff;
}


/* Green button override specific to this page */
.edit-casino-container button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.edit-casino-container button:hover {
    background-color: #45a049;
}



/* Makes each input block vertical and uniform */
.form-group {
    margin-bottom: 16px;
}

/* Uniform styling for text/URL/time inputs */
.form-input {
    width: 95%;
    max-width: 95%;
    height: 48px;
    font-size: 1.1rem;
    padding: 10px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Make checkbox rows vertical with spacing */
.checkbox-grid,
.radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.checkbox-grid,
.radio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 5 equal columns */
  gap: 10px;
  margin-top: 5px;
}

.checkbox-grid label,
.radio-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  white-space: nowrap; /* Prevent line wrapping */
}



input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #1a1a1a;
  border: 2px solid #38B6FF;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  margin-right: 10px;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: #38B6FF;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="radio"]:checked::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  display: block;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
}

input[type="checkbox"]:checked::after {
  content: '✔';
  color: black;
  font-size: 14px;
  position: absolute;
  top: -1px;
  left: 2px;
}

.collapsible-section h2 {
	text-align: left;
	margin-left: 10px; /* optional: indent from edge */
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 10px 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.dashboard-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.55;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  display: block; /* <-- Added to support anchor tag styling */
  text-decoration: none; /* <-- Added to remove underline if used as <a> */
  color: inherit; /* <-- Added to inherit text color from parent */
}

.dashboard-button:hover {
  transform: translateY(3px);
  filter: brightness(90%);
}

.dashboard-button:active {
  transform: translateY(6px);
  filter: brightness(85%);
}

.dashboard-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  pointer-events: none;
}

.button-label {
  position: absolute;
  bottom: 5%;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.3vw;
  color: white;
  text-shadow: 1px 1px 3px black;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  font-weight: bold;
}


@media (max-width: 600px) {
  .button-label {
    font-size: 3.5vw;
  }
}





.bonus-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  white-space: nowrap;
}

.bonus-row input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
}

.bonus-row a {
  color: #38B6FF;
  text-decoration: none;
  font-weight: normal;
  font-size: 0.95rem;
}

.hourglass {
  font-size: 14px;
  display: inline;
  margin-left: -1px
}


.version-form input[type="number"] {
	padding: 4px;
	margin-top: 5px;
	width: 100%;
	max-width: 200px;
}

.version-form .btn-update-version {
	padding: 6px 12px;
	background-color: #38B6FF;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
}

.version-form .btn-update-version:hover {
	background-color: #299dd9;
}

@media (max-width: 600px) {
  .balances-table th,
  .balances-table td {
    font-size: 0.9rem;
    padding: 4px;
  }

  .balances-table th:nth-child(1),
  .balances-table td:nth-child(1) {
    width: 45%;  /* Reduce slightly */
  }

  .balances-table th:nth-child(2),
  .balances-table td:nth-child(2) {
    width: 25%;
  }

  .balances-table th:nth-child(3),
  .balances-table td:nth-child(3) {
    width: 25%;
    text-align: right;
  }

  .balances-table th:nth-child(4),
  .balances-table td:nth-child(4) {
    width: 5%;
    text-align: center;
  }
}

body.login-splash {
  background: radial-gradient(circle at center, rgba(255, 0, 0, 0.2) 0%, black 80%), #000;
  background-image: url('/images/bg_splash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-container {
  z-index: 10;
  position: relative;
}

.splash-overlay {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 650px;
  text-align: center;
  z-index: 1; /* Lower than buttons */
  pointer-events: none;
}

.splash-overlay img {
  width: 100%;
  height: auto;
  display: block;
}


.splash-buttons {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  z-index: 2;
}

.splash-buttons button {
  width: 140px;
  height: 60px;
  font-size: 1.4rem;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.splash-buttons button:hover {
  background-color: #c93131;
}

.login-hidden {
  display: none;
}

/* Footer strip container */
.footer-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e53935; /* red strip */
  padding: 10px 0;
  z-index: 999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* Container for footer buttons */
.footer-bar .footer-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
}

/* Footer buttons (e.g., Admin, Log Out) */
.footer-bar .footer-button {
  background-color: #2c2c2c; /* dark gray */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.footer-bar .footer-button:hover {
  background-color: #444;
}
.footer-spacer {
  height: 60px; /* or match your footer height + padding */
}

.footer-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: green;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  line-height: 1;
  min-width: 20px;
  text-align: center;
}
.manage-success-message {
  color: green;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

#casino-grid .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 columns */
  gap: 8px;
}

@media (max-width: 768px) {
  #casino-grid .checkbox-grid {
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
  }
}

@media (max-width: 600px) {
  #casino-grid .checkbox-grid {
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
  }
}

#casino-grid .checkbox-grid label {
  font-size: clamp(12px, 2.5vw, 16px); /* Min 12px, ideal 2.5% viewport, max 16px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  position: relative;
}

#casino-grid .checkbox-grid label:hover::after {
  content: attr(data-fullname);
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1000;
}













/* TEAM BATTLES ADMIN PANEL GRID STYLES */

.teambattles-grid-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding: 10px;
  background-color: #222;
  border-radius: 8px;
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* 4 teams × 2 columns */
  gap: 12px;
  width: 100%;
}

.grid-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.grid-cell label {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 4px;
}

.grid-cell input,
.grid-cell select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  background-color: #1a1a1a;
  border: 1px solid #444;
  color: white;
  border-radius: 6px;
  box-sizing: border-box;
}

.teambattles-grid-table input::placeholder {
  color: #888;
}

.admin-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.admin-buttons button {
  min-width: 120px;
  height: 48px;
  font-size: 1.1rem;
  border-radius: 6px;
  font-weight: bold;
}
.teambattles-form-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.form-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}




.refresh-btn {
    cursor: pointer;
    font-size: 24px;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}
.refresh-btn:hover {
    transform: rotate(90deg);
}
.team-col {
	background-color: #2A2A2A;
    width: 25%;
    float: left;
    box-sizing: border-box;
    padding: 10px;
}
.team-header {
    font-weight: bold;
    font-size: 20px;
    padding: 10px;
    color: white;
}
.slot-row, .round-total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid #ccc;
    background-color: #f9f9f9;
}
.user-scroll {
    max-height: 150px;
    overflow-y: auto;
    background: #eee;
    padding: 5px;
    margin-top: 10px;
	max-height: 100px;
	overflow: hidden;
	position: relative;
}

.team-column {
	background-color: #2A2A2A;
	padding: 10px;
	border-radius: 6px;
	color: white;
}

.team-column table {
	width: 100%;
	border-collapse: collapse;
	background-color: transparent;
}

.slot-row,
.round-total-row,
.user-scroll {
	background-color: #2A2A2A;
	color: #fff;
	padding: 6px 10px;
	border-bottom: 1px solid #444; /* optional: to separate rows slightly */
}

.user-scroll div {
	animation: scroll-up 10s linear infinite;
	white-space: nowrap;
}

@keyframes scroll-up {
	0% { transform: translateY(100%); }
	100% { transform: translateY(-100%); }
}
.username {
	font-weight: bold;
}

.dark-row {
	background-color: #222 !important; /* Darker background */
	color: #fff !important;           /* White text for contrast */
}


.form-box {
	background-color: #1c1c1c;
	border-radius: 10px;
	padding: 20px;
	width: fit-content;
	margin: 0 auto;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.round-total-row {
	background-color: #2a2a2a;
	color: #fff;
	padding: 5px 10px;
	border-top: 1px solid #444;
	border-bottom: 1px solid #444;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
}
