/* Dark mode colors only */
:root {
    --background: #121212;
    --foreground: #FFD700;
    --card: #121212;
    --card-foreground: #F9FAFB;
    --popover: #1F2937;
    --popover-foreground: #F9FAFB;
    --primary: #FFD700;
    --primary-foreground: #121212;
    --secondary: #D72638;
    --secondary-foreground: #FFFFFF;
    --muted: #FFD700;
    --muted-foreground: #C0A080;
    --accent: #374151;
    --accent-foreground: #F9FAFB;
    --destructive: #7F1D1D;
    --destructive-foreground: #F9FAFB;
    --border: #FFD700;
    --input: #374151;
    --ring: #0070F3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #121212;
    background-color: #121212;
    color: #F9FAFB;
    margin: 0;
    padding: 0;
    margin-top: 70px;
}

.container {
    width: 100%;
    max-width: 1880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.card {
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card .card-header {
    font-size: 1.25rem;
    font-weight: bold;
    background-color: #333333; /* Darker background for better contrast */
    border-bottom: 1px solid #555555; /* Darker border for better contrast */
    color: #F9FAFB; /* Light text on dark background */
    padding: 10px 15px;
}

.card .card-body {
    background-color: #252525; /* Dark background for card body */
    padding: 15px;
    color: #F9FAFB; /* Light text for better contrast */
}

.shoe-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.shoe-stats span {
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 0.02em;
}

.counter-inputs {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-content: space-around;
    gap: 2rem;
}

.form-label, label {
    color: #F9FAFB; /* Light text for labels */
    font-weight: 500;
}

.form-control {
    background-color: #2a2a2a; /* Dark input background */
    border-color: #444444; /* Darker border */
    color: #F9FAFB; /* Light text */
}

.form-control:focus {
  background-color: #333333;
  border-color: var(--primary);
  color: #F9FAFB;
  /* ← Add these two lines: */
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
  outline: none;
}

.form-check-input:checked {
    background-color: #7F1D1D;
    border-color: #C0A080;
}

.form-check-input:focus {
    border-color: #C0A080;
    outline: 0;
    box-shadow: 0 0 0 0.1rem rgba(192, 160, 128, 0.35);
}

/* Replace Bootstrap's blue focus-state thumb SVG with gold */
.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23C0A080'/%3e%3c/svg%3e");
}

#card-container {
    padding-left: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls button {
    border-radius: 20px;
    font-size: 1rem;
    padding: 10px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.05s ease-in-out, transform 0.05s ease-in-out;
}

.controls button:hover {
    transform: scale(1.05);
}

img.img-card {
    max-width: 5vw !important; /* Ensure the card width adjusts to viewport width */
    transition: transform 0.05s ease-in-out, box-shadow 0.05s ease-in-out;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%; /* Allow the parent container to control scaling */
    max-height: 120px; /* Adjust to preferred maximum height */
    width: auto; /* Keep aspect ratio */
}

.img-card-seen {
    max-width: 4vw;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 80%;
    max-height: 80px;
    width: auto;
}

.img-card:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid black;
}

.img-card-seen:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid black;
}

.card-spread {
    display: flex;
    flex-wrap: wrap;
    gap: .02vw;
    justify-content: flex-start;
}

.card-spread .col-auto {
    padding: .01vw; /* Reduce inner padding */
    margin: .01vw;  /* Reduce margins between cards */
}


.ev-box {
    border-radius: 12px;
    padding: 15px;
    font-size: 1.25rem;
    text-align: center;
    transition: background-color 0.3s ease-in-out;
}

.ev-box span {
    font-weight: bold;
}

.ev-box.bg-danger {
    background-color: #ff6b6b !important;
}

.ev-box.bg-success {
    background-color: #51cf66 !important;
}

.ev-box.bg-dark {
    background-color: #495057 !important;
    color: #f8f9fa;
}

.bg-neutral {
    background-color: #696969;
    color: #f8f9fa;
}

.modal-content {
    background-color: #1A1F2C;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.modal-header {
    background-color: #252525;
    border-bottom: 1px solid #333;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    color: var(--foreground);
}

.modal-footer {
    background-color: #252525;
    border-top: 1px solid #333;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.modal-body {
    background-color: #000;
    color: #F9FAFB;
}

.modal-body input {
    text-align: center;
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #F9FAFB;
}

.modal-body input:focus {
    background-color: #333;
    border-color: var(--primary);
    color: #F9FAFB;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    outline: none;
}

.modal-header .btn-close {
    background-color: #D72638;
    opacity: 0.5;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

/* Navbar - Standardized with styles.css */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--background);
    border-bottom: 2px solid var(--border);
    transition: all 0.3s ease;
    margin-bottom: 70px;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
    text-decoration: none;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--foreground);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius, 0.5rem);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: 2px solid var(--border);
    font-weight: bold;
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

