@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* =========================================
   GLOBAL RESET & TYPOGRAPHY
========================================= */
:root {
  --uidai-blue: #003366;
  --uidai-dark-blue: #002244;
  --uidai-top-bar: #f8f8f8;
  --uidai-text: #333333;
  --uidai-light-gray: #f1f1f1;
  --uidai-orange: #f26522;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #f8f8f8;
  background-image: radial-gradient(circle at 10% 20%, rgba(122, 193, 66, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(34, 34, 34, 0.1) 0%, transparent 40%);
  color: #222;
  line-height: 1.6;
}

/* =========================================
   GOVERNMENT HEADER (GLASSMORPHISM)
========================================= */
.gov-header {
  position: relative;
  z-index: 10;
  width: min(1200px, 95%);
  margin: 20px auto 0;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.gov-left img,
.gov-right img {
  height: 50px;
  transition: transform 0.3s;
}

.gov-left img:hover,
.gov-right img:hover {
  transform: scale(1.05);
}

.gov-center {
  text-align: center;
  flex: 1;
  padding: 0 20px;
}

.gov-center h1 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #222;
  margin: 0 0 5px;
}

.gov-center h3 {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: #555;
  margin: 0 0 3px;
}

.gov-center p {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* =========================================
   MAIN CONTAINERS (GLASS MORPHISM / ELEVATION)
========================================= */
.main-container {
  position: relative;
  z-index: 5;
  width: min(100%, 850px);
  margin: 50px auto 40px;
  padding: 50px 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.login-card {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 420px;
  margin: 50px auto 40px;
  padding: 40px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Specific Page Overrides for Dashboard Widths */
body.dashboard .main-container {
  width: min(100%, 1200px);
  padding: 30px;
}

.portal-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #222;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

/* =========================================
   FORMS & INPUTS
========================================= */
form {
  background: transparent;
  padding: 0;
  margin: 0;
  max-width: 100%;
  border-radius: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

/* Elevated Inputs */
input,
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #222;
  transition: all 0.3s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

input:hover,
select:hover,
textarea:hover {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(122, 193, 66, 0.4);
}

input:focus,
select:focus,
textarea:focus {
  background-color: #ffffff;
  border-color: #7ac142;
  box-shadow: 0 0 0 4px rgba(122, 193, 66, 0.15);
}

/* Consent Checkbox Glitch Fix */
.consent-label {
  cursor: pointer;
  user-select: none;
}

.consent-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: #7ac142;
  outline: none;
  transition: box-shadow 0.2s;
}

.consent-label input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(122, 193, 66, 0.3);
  border-radius: 4px;
}

/* Dual-Layer Bilingual Labels */
.dual-label {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  line-height: 1.3;
}

.dual-label .en-main {
  font-weight: 700;
  font-size: 14px;
  color: #333;
}

.dual-label .hi-sub {
  font-weight: 500;
  font-size: 11.5px;
  color: #777;
  margin-top: 2px;
}

html[lang="hi"] .hi-sub {
  display: none !important;
}

/* Inner Segment Cards for Forms */
.info-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #7ac142;
}

.card-header {
  font-size: 18px;
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================
   BUTTONS (DYNAMIC INTERACTIONS)
========================================= */
button {
  background: #7ac142;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(122, 193, 66, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  font-family: 'Poppins', sans-serif;
}

button:hover {
  background: #6eb03b;
  box-shadow: 0 12px 25px rgba(122, 193, 66, 0.3);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(1px);
}

.btn-primary {
  width: 100%;
  font-size: 16px;
  padding: 16px;
}

/* =========================================
   PORTAL ACTION BUTTONS (REVERTED TO PREMIUM)
========================================= */
.action-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.portal-btn {
  position: relative;
  padding: 25px 20px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  box-shadow: none;
  /* Override base button shadow initially */
}

.portal-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.portal-btn:hover::after {
  opacity: 1;
}

.portal-btn.primary {
  background: #7ac142;
  color: #fff;
  box-shadow: 0 15px 35px rgba(122, 193, 66, 0.3);
}

.portal-btn.primary .main-text {
  font-size: 1.35rem;
  font-weight: 700;
}

.portal-btn.primary .sub-text {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

.portal-btn.primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(122, 193, 66, 0.4);
  background: #6eb03b;
}

.portal-btn.secondary {
  background: #222222;
  color: #fff;
  box-shadow: 0 15px 35px rgba(34, 34, 34, 0.2);
}

.portal-btn.secondary .main-text {
  font-size: 1.35rem;
  font-weight: 700;
}

.portal-btn.secondary .sub-text {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  color: #eee;
}

.portal-btn.secondary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(34, 34, 34, 0.3);
  background: #111;
}

.icon-wrapper {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

/* UTILITY LINKS (ADMIN/GUARD) */
.admin-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 45px;
}

.utility-link {
  background: transparent;
  border: none;
  color: #555;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
  padding: 5px;
  box-shadow: none;
}

.utility-link:hover {
  color: #7ac142;
  background: transparent;
  transform: none;
  box-shadow: none;
}



/* =========================================
   ALERTS, NOTICES & STATUS BOXES
========================================= */
#status,
#infoText,
#locationStatus {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #7ac142;
  border-radius: 30px;
  color: #222 !important;
  font-weight: 600;
  font-size: 14px;
  margin: 15px auto;
  box-shadow: 0 8px 20px rgba(122, 193, 66, 0.15);
  text-align: center;
}

#status:empty,
#infoText:empty,
#locationStatus:empty {
  display: none !important;
}

