﻿/* GENERAL */
html {
    font-size: 14px;
}

body {
    background: #f4f5f7;
    margin: 0;
}

/* SIDEBAR DESKTOP */
.sidebar {
    width: 250px;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    background: #222;
    overflow-y: auto;
    transition: all 0.3s ease;
}

html[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
}

.sidebar a {
    display: block;
    padding: 10px 20px;
    color: #cfcfe8;
    font-size: 14px;
    text-decoration: none;
}

    .sidebar a:hover {
        background: #2b2b3b;
        color: white;
    }

/* CONTENT */
.content {
    margin-top: 70px;
    margin-left: 250px;
    padding: 25px;
}

html[dir="rtl"] .content {
    margin-right: 250px;
    margin-left: 0;
}

/* FOOTER */
footer {
    background: #007bff;
    padding: 25px;
    color: white;
    text-align: center;
    margin-top: 40px;
}

/* 📱 MOBILE RESPONSIVE */
@media (max-width: 991px) {

    /* hide sidebar by default */
    .sidebar {
        display: none;
        width: 250px;
        position: fixed;
        z-index: 9999;
        height: 100vh;
        padding-top: 70px;
    }

        /* offcanvas visible */
        .sidebar.open {
            display: block;
        }

    /* content full width */
    .content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 15px;
    }
}
