* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  overflow: hidden;
  position: fixed; /* Lock body to prevent any scrolling */
}

.splash-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.1s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.1s;
}

.splash-hidden {
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
}

.splash-content.active {
  opacity: 1;
  visibility: visible;
  z-index: 100;
}

#second-splash {
  background-color: #00a0e9; /* Match the blue of the splash image */
}

.splash-logo {
  width: 200px;
  height: auto;
  z-index: 110;
}

.splash-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.top-left-logo {
  position: absolute;
  top: 30px;
  left: 20px;
  width: 180px; /* Reduced from 250px */
  height: auto;
  z-index: 10;
}

.center-splash-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: auto;
  z-index: 20; /* On top of everything */
}

.bottom-right-logo {
  position: absolute;
  bottom: 25px;
  right: 20px;
  width: 90px;
  height: auto;
  z-index: 10;
}

#main-content {
  display: none; /* Hide until splash is gone */
  width: 100vw;
  min-height: 100vh;
  background-color: #ffffff;
  padding: 40px 30px;
  box-sizing: border-box;
  overflow-y: auto;
  position: relative;
}

.final-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left aligned */
  gap: 20px;
  max-width: 500px;
}

.final-centered-logo {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
}

.final-main-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.auth-section h1 {
  font-size: 2.2rem;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
}

.auth-section h1.highlight {
  font-weight: 700;
  margin-bottom: 20px;
}

.description {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.btn-primary {
  width: 100%;
  background-color: #03b2ff;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(3, 178, 255, 0.2);
}

.btn-secondary {
  width: 100%;
  background: transparent;
  border: 2px solid #03b2ff;
  color: #555;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.btn-secondary .accent {
  color: #03b2ff;
  font-weight: 600;
}

.version {
  text-align: center;
  width: 100%;
  margin-top: 20px;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Form Styling - Challan Page */
.form-container {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-left: 2px;
}

.form-group input {
  width: 100%;
  padding: 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  background-color: #fcfcfc;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #03b2ff;
  box-shadow: 0 0 0 4px rgba(3, 178, 255, 0.1);
  background-color: #fff;
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-header {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 0 20px;
}

.top-left-header-logo {
    position: absolute;
    left: 20px;
    width: 140px;
    height: auto;
}

.centered-header-logo {
    width: 80px; /* Slightly larger for visibility */
    height: auto;
}

.centered-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 100px; /* Offset for logos */
}

.final-content-wrapper.centered {
  align-items: center;
  text-align: center;
  width: 100%;
}

.final-content-wrapper.centered .auth-section {
  width: 100%;
}

.final-content-wrapper.centered .form-group {
  text-align: left; /* Keep labels left for readability */
}

.btn-back {
  background: transparent;
  border: none;
  color: #888;
  font-size: 0.95rem;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: underline;
}

.final-bottom-logo {
  position: absolute;
  bottom: 10px;
  right: 20px;
  width: 80px; /* Reduced from 110px */
  height: auto;
}


/* Results View Styling */
.results-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.results-header {
    background: #fff;
    padding-top: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:active {
    background: #f0f0f0;
}

.vehicle-info .label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2px;
}

.vehicle-info h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow-down::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    margin-left: 2px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 10px;
}

.tab-item {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 5px;
    font-size: 0.9rem;
    font-weight: 700; /* Made Bold */
    color: #444; /* Darker for readability */
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-item.active {
    color: #03b2ff;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #03b2ff;
    border-radius: 3px 3px 0 0;
}

.badge {
    background-color: #03b2ff;
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.results-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 150px; /* Space for footer */
}

.summary-text {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
    font-weight: 600;
}

.challan-card {
    background: #fff;
    border: 1px solid #e0f2ff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(3, 178, 255, 0.04);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
}

.check-box {
    width: 26px;
    height: 26px;
    background-color: #03b2ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.offense-desc {
    font-size: 1rem;
    color: #555; /* Slightly darker */
    font-weight: 700; /* Made Bold */
    margin-bottom: 12px;
}

.card-divider {
    border-top: 1px dashed #eee;
    margin: 15px 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.issue-date {
    font-size: 0.85rem;
    color: #444; /* Darker for readability */
    font-weight: 600; /* Semi-bold for emphasis */
}

.details-link {
    font-size: 0.9rem;
    color: #03b2ff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}


/* Restoring/Adding Mobile Adjustments */
@media (max-width: 480px) {
  #main-content {
    padding: 25px 20px;
  }
  .final-centered-logo {
    width: 140px;
  }
  .top-left-logo {
    width: 150px;
    top: 25px;
    left: 15px;
  }
  .results-body {
    padding: 15px;
  }
}


.results-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
}

.footer-notice {
    background-color: #f0efff;
    color: #555;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    border-radius: 12px 12px 0 0;
    margin: 0 10px;
}

.footer-notice .accent {
    color: #03b2ff;
    font-weight: 700;
}

.footer-actions {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.discount-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee0979); /* Premium vibrant gradient */
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.timer-text {
    font-size: 0.7rem;
    color: #ff4d4d; /* Urgency color */
    font-weight: 600;
}

.price-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.original-amount {
    font-size: 1rem;
    color: #a0a0a0;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    font-weight: 500;
}

.total-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
}

.view-breakup-btn {
    background: none;
    border: none;
    color: #03b2ff;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin-top: 4px;
    cursor: pointer;
}

.btn-pay {
    background-color: #03b2ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-pay:active {
    transform: scale(0.98);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #03b2ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal / Bottom Sheet Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    display: none;
    align-items: flex-end;
}

.modal-overlay.active {
    display: flex;
}

.bottom-sheet {
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.modal-overlay.active .bottom-sheet {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 12px auto;
}

.sheet-content {
    padding: 0 20px 30px;
}

.detail-amount {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.detail-offenses-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
}

.detail-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.purple-tag {
    background: #e1f5ff;
    color: #03b2ff;
}

.detail-divider {
    border-top: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.detail-icon {
    flex-shrink: 0;
    background: #f8f8f8;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-info-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
}

.detail-info-text.copyable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.btn-full-width.purple {
    width: 100%;
    background: #03b2ff !important;
    color: #fff !important;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

.btn-full-width.purple:active {
    background: #0093d6 !important;
}




