/* SYS Kodagu District Member Management Portal - Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Kannada:wght@400;600;700&family=Noto+Sans+Malayalam:wght@400;600;700&display=swap');

:root {
  --sys-primary: #047857;
  --sys-primary-dark: #064e3b;
  --sys-primary-light: #10b981;
  --sys-primary-subtle: #ecfdf5;
  --sys-accent: #f59e0b;
  --sys-accent-hover: #d97706;
  --sys-dark: #0f172a;
  --sys-dark-card: #1e293b;
  --sys-light-bg: #f8fafc;
  --sys-surface: #ffffff;
  --sys-border: #e2e8f0;
  --sys-border-focus: #10b981;
  --sys-text-primary: #1e293b;
  --sys-text-secondary: #64748b;
  --sys-text-muted: #94a3b8;
  --sys-danger: #ef4444;
  --sys-danger-subtle: #fef2f2;
  --sys-success: #10b981;
  --sys-success-subtle: #ecfdf5;
  --sys-info: #0284c7;
  --sys-info-subtle: #f0f9ff;
  --sys-warning: #f59e0b;
  --sys-warning-subtle: #fffbeb;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--sys-light-bg);
  color: var(--sys-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Typography with Indic language support */
.lang-kn { font-family: 'Noto Sans Kannada', sans-serif; }
.lang-ml { font-family: 'Noto Sans Malayalam', sans-serif; }

a {
  color: var(--sys-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--sys-primary-dark);
}

/* App Container Layout */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Desktop Sidebar */
.app-sidebar {
  width: 270px;
  background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  transition: var(--transition);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.5px;
}

.sidebar-brand-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.2;
}
.sidebar-brand-text span {
  font-size: 0.72rem;
  color: #6ee7b7;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-user {
  margin: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sidebar-user .role-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--sys-accent);
  color: #000;
  margin-bottom: 6px;
}
.sidebar-user .user-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .user-sub {
  font-size: 0.75rem;
  color: #a7f3d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  padding: 12px 14px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6ee7b7;
  padding: 12px 10px 4px;
  font-weight: 700;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #d1fae5;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(3px);
}
.nav-link.active {
  background: #10b981;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.nav-link svg {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Main Content Area */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--sys-light-bg);
  padding-bottom: 80px; /* space for mobile bottom nav */
}

/* Top Navigation Bar */
.app-topbar {
  height: 70px;
  background: var(--sys-surface);
  border-bottom: 1px solid var(--sys-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--sys-text-primary);
}

.topbar-title h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sys-text-primary);
}
.topbar-title p {
  font-size: 0.8rem;
  color: var(--sys-text-secondary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notif-btn {
  position: relative;
  background: var(--sys-light-bg);
  border: 1px solid var(--sys-border);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--sys-text-primary);
}
.notif-btn:hover {
  background: var(--sys-primary-subtle);
  border-color: var(--sys-primary);
  color: var(--sys-primary);
}
.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--sys-danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Quick User Role Switcher (for painless reviewer/tester toggling) */
.role-switcher-dropdown {
  background: var(--sys-primary-subtle);
  border: 1px solid #a7f3d0;
  color: var(--sys-primary-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Page Body Container */
.page-container {
  padding: 28px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Grid System */
.grid {
  display: grid;
  gap: 20px;
}
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* Metric Cards */
.stat-card {
  background: var(--sys-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--sys-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--sys-primary);
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.stat-card:hover::after {
  opacity: 1;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon.green { background: #d1fae5; color: #047857; }
.stat-icon.blue { background: #e0f2fe; color: #0369a1; }
.stat-icon.amber { background: #fef3c7; color: #b45309; }
.stat-icon.purple { background: #f3e8ff; color: #7e22ce; }

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--sys-text-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sys-text-secondary);
  margin-top: 4px;
}
.stat-sub {
  font-size: 0.74rem;
  color: var(--sys-text-muted);
  margin-top: 4px;
}

/* Content Cards */
.card {
  background: var(--sys-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sys-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--sys-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sys-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-body {
  padding: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--sys-primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(4, 120, 87, 0.2);
}
.btn-primary:hover {
  background: var(--sys-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.3);
}
.btn-secondary {
  background: #f1f5f9;
  color: var(--sys-text-primary);
  border-color: var(--sys-border);
}
.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--sys-text-primary);
}
.btn-outline {
  background: transparent;
  border-color: var(--sys-border);
  color: var(--sys-text-primary);
}
.btn-outline:hover {
  background: var(--sys-light-bg);
  border-color: var(--sys-text-muted);
}
.btn-outline-primary {
  background: transparent;
  border-color: var(--sys-primary);
  color: var(--sys-primary);
}
.btn-outline-primary:hover {
  background: var(--sys-primary-subtle);
}
.btn-danger {
  background: var(--sys-danger);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
  color: #fff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sys-text-primary);
  margin-bottom: 6px;
}
.form-label .required {
  color: var(--sys-danger);
}
.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--sys-text-primary);
  background-color: #fff;
  border: 1.5px solid var(--sys-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--sys-border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.table th {
  background-color: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--sys-text-secondary);
  border-bottom: 1px solid var(--sys-border);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sys-border);
  vertical-align: middle;
}
.table tbody tr:hover {
  background-color: #f8fafc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-active {
  background-color: #d1fae5;
  color: #065f46;
}
.badge-inactive {
  background-color: #fee2e2;
  color: #991b1b;
}
.badge-zonal {
  background-color: #e0f2fe;
  color: #075985;
}
.badge-unit {
  background-color: #fef3c7;
  color: #92400e;
}

/* Multi-Step Wizard Navigation */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 32px;
  padding: 0 10px;
}
.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--sys-border);
  z-index: 1;
}
.wizard-step {
  position: relative;
  z-index: 2;
  text-align: center;
  cursor: pointer;
}
.wizard-circle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 3px solid var(--sys-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 8px;
  color: var(--sys-text-secondary);
  transition: var(--transition);
}
.wizard-step.active .wizard-circle {
  background: var(--sys-primary);
  border-color: var(--sys-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}
.wizard-step.completed .wizard-circle {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}
.wizard-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sys-text-secondary);
}
.wizard-step.active .wizard-title {
  color: var(--sys-primary);
  font-weight: 700;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--sys-border);
  height: 64px;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--sys-text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  gap: 4px;
  flex: 1;
  height: 100%;
}
.bottom-nav-item.active {
  color: var(--sys-primary);
}
.bottom-nav-fab {
  position: relative;
  top: -14px;
  background: var(--sys-primary);
  color: #fff !important;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.4);
  border: 3px solid #fff;
}

/* Flash Messages */
.flash-container {
  margin-bottom: 20px;
}
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alert-success { background: var(--sys-success-subtle); color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: var(--sys-danger-subtle); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--sys-warning-subtle); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--sys-info-subtle); color: #075985; border: 1px solid #bae6fd; }

