/* Update this rule in your <style> block */
#generator-main-card {
    max-width: 440px;
    min-height: 580px; /* Increased slightly to ensure locker fits */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.1) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* PIN everything to the top */
    overflow: hidden; /* Keeps the card shape clean */
}
/* Add this to keep the image area solid */
.image-container-fixed {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
#status-messages {
    min-height: 24px; /* Prevents text appearing from shifting the buttons */
    margin-bottom: 1rem;
}

/* Ensure the button doesn't move when locker appears */
.d-grid {
    min-height: 60px;
}
  #date-badge {
    background: #0b0b0f;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  .region-input-style {
    background-color: #0b0b0f !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border-radius: 12px;
    font-size: 0.9rem;
    height: 45px;
  }

  .code-box {
    background: rgba(0, 0, 0, 0.5);
    border: 2px dashed rgba(249, 130, 10, 0.4);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 2px;
    font-size: 1.1rem;
    color: #fff;
  }

  .verification-box {
    background: rgba(249, 130, 10, 0.08);
    border: 1px solid rgba(249, 130, 10, 0.2);
  }

  /* Generator Card - LIGHT MODE ADAPTATION */
  body.light-mode #generator-main-card {
    background: #ffffff;
    border-color: #e5e7eb !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  }

  body.light-mode #date-badge {
    background: #f0f0f0;
    border-color: #e5e7eb !important;
  }

  body.light-mode .region-input-style {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
    color: #111 !important;
  }

  body.light-mode .code-box {
    background: #f9f9f9;
    border-color: #f9820a;
    color: #111;
  }

  body.light-mode .verification-box {
    background: #fff5eb;
    border-color: #f9820a;
  }

  /* Animations & Helpers */
  .floating-card {
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
  }

  @keyframes float {

    0%,
    100% {
      transform: translateY(0px);
    }

    50% {
      transform: translateY(-15px);
    }
  }

  @keyframes pulse-animation {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }

    70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
      transform: scale(1);
    }
  }

  .pulse-animation {
    animation: pulse-animation 2s infinite;
  }

  .step-num {
    background: #f9820a;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
  }
#date-badge {
    min-width: 180px; 
    min-height: 32px;
}
  .x-small {
    font-size: 0.75rem;
  }
  #generate-btn {
    color: #000 !important; /* Black text on orange provides 100% contrast pass */
}