/* Guidelines Accordion */
details.guideline-accordion {
  margin: 0 auto 30px;
  max-width: 600px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(122, 193, 66, 0.3);
  box-shadow: 0 8px 24px rgba(122, 193, 66, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

details.guideline-accordion summary {
  padding: 16px 20px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

details.guideline-accordion summary::-webkit-details-marker {
  display: none;
}

details.guideline-accordion summary:hover {
  background: rgba(122, 193, 66, 0.05);
}

details.guideline-accordion .accordion-content {
  padding: 20px;
  font-size: 0.95rem;
  color: #444;
  border-top: 1px solid rgba(122, 193, 66, 0.2);
  text-align: left;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* =========================================
   CALENDAR (MODERN GRID BUBBLES)
========================================= */
#calendar {
  margin: 20px auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 360px;
  margin: 15px auto;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.calendar-header-day {
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: #555;
  padding-bottom: 5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 6px;
}

.calendar-day.empty {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: default !important;
  pointer-events: none;
}

.calendar-day {
  padding: 8px 3px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  background: #fff;
  color: #333;
}

.calendar-day.available {
  background: #f0fdf4;
  border-color: #7ac142;
  color: #166534;
}

.calendar-day.available:hover {
  background: #dcfce7;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 12px rgba(122, 193, 66, 0.2);
}

.calendar-day.full {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
  cursor: not-allowed;
  opacity: 0.7;
}

.calendar-day.selected {
  background: #222;
  border-color: #222;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(34, 34, 34, 0.4);
  transform: scale(1.05);
}

.calendar-day.holiday {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
  cursor: not-allowed;
}

#slotInfo {
  max-width: 450px;
  margin: 20px auto;
  padding: 16px;
  border-radius: 12px;
  background: rgba(122, 193, 66, 0.05);
  border: 1px dashed rgba(122, 193, 66, 0.4);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #7ac142;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* =========================================
   DASHBOARD TABLES (GUARD/ADMIN)
========================================= */
.table-container {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.8);
  padding: 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

td {
  padding: 16px;
  font-size: 14.5px;
  color: #222;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

tr {
  transition: background 0.2s;
}

tr:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* Token Colored Rows */
tr.ap,
tr.wp {
  background-color: rgba(254, 242, 242, 0.7);
  font-weight: 600;
}

tr.an {
  background-color: rgba(254, 252, 232, 0.7);
}

tr.wl {
  background-color: rgba(240, 253, 250, 0.7);
}

tr.wn {
  background-color: transparent;
}

/* =========================================
   NAV & TOP ACTIONS
========================================= */
.nav-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
}

.nav-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  color: white;
}

.back-btn {
  background: #222;
  box-shadow: 0 8px 15px rgba(34, 34, 34, 0.15);
}

.home-btn {
  background: #7ac142;
  box-shadow: 0 8px 15px rgba(122, 193, 66, 0.2);
}

.nav-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* =========================================
   TOKEN SLIP (PRINTABLE) - REFINED
========================================= */
.slip {
  max-width: 450px;
  margin: 30px auto;
  padding: 40px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #ebebeb;
}

.slip h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #222;
  font-weight: 800;
  font-size: 22px;
}

.slip p {
  margin: 8px 0;
  font-size: 15px;
  color: #555;
}

.token-box {
  text-align: center;
  margin: 25px 0;
  padding: 25px;
  background: #fcfcfc;
  border: 2px dashed #ddd;
  border-radius: 16px;
}

.token-label {
  font-size: 13px;
  letter-spacing: 2px;
  color: #777;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 700;
}

.token-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #222;
  line-height: 1;
}

@media print {
  body * {
    visibility: hidden;
  }

  .slip,
  .slip * {
    visibility: visible;
  }

  .slip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .actions {
    display: none;
  }
}

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 768px) {

  .main-container,
  .login-card {
    padding: 30px 20px;
    margin-top: 20px;
    border-radius: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gov-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px;
  }
}

