/* ============================================================
   Nam Ooru Voice - Complete Design System
   Report. Raise. Resolve.
   ============================================================ */

/* ============ CSS Variables / Design Tokens ============ */
:root {
    --primary-dark: #123B7A;
    --primary: #1e5ab8;
    --primary-light: #3b82f6;
    --secondary: #0EA5E9;
    --secondary-light: #38bdf8;
    --accent: #6366f1;
    --success: #16A34A;
    --success-light: #22c55e;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #0ea5e9;
    --background: #F6F8FC;
    --background-alt: #EFF3F8;
    --surface: #FFFFFF;
    --surface-hover: #F8FAFC;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

/* Dark mode */
[data-theme="dark"] {
    --primary-dark: #1e3a5f;
    --background: #0f172a;
    --background-alt: #1e293b;
    --surface: #1e293b;
    --surface-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.3);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
}

[data-theme="dark"] body {
    background-color: var(--background);
    color: var(--text-primary);
}

[data-theme="dark"] .card-modern,
[data-theme="dark"] .auth-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .form-control-custom {
    background-color: var(--background);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--surface-hover);
}

[data-theme="dark"] .mobile-bottom-nav {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .rep-box {
    background: var(--background);
    border-color: var(--border);
}

[data-theme="dark"] .post-footer {
    border-color: var(--border);
}

[data-theme="dark"] .action-btn:hover {
    background: var(--surface-hover);
}

[data-theme="dark"] .comments-section {
    background: var(--background) !important;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white {
    background: var(--surface) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

/* ============ Global Reset & Base ============ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--secondary);
    color: white;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ============ Utility Classes ============ */
.bg-light-blue { background-color: var(--background) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }
.text-info { color: var(--secondary) !important; }
.fw-medium { font-weight: 500 !important; }

/* Glass Effect */
.glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 20px; margin-bottom: 12px; width: 60%; }
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; }
.skeleton-image { height: 200px; width: 100%; }

/* Fade In Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease-out; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease-out; }
.animate-slideDown { animation: slideDown 0.3s ease-out; }
.animate-scaleIn { animation: scaleIn 0.3s ease-out; }

/* ============ Card System ============ */
.card-modern {
    background: var(--surface);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

/* ============ Post Card ============ */
.post-card {
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: backwards;
}

.post-card:nth-child(1) { animation-delay: 0s; }
.post-card:nth-child(2) { animation-delay: 0.05s; }
.post-card:nth-child(3) { animation-delay: 0.1s; }
.post-card:nth-child(4) { animation-delay: 0.15s; }
.post-card:nth-child(5) { animation-delay: 0.2s; }

.post-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
}

.post-header .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    flex-shrink: 0;
    transition: var(--transition);
}

.post-header .avatar:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.post-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--background);
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    background-color: var(--background);
    transition: transform 0.4s ease;
    cursor: pointer;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-body {
    padding: 1.25rem;
}

.post-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.post-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.post-description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    padding: 0.5rem 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.25rem;
}

/* ============ Action Buttons ============ */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

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

.action-btn.liked {
    color: var(--danger);
}

.action-btn.liked i {
    animation: heartBeat 0.6s ease-in-out;
}

.action-btn.liked:hover {
    background-color: #fee2e2;
}

.action-btn.saved {
    color: var(--warning);
}

.action-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.action-btn:active i {
    transform: scale(0.85);
}

/* ============ Status Badges ============ */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.status-reported { background-color: #e0e7ff; color: #4338ca; }
.status-review { background-color: #fef3c7; color: #b45309; }
.status-progress { background-color: #dbeafe; color: #1d4ed8; }
.status-resolved { background-color: #dcfce7; color: #15803d; }
.status-rejected { background-color: #fee2e2; color: #b91c1c; }

/* ============ Category Badge ============ */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--background);
    color: var(--text-secondary);
}

/* ============ Representative Box ============ */
.rep-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem;
    margin-top: 1rem;
}

.rep-box-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.rep-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.rep-item + .rep-item {
    border-top: 1px solid var(--border-light);
}

.rep-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.rep-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.rep-position {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============ Timeline ============ */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 7px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--surface);
    z-index: 1;
}

.timeline-dot.active {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 90, 184, 0.15);
}

.timeline-dot.completed {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

/* ============ Mobile Bottom Navigation ============ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    background: var(--surface);
    border-top: 1px solid var(--border-light);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    width: 20%;
    padding: 0.25rem;
    transition: var(--transition);
    position: relative;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary);
}

.mobile-bottom-nav .nav-item.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.mobile-bottom-nav .report-btn {
    position: relative;
    top: -10px;
}

.report-icon-wrapper {
    background: var(--gradient-primary);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    border: 3px solid white;
    transition: var(--transition);
}

.report-icon-wrapper:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.report-icon-wrapper i {
    font-size: 1.5rem;
    margin-bottom: 0 !important;
    color: white;
}

/* ============ Auth Pages ============ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    animation: scaleIn 0.4s ease-out;
}

.auth-logo {
    width: 68px;
    height: 68px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(18, 59, 122, 0.25);
    transition: var(--transition);
}

.auth-logo:hover {
    transform: rotate(-5deg) scale(1.05);
}

/* ============ Forms ============ */
.form-control-custom {
    background-color: var(--background);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--text-primary);
}

