/* Page-specific styles for Bet Limits (desktop-focused tweaks) */

/* Base card and container improvements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: #0f1115;
  border: 1px solid #2b2f3a;
  border-radius: 10px;
  padding: 16px;
  color: #e6e6e6;
}

.card h3 {
  margin: 0 0 12px 0;
  font-weight: 600;
}

/* Collapsible per-user overrides (details/summary) */
details.card {
  padding: 0;
  margin-bottom: 16px;
}
details.card > summary {
  list-style: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #e6e6e6;
}
details.card > summary::-webkit-details-marker {
  display: none;
}
details.card > summary:hover {
  background: #12141a;
}
details.card[open] > summary {
  border-bottom: 1px solid #2b2f3a;
}
details.card > .inner {
  padding: 16px;
}

/* Form rows align nicely on desktop */
.row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 16px; 
}
.row .col { 
  flex: 1 1 380px; 
  min-width: 320px; 
}

label {
  display: block;
  margin-bottom: 6px;
  color: #cfd3dc;
}

input[type=text],
input[type=number] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #3a3f4b;
  border-radius: 8px;
  background: #0b0d10;
  color: #e6e6e6;
  outline: none;
}
input[type=text]:focus,
input[type=number]:focus {
  border-color: #2d7cff;
  box-shadow: 0 0 0 2px rgba(45,124,255,0.15);
}

/* Buttons */
.btn { 
  border-radius: 8px; 
  padding: 10px 16px; 
}
.btn-primary { 
  background: #2d7cff; 
  border: none; 
  color: #fff; 
}
.btn-primary:hover { 
  background: #1e62d1; 
}

.note { 
  font-size: 12px; 
  color: #aab0bb; 
  margin-top: 6px;
  margin-bottom: 10px;
}

/* Table improvements */
table { 
  width: 100%; 
  border-collapse: collapse; 
  table-layout: fixed; 
}
thead th { 
  background: #12141a; 
  color: #dfe3ea; 
  font-weight: 600; 
  text-align: left; 
  border-bottom: 1px solid #2b2f3a; 
  padding: 10px; 
}
tbody td { 
  color: #e6e6e6; 
  border-bottom: 1px solid #1e2230; 
  padding: 10px; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}
tbody tr:nth-child(odd) td { 
  background: #0d0f13; 
}

/* Desktop-only spacing refinements */
@media (min-width: 992px) {
  .container { 
    padding-top: 24px; 
    padding-bottom: 24px; 
  }
  .row .col { 
    min-width: 420px; 
  }
}