/* =========================================
   UIDAI NEW DESIGN (myaadhar THEME)
========================================= */

/* Top Accessibility Bar */
.accessibility-bar {
  background: var(--uidai-top-bar);
  padding: 5px 5%;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #ddd;
}

.accessibility-bar span {
  cursor: pointer;
}

.accessibility-bar span:hover {
  color: var(--uidai-blue);
}

/* Main Header */
.main-header {
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-left img {
  height: 45px;
}

.header-right {
  text-align: right;
}

.header-right h2 {
  font-size: 1.1rem;
  color: #555;
  font-weight: 700;
  margin: 0;
}

/* Navigation Menu */
.nav-menu {
  background: var(--uidai-blue);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-items {
  display: flex;
  list-style: none;
  height: 100%;
}

.nav-items li {
  color: #fff;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}

.nav-items li.active {
  background: var(--uidai-dark-blue);
}

.nav-items li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
}

.nav-search input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 3px;
  outline: none;
  width: 120px;
  font-size: 12px;
}

.nav-search button {
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 12px;
}

/* Hero Carousel */
.hero-carousel {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.carousel-inner {
  display: flex;
  width: 100%;
  transition: transform 0.8s ease-in-out;
}

.carousel-inner .slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-inner .slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 60px 90px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.carousel-inner .slide-overlay h1 {
  font-size: 2.4rem;
  color: #fff;
  margin: 0 0 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.carousel-inner .slide-overlay p {
  font-size: 1.1rem;
  color: #ffffffe1;
  margin: 0 0 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===== CAROUSEL ARROW BUTTONS ===== */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  font-weight: 100;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  color: #fff;
  background: none !important;
  box-shadow: none !important;
  transform: translateY(-50%) scale(1.15) !important;
}

.carousel-arrow-left {
  left: 20px;
}

.carousel-arrow-right {
  right: 20px;
}

/* ===== CAROUSEL CONTROLS BAR (Pause + Indicators) ===== */
.carousel-controls-bar {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 100;
  background: none;
  padding: 5px;
}

.carousel-pause-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 2px;
  transition: all 0.2s;
  letter-spacing: 1px;
  line-height: 1;
}

.carousel-pause-btn:hover {
  color: #fff;
  background: none !important;
  box-shadow: none !important;
}

/* ===== CAROUSEL INDICATOR DOTS ===== */
.carousel-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6) !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .carousel-arrow-left {
    left: 10px;
  }

  .carousel-arrow-right {
    right: 10px;
  }

  .carousel-controls-bar {
    bottom: 12px;
    padding: 6px 12px;
    gap: 8px;
  }

  .carousel-inner .slide-overlay {
    padding: 20px 25px;
  }

  .carousel-inner .slide-overlay h1 {
    font-size: 1.6rem;
  }
}

/* Ask Udai Mascot */
.ask-udai-mascot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100px;
  z-index: 9999;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s;
}

.ask-udai-mascot:hover {
  transform: scale(1.05);
}

.ask-udai-mascot img {
  width: 100%;
  display: block;
}

