:root {
    --primary-blue: #0f2a4a;
    --accent-blue: #0056b3;
    --light-bg: #f4f6f9;
    --text-dark: #333;
    --white: #ffffff;
    --border-color: #ddd;
    --success-green: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.contact-snippets span {
    margin-right: 20px;
}

.social-links a {
    color: var(--white);
    margin-left: 10px;
    text-decoration: none;
}

/* Navigation */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h2 {
    color: var(--primary-blue);
    font-size: 22px;
}

.logo .sub-logo {
    color: var(--accent-blue);
    font-weight: 400;
    font-size: 16px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-blue);
}

.admin-btn {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 4px;
}

/* View Sections management */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), #183d75);
    color: var(--white);
    padding: 60px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 38px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.hero-buttons .btn {
    margin-right: 15px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--accent-blue);
    color: var(--white);
}

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

.support-big-icon {
    font-size: 140px;
    color: rgba(255,255,255,0.15);
    text-align: center;
    display: block;
}

/* Services */
.services, .province-teams {
    padding: 50px 0;
    text-align: center;
}

.services h2, .province-teams h2, .form-container h2 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-card i {
    font-size: 36px;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: #666;
}

/* Province Cards */
.province-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.province-card {
    background: var(--white);
    border-radius: 6px;
    padding-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.province-img-box {
    height: 120px;
    background: #ccc;
    background-size: cover;
}

.bg-bagmati { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assest/bagamati.webp'); }
.bg-koshi { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assest/koshi.webp'); }
.bg-madhesh { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assest/madesh.webp'); }
.bg-gandaki { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assest/gandaki.webp'); }
.bg-lumbini { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assest/lumbini.webp'); }
.bg-karnali { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assest/karnali.webp'); }
.bg-sudurpaschim { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assest/sudurpachim.webp'); }

.province-card h3 {
    margin: 15px 0 5px;
    font-size: 16px;
}

.team-count, .phone-num {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin: 10px 0;
}

.status-badge.online { background: #e6f4ea; color: var(--success-green); }
.status-badge.busy { background: #e6f4ea; color: var(--success-green); }

.view-team-btn {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: var(--primary-blue);
    color: var(--white);
    cursor: pointer;
}

/* Forms */
.form-container {
    background: var(--white);
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

fieldset {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

legend {
    font-weight: bold;
    color: var(--primary-blue);
    padding: 0 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.submit-ticket-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Success Screen */
.success-container {
    background: var(--white);
    max-width: 600px;
    margin: 60px auto;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.success-icon {
    font-size: 60px;
    color: var(--success-green);
    margin-bottom: 20px;
}

.ticket-receipt {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.ticket-receipt h3 {
    color: var(--accent-blue);
    font-size: 22px;
    margin: 5px 0 15px;
}

/* Team Grid View */
#team-view {
    padding: 50px 0;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.team-member-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.team-member-card .avatar {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: var(--primary-blue);
}

.team-member-card h4 {
    margin-bottom: 5px;
}

.team-member-card .role {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: bold;
    margin-bottom: 10px;
}

.team-member-card .contact {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.whatsapp-btn {
    background: #25d366;
    color: var(--white);
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 15px;
    cursor: pointer;
}

/* Admin Dashboard */
.dashboard-wrapper {
    display: flex;
    min-height: 85vh;
}

.dashboard-sidebar {
    width: 250px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px;
}

.dashboard-sidebar h3 {
    margin-bottom: 30px;
    font-size: 18px;
}

.dashboard-sidebar ul {
    list-style: none;
}

.dashboard-sidebar li {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 14px;
}

.dashboard-sidebar li:hover, .dashboard-sidebar li.active {
    background: var(--accent-blue);
}

.dashboard-sidebar li i {
    margin-right: 10px;
}

.dashboard-main {
    flex: 1;
    padding: 30px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--white);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.stat-box h3 {
    font-size: 26px;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 13px;
    color: #666;
}

.recent-tickets-card {
    background: var(--white);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.recent-tickets-card h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--primary-blue);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: #666;
    background: var(--light-bg);
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.badge.high { background: #fce8e6; color: #d93025; }
.badge.medium { background: #fef7e0; color: #b06000; }
.badge.low { background: #e6f4ea; color: var(--success-green); }
.badge.pending { background: #fce8e6; color: #d93025; }
.badge.progress { background: #fef7e0; color: #b06000; }
.badge.resolved { background: #e6f4ea; color: var(--success-green); }

/* Footer */
.site-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

/* Responsive */
@media(max-width: 900px) {
    .services-grid, .province-grid, .team-grid, .stats-row, .footer-grid, .hero-grid {
        grid-template-columns: 1fr;
    }
}

:root {
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
}

/* Header & Navigation */
header {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

header nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

header nav a:hover, header nav a.active {
  color: #38bdf8;
}

.nav-btn {
  background: var(--primary-color);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-btn:hover {
  background: var(--primary-hover);
}

/* Main Container */
.main-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Grid & Layout Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Base Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #64748b;
  color: #fff;
}

.btn-secondary:hover {
  background: #475569;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-block {
  width: 100%;
}

/* Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: #f8fafc;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-progress { background: #e0f2fe; color: #0369a1; }
.badge-resolved { background: #dcfce7; color: #166534; }

.badge-high { background: #fee2e2; color: #991b1b; }
.badge-medium { background: #ffedd5; color: #9a3412; }
.badge-low { background: #f1f5f9; color: #475569; }

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}

.sidebar-brand {
  padding: 24px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #38bdf8;
}

.sidebar-menu {
  list-style: none;
  padding: 16px 0;
  flex-grow: 1;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-menu li.active a, .sidebar-menu li a:hover {
  background: var(--sidebar-hover);
  color: #38bdf8;
  border-left: 4px solid #38bdf8;
}

.dashboard-content {
  margin-left: 260px;
  flex-grow: 1;
  padding: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #e0f2fe;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-details h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-details p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

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

.modal-container {
  background: #fff;
  border-radius: var(--radius-md);
  width: 500px;
  max-width: 90%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.2s ease-out;
}

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

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

.modal-header h3 {
  font-size: 18px;
  color: var(--text-main);
}

.close-modal {
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
}

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .stats-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 70px;
  }
  .sidebar-brand span, .sidebar-menu span {
    display: none;
  }
  .dashboard-content {
    margin-left: 70px;
  }
}