﻿/* Modern dashboard styles for Giriraj Seva Karan Tatpar */

.dashboard-shell {
    min-height: calc(100vh - 160px);
    padding: 34px 0 42px;
}

main.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.dashboard-shell {
    padding: 34px 24px 42px;
}

.dashboard-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.dashboard-menu-toggle {
    display: none;
    position: fixed;
    top: 100px;
    left: 18px;
    z-index: 60;
    border: none;
    background: rgba(216, 180, 79, 0.22);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    width: 44px;
    height: 44px;
}

.dashboard-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    background: rgba(20, 17, 13, 0.95);
    border: 1px solid rgba(216, 180, 79, 0.16);
    border-radius: 28px;
    padding: 28px 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    min-height: calc(100vh - 170px);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.sidebar-eyebrow {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-title {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.1;
    color: var(--text);
}

.sidebar-close {
    display: none;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px;
}

.dashboard-menu {
    display: grid;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
    border: 1px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    transform: translateX(2px);
    background: rgba(216, 180, 79, 0.18);
    color: var(--text);
}

.menu-item.active {
    border-color: rgba(216, 180, 79, 0.35);
}

.menu-icon {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.menu-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.menu-logout {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 22px;
    color: #ffb5b0;
}

.menu-logout:hover {
    background: rgba(239, 111, 111, 0.14);
    color: #ffe3e3;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.dashboard-headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(216, 180, 79, 0.14);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.dashboard-headline .eyebrow {
    margin: 0 0 14px;
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.dashboard-headline h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 2.7vw, 3.4rem);
    line-height: 1.05;
    max-width: 720px;
    color: var(--text);
}

.dashboard-welcome {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.sidebar-theme-toggle {
    margin: 18px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-theme-toggle .theme-toggle {
    width: 100%;
    margin: 0;
    border: none;
    background: rgba(216, 180, 79, 0.12);
    color: var(--accent);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    justify-content: flex-start;
    gap: 12px;
}

.sidebar-theme-toggle .theme-toggle:hover {
    background: rgba(216, 180, 79, 0.22);
    color: var(--text);
}

.dashboard-actions .action-btn {
    min-width: 170px;
}

.dashboard-actions .action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.dashboard-body {
    display: grid;
    gap: 28px;
}

.dashboard-section {
    background: rgba(20, 17, 13, 0.96);
    border: 1px solid rgba(216, 180, 79, 0.16);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.dashboard-section h3 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    color: var(--text);
}

.issue-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
}

.section-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.98rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
}

.stat-icon {
    font-size: 2rem;
    min-width: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(216, 180, 79, 0.14);
}

.stat-number {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.quick-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 160ms ease, filter 160ms ease;
}

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

.issue-form,
.feedback-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-group label {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.form-errors {
    background: rgba(239, 111, 111, 0.12);
    border: 1px solid rgba(239, 111, 111, 0.26);
    color: #ffecec;
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.form-errors li {
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 14px 16px;
    font-size: 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(216, 180, 79, 0.75);
    box-shadow: 0 0 0 4px rgba(216, 180, 79, 0.12);
}

.btn-primary,
.action-btn.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-secondary {
    display: inline-flex;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.issues-list {
    display: grid;
    gap: 14px;
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 18px;
    display: block;
}

.dashboard-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 180ms ease;
    z-index: 50;
}

.dashboard-overlay.visible {
    display: block;
    opacity: 1;
}

@media (max-width: 1100px) {
    .dashboard-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        min-height: auto;
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        height: 100vh;
        transform: translateX(-116%);
        opacity: 0;
        visibility: hidden;
        transition: transform 220ms ease, opacity 220ms ease;
        z-index: 55;
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
        border-radius: 0 0 28px 0;
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .dashboard-menu-toggle {
        display: inline-flex;
    }

    .dashboard-shell {
        padding-top: 24px;
    }

    .sidebar-close {
        display: inline-flex;
    }

    .dashboard-headline {
        padding: 28px;
    }
}

@media (max-width: 860px) {
    .dashboard-shell {
        min-height: auto;
        padding-top: 26px;
    }

    .dashboard-headline {
        padding: 24px;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions .action-btn {
        flex: 1;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-shell {
        padding: 20px 0 24px;
    }

    .dashboard-headline {
        padding: 20px;
        gap: 18px;
    }

    .sidebar-header {
        gap: 12px;
    }

    .sidebar-title {
        font-size: 1.45rem;
    }

    .dashboard-content {
        gap: 20px;
    }

    .dashboard-section {
        padding: 24px;
        border-radius: 24px;
    }
}

body.theme-light .dashboard-sidebar,
body.theme-light .dashboard-headline,
body.theme-light .dashboard-section,
body.theme-light .issue-card,
body.theme-light .stat-card,
body.theme-light .form-errors {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(20, 24, 28, 0.12);
}

body.theme-light .dashboard-sidebar {
    background: rgba(255, 255, 255, 0.98);
}

body.theme-light .dashboard-headline,
body.theme-light .dashboard-section,
body.theme-light .issue-card,
body.theme-light .stat-card {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

body.theme-light .menu-item {
    background: rgba(20, 24, 28, 0.04);
    color: var(--text);
}

body.theme-light .menu-item:hover,
body.theme-light .menu-item.active {
    background: rgba(161, 127, 79, 0.12);
    color: var(--text);
}

body.theme-light .form-group input,
body.theme-light .form-group textarea,
body.theme-light .form-group select {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(20, 24, 28, 0.12);
    color: var(--text);
}

body.theme-light .btn-secondary,
body.theme-light .action-btn.secondary {
    background: rgba(20, 24, 28, 0.05);
    color: var(--accent);
}
