/* Menilo Theme Variables */
:root {
    /* Colors */
    --primary-color: #6c5ce7;
    --primary-hover: #5b4cc4;
    --sidebar-bg: #323259;
    --sidebar-text: #aab0bc;
    --sidebar-active-bg: rgba(108, 92, 231, 0.1);
    --sidebar-active-text: #ffffff;
    --body-bg: #f5f7fb;
    --card-bg: #ffffff;
    --text-dark: #2b2b2b;
    --text-muted: #8898aa;

    /* Status Colors */
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
    --info: #0984e3;

    /* Metrics */
    --sidebar-width: 260px;
    --header-height: 70px;
    --border-radius: 12px;
}

body {
    background-color: var(--body-bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* Card Styling */
.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.02), 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.card-title {
    font-weight: 600;
    color: #344767;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-section-title {
    padding: 16px 24px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6a6c8a;
    font-weight: 600;
}

.nav-link {
    color: var(--sidebar-text);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.nav-link.active {
    color: var(--sidebar-active-text);
    background: var(--sidebar-active-bg);
    border-left-color: var(--primary-color);
}

.nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px 30px;
    transition: all 0.3s;
}

/* Header */
.top-header {
    background-color: transparent;
    border-radius: var(--border-radius);
    padding: 15px 0;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    background: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(50, 50, 93, 0.01);
    min-width: 300px;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
}

.header-icons .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: #fff;
    margin-left: 10px;
    transition: all 0.2s;
    border: none;
}

.header-icons .btn-icon:hover {
    color: var(--primary-color);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Upgrade Card */
.upgrade-card {
    background: linear-gradient(135deg, #4b4b72 0%, #323259 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px;
    text-align: center;
    color: #fff;
}

.upgrade-card h5 {
    font-size: 16px;
    margin-bottom: 10px;
}

.upgrade-card p {
    font-size: 12px;
    opacity: 0.7;
}


/* Responsive Mobile Styles */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1060;
        /* High z-index */
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .top-header {
        margin-bottom: 20px;
        padding: 10px 0;
    }

    .search-bar {
        min-width: auto;
        flex: 1;
        margin-left: 10px;
    }

    /* Mobile Overlay - Scoped ID to avoid conflicts if possible, but for standard pages we use #mobileMenuOverlay */
    #mobileMenuOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        /* Below sidebar */
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    #mobileMenuOverlay.show {
        display: block;
        opacity: 1;
    }
}