/* Modified button hover states */
.btn-primary:hover, .btn-outline:hover {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.nav-actions .btn-primary:active {
  background-color: var(--secondary);
  border-color:    var(--secondary);
  color:           var(--secondary-foreground);
}

/* Sign Up button hover - red border */
.nav-actions .btn-primary:hover {
    border: 2px solid #ea384c;
}

/* Delete Card button hover - dim effect with yellow border */
#delCard:hover {
    opacity: 0.8;
    border: 2px solid #FEF7CD;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Submit Cards hover */
#subCard:hover {
    opacity: 0.8;
}

#prevCards {
    min-height: 110px;
    display: flex;
    flex-wrap: wrap;
}

/* Reset Deck hover */
#resDeck:hover {
    opacity: 0.8;
}

.logo img {
    width: 40px;
    height: auto;
    transition: opacity 0.3s ease-in-out;
    border-radius: 5px;
    content: url('pictures/MainLogo_Square.JPG');
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* ─── Auth Modal ─────────────────────────────────────────────────────────────── */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: var(--card);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-modal-backdrop.show .auth-modal {
  transform: scale(1) translateY(0);
}

.auth-modal-content {
  padding: 32px;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.auth-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.auth-modal-close {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-close:hover {
  background: rgba(255, 215, 0, 0.12);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
  font-size: 14px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.12);
}

.auth-input::placeholder {
  color: var(--muted-foreground);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #2a2a2a inset !important;
  -webkit-text-fill-color: #F9FAFB !important;
  caret-color: #F9FAFB;
  border-color: var(--border);
}

.auth-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.auth-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  border: none;
}

.auth-btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--border);
}

.auth-btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.auth-btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.auth-btn-secondary:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateY(-1px);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
}

.auth-btn-full {
  width: 100%;
  flex: 1 1 100%;
}

.auth-switch-prompt {
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 0;
  margin-bottom: 0;
}

.auth-switch-link {
  color: #a0a0c0;
  text-decoration: underline;
  font-size: 13px;
}

.auth-switch-link:hover {
  color: #c0c0e0;
}

.auth-error {
  display: block;
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
  min-height: 0;
}

.auth-error:not(:empty) {
  min-height: 16px;
}

.auth-error-center {
  text-align: center;
  margin-top: 8px;
}

.auth-success-content {
  text-align: center;
  padding: 8px 0 16px;
}

.auth-success-icon {
  width: 56px;
  height: 56px;
  background: #51cf66;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
}

.auth-success-heading {
  color: var(--foreground);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.auth-success-body {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.auth-forgot-intro {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}

.auth-forgot-success {
  display: block;
  color: #51cf66;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}

/* ─── Guided Tour Help Button ──────────────────────────────────────────────── */
.tour-help-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  z-index: 8000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-help-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}

/* ─── Driver.js Popover Theme ──────────────────────────────────────────────── */
.driver-popover {
  background: #1e1e2e !important;
  border: 1px solid #FFD700 !important;
  border-radius: 12px !important;
  color: #F9FAFB !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
  max-width: 320px !important;
}

.driver-popover-title {
  color: #FFD700 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

.driver-popover-description {
  color: #d0d0d0 !important;
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
}

.driver-popover-footer {
  border-top: 1px solid #2d2d2d !important;
  padding-top: 10px !important;
  margin-top: 12px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.driver-popover-prev-btn,
.driver-popover-next-btn,
.driver-popover-done-btn {
  background: #FFD700 !important;
  color: #000 !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  text-shadow: none !important;
}

.driver-popover-prev-btn:hover,
.driver-popover-next-btn:hover,
.driver-popover-done-btn:hover {
  background: #e6c200 !important;
}

.driver-popover-prev-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

.driver-popover-close-btn {
  color: #9ca3af !important;
  font-size: 1.1rem !important;
}

.driver-popover-close-btn:hover {
  color: #FFD700 !important;
}

.driver-popover-progress-text {
  color: #9ca3af !important;
  font-size: 0.75rem !important;
}

/* Arrow tip colour matches popover border */
.driver-popover-arrow-side-top.driver-popover-arrow::before    { border-top-color:    #FFD700 !important; }
.driver-popover-arrow-side-bottom.driver-popover-arrow::before { border-bottom-color: #FFD700 !important; }
.driver-popover-arrow-side-left.driver-popover-arrow::before   { border-left-color:   #FFD700 !important; }
.driver-popover-arrow-side-right.driver-popover-arrow::before  { border-right-color:  #FFD700 !important; }
