/* Navigation Components - Consolidated Styles */

/* Header Styles */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #1f1f1d;
    border-bottom: 1px solid #2d3442;
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 1rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    height: 28px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.credits-badge:hover {
    background: rgba(0, 188, 212, 0.2);
    border-color: rgba(0, 188, 212, 0.4);
}

.credits-number {
    font-weight: 600;
    color: #00bcd4;
}

.credits-label {
    color: rgba(255, 255, 255, 0.7);
}

.user-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #ffffff;
}

/* Footer Styles */
.dashboard-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #1f1f1d;
    border-top: 1px solid #2d3442;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
    position: relative;
}

.nav-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-btn.active {
    color: #00bcd4;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #00bcd4;
    border-radius: 3px 3px 0 0;
}

.nav-btn svg {
    width: 24px;
    height: 24px;
}

.nav-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Main Content Area with Navigation */
.app-container {
    min-height: 100vh;
}

/* Main content area styling handled entirely by base-spa.css */

/* View container within main */
.view-container {
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        height: 56px;
    }
    
    .logo-text {
        height: 24px;
    }
    
    .credits-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .user-menu-btn {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .dashboard-footer {
        height: 70px;
    }
    
    .footer-nav {
        gap: 1rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
    }
    
    .nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-btn span {
        font-size: 0.625rem;
    }
    
    /* Mobile positioning for dashboard-main */
    .dashboard-main {
        top: 56px !important;
        bottom: 70px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .header-content {
        padding: 0 0.75rem;
    }
    
    .footer-nav {
        gap: 0.5rem;
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Account Flyout Styles */
.account-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.account-overlay.show {
    opacity: 1;
    visibility: visible;
}

.account-flyout {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #20293a;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.account-flyout.show {
    transform: translateX(0);
}

.flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #2d3442;
}

.flyout-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.flyout-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.flyout-close:hover {
    color: #ffffff;
}

.flyout-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.account-info {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #00bcd4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b1f2d;
    font-size: 1.125rem;
    font-weight: 600;
}

.account-details {
    flex: 1;
}

.account-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.125rem;
    text-align: center;
}

.account-id {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.flyout-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flyout-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.flyout-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.flyout-nav-item.active {
    background: rgba(0, 188, 212, 0.1);
    border-color: #00bcd4;
    color: #00bcd4;
}

.flyout-nav-item.logout {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.flyout-nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

.flyout-nav-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .account-flyout {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .account-flyout {
        width: 100%;
        max-width: 320px;
    }
}