/* Sidebar Navigation */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--surface);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    flex: 1;
    padding: 1rem;
}

.nav-item-custom {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item-custom:hover {
    background: rgba(67, 97, 238, 0.05);
    color: var(--primary);
}

.nav-item-custom.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-item-custom i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--background);
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    /* Bottom Navigation for Mobile */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--surface);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1001;
        justify-content: space-around;
        padding: 0.5rem 0;
    }
}

@media (min-width: 993px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item i {
    font-size: 1.4rem;
}

/* Grid Dashboard Improvements */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Quick Action Buttons */
.btn-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
}