/* Filter Bar */
.filter-bar {
  background: var(--sys-surface);
  border: 1px solid var(--sys-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.filter-search {
  flex: 1;
  min-width: 220px;
}

/* Member ID Card Printable */
.id-card-wrapper {
  max-width: 420px;
  margin: 30px auto;
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border-radius: 20px;
  color: #fff;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.id-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.id-card-body {
  display: flex;
  gap: 20px;
}
.id-card-photo {
  width: 90px;
  height: 110px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 2px solid #fff;
  object-fit: cover;
  flex-shrink: 0;
}
.id-card-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}
.id-card-info .id-num {
  font-family: monospace;
  font-size: 0.95rem;
  color: #fde047;
  font-weight: 700;
  margin-top: 4px;
}
.id-card-details {
  margin-top: 14px;
  font-size: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.id-card-barcode {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #a7f3d0;
}

/* Public Website Styles */
.public-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #fff;
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.public-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.1) 0%, transparent 70%);
}
.public-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}
.public-hero h1 {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.public-hero p {
  font-size: 1.15rem;
  color: #d1fae5;
  margin-bottom: 32px;
  line-height: 1.6;
}
.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sys-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.public-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.public-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.public-nav-links a {
  color: var(--sys-text-primary);
  font-weight: 600;
  font-size: 0.92rem;
}
.public-nav-links a:hover {
  color: var(--sys-primary);
}

/* Public Mobile Toggle Button */
.public-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  z-index: 60;
}
.public-mobile-toggle:hover,
.public-mobile-toggle:focus {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #064e3b;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.public-mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.public-mobile-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.public-mobile-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Public Mobile Menu Drawer */
.public-mobile-menu {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--sys-border);
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.public-mobile-menu.open {
  display: block;
  animation: slideDownMobileNav 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.public-mobile-menu-inner {
  padding: 16px 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.public-mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.public-mobile-nav-links li a {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.public-mobile-nav-links li a:hover,
.public-mobile-nav-links li a:active {
  background: #ecfdf5;
  color: #047857;
}

.public-mobile-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.public-mobile-cta .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Remove sticky feature on mobile view and display toggle */
@media (max-width: 860px) {
  .public-header {
    position: static !important;
    top: auto !important;
    box-shadow: var(--shadow-sm);
  }
  .public-nav-links {
    display: none !important;
  }
  .public-nav-cta {
    display: none !important;
  }
  .public-mobile-toggle {
    display: flex;
  }
}

/* Responsive Rules */
@media (max-width: 992px) {
  .app-sidebar {
    position: fixed;
    left: -270px;
  }
  .app-sidebar.open {
    left: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .page-container {
    padding: 18px 14px;
  }
}

@media (max-width: 640px) {
  .public-hero h1 {
    font-size: 2rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .topbar-actions .role-switcher-dropdown {
    display: none;
  }
}

/* Print styling */
@media print {
  .app-sidebar, .app-topbar, .mobile-bottom-nav, .btn, .filter-bar, .no-print {
    display: none !important;
  }
  .page-container, .app-main {
    padding: 0 !important;
    background: #fff !important;
  }
  .id-card-wrapper {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    color: #000 !important;
    background: #fff !important;
  }
  .id-card-wrapper * {
    color: #000 !important;
  }
}
