﻿:root {
    --accent: #10b981;
    --accent-dark: #059669;
    --text: #111827;
    --border: #e5e7eb;
}

/* ====================== GLOBAL RESET ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Cairo', 'Inter', system-ui, sans-serif;
    background: #f8fafc;
}

/* ====================== SIDEBAR (ثابت في كل الصفحات) ====================== */
.sidebar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    min-height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.logo-section {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.extinguisher-img {
    width: 92px;
    filter: drop-shadow(0 10px 15px rgba(16, 185, 129, 0.25));
}

.sidebar h2 {
    font-weight: 700;
    color: var(--accent-dark);
    margin: 12px 0 4px 0;
}

.sidebar .nav-link i {
    color: var(--accent) !important; /* مهم: !important ليبقى ثابت */
    font-size: 1.3rem;
    width: 26px;
}

.sidebar .nav-link {
    color: var(--text);
    padding: 14px 20px;
    margin: 4px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        background: #f0fdf4;
        color: var(--accent-dark);
        transform: translateX(-6px);
    }

.logout-btn {
    color: #ef4444 !important;
    margin-top: auto;
    padding: 14px 20px;
    margin: 4px 12px;
    border-radius: 14px;
    width: calc(100% - 24px);
    text-align: right;
    background: none;
    border: none;
    font-weight: 600;
}

/* باقي الستايلات (Header + Responsive) */
.header-container {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.user-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}

.user-avatar {
    width: 52px;
    height: -52px;
    border-radius: 50%;
    border: 3px solid var(--accent);
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--accent);
    padding: 8px;
}

/* Focus */
.btn:focus, .nav-link:focus, .form-control:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #10b981;
    outline: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        right: 0;
        width: 280px;
        height: 100%;
        transform: translateX(100%);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    }

        .sidebar.show {
            transform: translateX(0);
        }
}

@media (max-width: 767px) {
    .header-container {
        padding: 1rem 1.25rem;
    }
}
