/* Shared styles for all pages */

/* Page Container Transitions */
#page-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        transition: left 0.3s ease;
        z-index: 1001;
        height: 100vh;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1002;
        background: var(--bg-card);
        border: 1px solid var(--bg-card-border);
        color: var(--text-main);
        width: 44px;
        height: 44px;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .main-content {
        padding: 1rem;
        padding-top: 4rem;
    }

    /* Bottom Navigation for Mobile */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(18, 20, 28, 0.98);
        border-top: 1px solid var(--bg-card-border);
        padding: 0.5rem;
        justify-content: space-around;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.7rem;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.2s;
        min-width: 60px;
    }

    .bottom-nav a i {
        font-size: 1.25rem;
    }

    .bottom-nav a.active {
        color: var(--primary-accent);
        background: rgba(59, 130, 246, 0.1);
    }

    .main-content {
        padding-bottom: 5rem;
    }
}

@media (min-width: 769px) {

    .mobile-nav-toggle,
    .bottom-nav {
        display: none;
    }
}

/* Touch-friendly elements */
@media (max-width: 768px) {

    button,
    .icon-btn,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    .card {
        padding: 1rem;
    }

    .dashboard-grid {
        gap: 1rem;
    }
}

/* Page-specific containers */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}