/* Waving Hand Animation */
@keyframes waveHand {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.mascot-hand {
  animation: waveHand 2s infinite ease-in-out;
  transform-origin: bottom center;
}

/* 🤖 CHATBOT WINDOW & MASCOT ENHANCEMENTS */
.ask-udai-mascot {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 90px;
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ask-udai-mascot:hover {
  transform: scale(1.1) translateY(-5px);
}

/* 💬 Speech Bubble */
.mascot-bubble {
  position: absolute;
  top: -65px;
  right: -10px;
  background: #ff3e3e;
  /* Red as per user screenshot */
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 62, 62, 0.4);
  border: 2px solid white;
  pointer-events: none;
  animation: floatBubble 3s infinite ease-in-out;
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 30px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ff3e3e;
}

@keyframes floatBubble {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* 📱 Chat Window Container - Manual Aadhaar Mitra */
.chatbot-container {
  position: fixed;
  bottom: 110px;
  right: 25px;
  width: 400px;
  max-width: 90vw;
  height: 550px;
  background: #1a237e;
  /* Deep Blue theme from screenshot */
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-container.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  background: #3f51b5;
  /* Lighter Blue Header */
  color: white;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid white;
}

.header-info div {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.header-info span {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}

.close-chat {
  margin-left: auto;
  cursor: pointer;
  font-size: 24px;
}

/* Menu Area (Capsule Buttons) */
.chat-menu {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-btn {
  background: #bbdefb;
  /* Light Blue Capsules */
  color: #0d47a1;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-shadow: none;
  /* override default button shadow */
}

.menu-btn:hover {
  background: white;
  transform: translateY(-2px);
}

/* Chat History Area */
.chat-history {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(0, 0, 0, 0.05);
}

/* Chat Bubbles */
.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-bot {
  background: white;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.msg-bot::after {
  content: '';
  position: absolute;
  left: -10px;
  bottom: 0;
  border-right: 10px solid white;
  border-top: 10px solid transparent;
}

.msg-user {
  background: #4caf50;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.msg-user::after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: 0;
  border-left: 10px solid #4caf50;
  border-top: 10px solid transparent;
}

/* Links in bot messages */
.msg-bot a {
  color: #1a237e;
  font-weight: 700;
  text-decoration: underline;
}

.timestamp {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
  text-align: right;
}

.msg-bot .timestamp {
  color: #777;
  text-align: left;
}

@media (max-width: 480px) {
  .chatbot-container {
    width: 100%;
    right: 0;
    bottom: 0;
    height: 100vh;
    border-radius: 0;
  }
}

/* Footer Links Stripe */
.footer-links-stripe {
  background: var(--uidai-dark-blue);
  color: #fff;
  padding: 12px 5%;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  flex-wrap: wrap;
}

.footer-links-stripe a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
}

.footer-links-stripe a:hover {
  opacity: 1;
}

@media print {

  .no-print,
  .fixed-header-wrapper,
  .menu-overlay,
  .actions,
  .accessibility-bar {
    display: none !important;
  }

  body {
    background: white !important;
    padding: 0 !important;
  }

  .slip {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }
}

/* =========================================
   TOKEN GENERATION PORTAL (MATCHING IMAGE)
========================================= */
.portal-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
  margin: 40px auto !important;
  max-width: 1000px !important;
  text-align: center !important;
  border: 1px solid var(--border-color) !important;
}

.portal-title {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #222 !important;
  margin-bottom: 30px !important;
}

.status-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 12px 25px !important;
  background: #f0fdf4 !important;
  border: 1px solid #7ac142 !important;
  border-radius: 12px !important;
  color: #166534 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  margin-bottom: 35px !important;
  gap: 10px !important;
  box-shadow: none !important;
}

.action-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 20px !important;
}

.action-btn {
  display: flex !important;
  align-items: center !important;
  padding: 24px !important;
  border-radius: 16px !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  text-align: left !important;
  color: white !important;
  text-decoration: none !important;
  width: 100% !important;
}

.action-btn:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

.btn-appointment {
  background: #84cc16 !important;
  /* Vibrant Green */
  box-shadow: 0 8px 16px rgba(132, 204, 22, 0.3) !important;
}

.btn-walkin {
  background: #262626 !important;
  /* Deep Dark */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;
}

.btn-icon {
  font-size: 40px !important;
  margin-right: 15px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
}

.btn-content {
  display: flex !important;
  flex-direction: column !important;
}

.btn-label {
  font-size: 20px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
}

.btn-info {
  font-size: 12px !important;
  font-weight: 600 !important;
  opacity: 0.9 !important;
}

@media (max-width: 768px) {
  .action-grid {
    grid-template-columns: 1fr !important;
  }
}



/* =========================================
   COMMON HEADERS CSS (Moved from index.html)
========================================= */
/* UIDAI THEME VARIABLES */
:root {
  --uidai-blue: #003366;
  --uidai-dark-blue: #002244;
  --uidai-top-bar: #f8f8f8;
  --aadhaar-orange: #f26522;
  --aadhaar-green: #026838;
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --header-bg: linear-gradient(to right, #fedda9 0%, #fff8d2 40%, #fff8d2 60%, #e9f5e1 100%);
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --card-bg: #1e1e1e;
  --uidai-top-bar: #1a1a1a;
  --border-color: #333;
  --header-bg: linear-gradient(to right, #2c1e0a 0%, #333 40%, #333 60%, #1a2c1a 100%);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
}

/* Accessibility Bar */
.accessibility-bar {
  background: var(--uidai-top-bar);
  padding: 5px 5%;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 11px;
  color: #777;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.theme-toggle {
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  display: flex;
  align-items: center;
}

.lang-dropdown {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.lang-btn {
  padding: 0 5px;
  color: #777;
  font-weight: 600;
}

.lang-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--card-bg);
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  border: 1px solid var(--border-color);
}

.lang-content a {
  color: var(--text-color);
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  font-size: 12px;
}

.lang-content a:hover {
  background-color: #f1f1f1;
}

.lang-dropdown:hover .lang-content {
  display: block;
}

/* Branding Header */
.main-header {
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  min-height: 90px;
}

.logo-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  padding: 8px 15px;
  cursor: pointer;
}

.aadhaar-icon {
  height: 60px;
  width: auto;
}

.branding-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.branding-text .en-hi-main {
  color: var(--aadhaar-orange);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.2px;
}

.branding-text .hi-sub {
  color: var(--aadhaar-green);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.2px;
}

.logo-branding::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100px;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-30deg);
  animation: logoGlint 4s infinite ease-in-out;
}