.form-control-custom:focus {
    background-color: var(--surface);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-select-custom {
    background-color: var(--background);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--text-primary);
    cursor: pointer;
    appearance: auto;
}

.form-select-custom:focus {
    background-color: var(--surface);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

/* ============ Buttons ============ */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.5s;
}

.btn-primary-custom:hover::after {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
    color: white;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-gradient-danger {
    background: var(--gradient-warm);
    border: none;
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-1px);
}

/* ============ Hero Section ============ */
.hero-section {
    background: var(--gradient-primary);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.hero-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: var(--radius-full);
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.hero-btn:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ============ Stats Cards ============ */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============ Notification Badge ============ */
.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--primary-dark);
    animation: pulse 2s infinite;
}

.notif-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary-dark);
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* ============ Notification List ============ */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--background);
}

.notification-item.unread {
    background: rgba(14, 165, 233, 0.05);
    border-left: 3px solid var(--secondary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ============ News Card ============ */
.news-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-category-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ============ Tab Pills ============ */
.feed-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.feed-tabs::-webkit-scrollbar {
    display: none;
}

.feed-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.feed-tab:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(14, 165, 233, 0.05);
}

.feed-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============ Profile Page ============ */
.profile-header {
    background: var(--gradient-primary);
    padding: 2rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    margin-bottom: 1rem;
    object-fit: cover;
}

.profile-stat {
    text-align: center;
    padding: 1rem;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.profile-menu-item:hover {
    background: var(--background);
    color: var(--primary);
}

.profile-menu-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

/* ============ Comments Section ============ */
.comments-section {
    background: var(--background) !important;
    border-top: 1px solid var(--border-light);
}

.comment-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.comment-bubble {
    background: var(--surface);
    padding: 0.6rem 0.9rem;
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    border: 1px solid var(--border-light);
    flex: 1;
}

.comment-author {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.comment-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ============ Issue Detail Modal ============ */
.issue-detail-modal .modal-content {
    border-radius: var(--radius-xl);
    border: none;
    overflow: hidden;
}

.issue-detail-modal .modal-header {
    border-bottom: 1px solid var(--border-light);
}

/* ============ Search ============ */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrapper input {
    padding-left: 2.75rem;
}

/* ============ Empty State ============ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
}

.empty-state h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    max-width: 300px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* ============ Landing Page ============ */
.landing-hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.landing-hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.landing-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
}

.landing-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.landing-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    font-weight: 400;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    color: white;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* ============ Floating Report Button (Desktop) ============ */
.fab-report {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    z-index: 1040;
    transition: var(--transition);
    cursor: pointer;
}

.fab-report:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.5);
}

/* ============ Image Preview ============ */
.image-preview-container {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.image-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--danger);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: var(--shadow);
}

/* ============ Location Detection ============ */
.location-card {
    background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(99,102,241,0.05) 100%);
    border: 1px solid rgba(14,165,233,0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.location-detecting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ Dark Mode Toggle ============ */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
}

/* ============ Admin Layout ============ */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--primary-dark);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transition: var(--transition);
    overflow-y: auto;
    scrollbar-width: thin;
}

.admin-sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar-brand h5 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.admin-nav {
    padding: 0.5rem 0;
}

.admin-nav-section {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left-color: rgba(255,255,255,0.3);
}

.admin-nav-item.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left-color: var(--secondary);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-content {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    background: var(--background);
}

.admin-topbar {
    background: var(--surface);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ============ DataTable Enhancements ============ */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: var(--background);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.table-modern tbody tr:hover {
    background: var(--background);
}

/* ============ Map Styles ============ */
.map-container {
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-filter-bar {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

/* ============ Toast / Notification Popup ============ */
.toast-custom {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 9999;
    min-width: 300px;
    animation: slideDown 0.3s ease-out;
}

/* ============ Image Upload Dropzone ============ */
.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: var(--background);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--secondary);
    background: rgba(14, 165, 233, 0.03);
}

.upload-dropzone i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ============ Scrollbar Custom ============ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .post-body {
        padding: 1rem;
    }

    .post-footer {
        padding: 0.5rem 1rem;
    }

    .action-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .auth-card {
        padding: 1.75rem;
        border-radius: var(--radius-lg);
    }

    .fab-report {
        display: none;
    }

    main {
        padding-bottom: 80px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .landing-title {
        font-size: 2.2rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .post-header {
        padding: 0.85rem 1rem;
    }

    .status-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    .rep-box {
        padding: 0.65rem;
    }

    .rep-avatar {
        width: 30px;
        height: 30px;
    }

    .profile-header {
        padding: 1.5rem 1rem;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
    }
}

/* ============ Print styles ============ */
@media print {
    .mobile-bottom-nav,
    .fab-report,
    .admin-sidebar,
    .navbar {
        display: none !important;
    }

    .admin-content {
        margin-left: 0;
    }

    .card-modern {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
