/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    overflow-x: hidden;
}

/* SIDEBAR */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    z-index: 999;
    transition: 0.3s ease;
}

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.sidebar-logo img {
    width: 140px;
    height: auto;
}

.sidebar-menu {
    padding: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
}

.menu-item:hover {
    background: #f3f4f6;
}

.active-menu {
    background: #eef2ff;
    color: #4f46e5;
}

/* FIX ICONS */

.menu-item img,
.dashboard-card img,
.logout-btn img {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
    object-fit: contain;
    display: block;
}

/* PAGE CONTENT */

.page-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    padding: 30px;
    transition: 0.3s ease;
}

/* DASHBOARD */

.dashboard-heading {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    text-decoration: none;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

.dashboard-card-content h3 {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 10px;
}

.dashboard-card-content p {
    font-size: 32px;
    font-weight: 700;
}

/* LOGOUT */

.sidebar-logout {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #fecaca;
}

/* MOBILE MENU BUTTON */

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
}

/* OVERLAY */

.sidebar-overlay {
    display: none;
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        left: -260px;
        width: 260px;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .page-content {
        margin-left: 0;
        width: 100%;
        padding: 70px 20px 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-heading {
        font-size: 24px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .dashboard-card-content p {
        font-size: 28px;
    }
}