@keyframes logoGlint {
  0% {
    left: -150%
  }

  30% {
    left: 150%
  }

  100% {
    left: 150%
  }
}

.header-right {
  text-align: right;
  line-height: 1.1;
}

.header-right h2 {
  font-size: 1.15rem;
  color: var(--text-color);
  font-weight: 700;
  margin: 0;
  font-family: "Times New Roman", serif;
}

/* Sticky wrapper */
.fixed-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: var(--bg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Nav */
.nav-menu {
  background: var(--uidai-blue);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

.nav-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.nav-items li {
  color: white;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-items li:hover,
.nav-items li.active {
  background: var(--uidai-dark-blue);
}

/* Sign In Dropdown */
.signin-dropdown {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  margin-left: auto;
}

.signin-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: var(--uidai-blue);
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 5000;
  border-top: 2px solid var(--aadhaar-orange);
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a:hover {
  background: var(--uidai-dark-blue);
}

/* Rules and Regulations Dropdown */
.rules-dropdown {
  position: relative;
  cursor: pointer;
  padding: 0 18px;
  display: flex;
  align-items: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
  height: 100%;
  transition: background 0.2s;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rules-dropdown:hover {
  background: var(--uidai-dark-blue);
}

.rules-dropdown > span {
  pointer-events: none;
}

.rules-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--uidai-blue);
  min-width: 185px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 5000;
  border-top: 2px solid var(--aadhaar-orange);
}

.rules-dropdown:hover .rules-dropdown-content {
  display: block;
}

.rules-dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.rules-dropdown-content a:hover {
  background: var(--uidai-dark-blue);
  padding-left: 22px;
  transition: padding 0.15s ease;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  color: white;
  font-size: 24px;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3500;
}

body.menu-open .menu-overlay {
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    padding: 15px;
    text-align: center;
    gap: 15px;
  }

  .header-right {
    text-align: center;
  }

  .hamburger {
    display: block;
  }

  .nav-items {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--uidai-blue);
    flex-direction: column;
    transition: 0.3s ease-in-out;
    z-index: 4000;
    padding-top: 60px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  body.menu-open .nav-items {
    right: 0;
  }

  .nav-items li {
    width: 100%;
    height: auto;
    padding: 15px 25px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .signin-dropdown {
    width: 100%;
    margin-left: 0;
  }

  .signin-dropdown .dropdown-content {
    display: block;
    position: static;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.1);
    border-top: none;
  }

  .signin-dropdown .dropdown-content a {
    padding-left: 40px;
  }

  .aadhaar-icon {
    height: 45px;
  }

  .branding-text .en-hi-main,
  .branding-text .hi-sub {
    font-size: 1rem;
  }
}