/* Layout & Dashboard Grid */

/* App Container */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation - Mobile First (Bottom Bar) */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 0.75rem;
    display: flex;
    justify-content: space-around;
    z-index: 50;
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    background-color: rgba(30, 41, 59, 0.85);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item i {
    width: 24px;
    height: 24px;
}

/* Desktop Sidebar (Optional - for Tablet+) */
@media (min-width: 768px) {
    #app {
        flex-direction: row;
    }

    .navbar {
        position: relative;
        width: 250px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        border-top: none;
        border-right: 1px solid var(--border);
        padding: 2rem 1rem;
        gap: 1rem;
    }

    .nav-item {
        flex-direction: row;
        width: 100%;
        padding: 0.75rem;
        border-radius: var(--radius);
        font-size: 1rem;
    }

    .nav-item:hover {
        background-color: var(--bg-surface);
    }
}

/* Views Container */
.view-container {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 5rem;
    /* Space for mobile nav */
    overflow-y: auto;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .view-container {
        padding-bottom: 1.5rem;
    }
}

/* Grid Layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-span-2 {
        grid-column: span 2;
    }
}