/* Unified Citizen Grievance Prediction System - Professional Styles */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8e;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --sidebar-width: 260px;
    --sidebar-bg: #0f2744;
    --body-bg: #f0f4f8;
}

* { font-family: 'Inter', sans-serif; }
body { background: var(--body-bg); min-height: 100vh; display: flex; flex-direction: column; }
.bg-primary-custom { background: var(--primary) !important; }
.text-primary-custom { color: var(--primary) !important; }

/* Landing Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 80%; height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 8px 20px;
    color: #fff;
    font-size: 0.85rem;
    display: inline-block;
}
.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card h3 { font-size: 2rem; font-weight: 700; margin-bottom: 4px; }

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid #e8edf2;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30,58,95,0.12);
}
.feature-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Category Cards */
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e8edf2;
    transition: all 0.3s;
}
.category-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(14,165,233,0.15); }
.category-card i { font-size: 2rem; color: var(--accent); margin-bottom: 12px; }

/* Footer */
.footer-custom { background: var(--sidebar-bg); margin-top: auto; }

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 100px 0 40px;
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}
.auth-card .auth-header {
    background: var(--primary);
    color: #fff;
    padding: 32px;
    text-align: center;
}

/* Admin Sidebar Layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s;
}
.admin-sidebar .brand {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.admin-sidebar .nav-section {
    padding: 16px 16px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 10px 24px;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}
.admin-sidebar .nav-link i { width: 22px; margin-right: 10px; }

.admin-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}
.admin-topbar {
    background: #fff;
    padding: 16px 32px;
    border-bottom: 1px solid #e8edf2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-content { padding: 32px; }

/* Dashboard Cards */
.dash-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e8edf2;
    transition: transform 0.2s;
}
.dash-card:hover { transform: translateY(-2px); }
.dash-card .icon-box {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.dash-card h2 { font-size: 1.75rem; font-weight: 700; margin: 8px 0 4px; }
.dash-card p { color: #64748b; margin: 0; font-size: 0.875rem; }

/* Tables */
.table-custom {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.table-custom thead { background: var(--primary); color: #fff; }
.table-custom thead th { border: none; padding: 14px 16px; font-weight: 500; font-size: 0.85rem; }
.table-custom tbody td { padding: 12px 16px; vertical-align: middle; font-size: 0.875rem; }

/* Status Badges */
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-in_progress { background: #dbeafe; color: #1e40af; }
.badge-resolved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-high, .badge-emergency { background: #fee2e2; color: #991b1b; }
.badge-medium { background: #fef3c7; color: #92400e; }
.badge-low { background: #d1fae5; color: #065f46; }

/* Forms */
.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e8edf2;
}
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d9e0;
    padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
}
.btn-primary-custom:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 8px; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* Page Header */
.page-header {
    margin-bottom: 28px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0; }
.page-header p { color: #64748b; margin: 4px 0 0; }

/* User Dashboard */
.user-nav { background: #fff; border-bottom: 1px solid #e8edf2; padding: 12px 0; }
.user-content { padding: 32px 0; }

/* Print */
@media print {
    .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
    .admin-main { margin-left: 0 !important; }
}

@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}
