/* Shared Navigation Styles */

.nav-container {
    background: linear-gradient(to bottom, white 0%, #e5e5e5 25%, #c5c5c5 100%) !important;
    border-bottom: 1px solid #a0a0a0;
    position: sticky;
    top: 0;
    z-index: 100;
    user-select: none;
    -webkit-user-select: none; /* Safari */
}

/* Navigation link colors - reversed from default */
.nav-item {
    color: var(--brand-primary-dark) !important;  /* Normal state - change this color */
}

.nav-item:hover,
.nav-item.active {
    color: #333 !important;  /* Hover and active - change this color */
}

.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    padding: 0 20px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 3px solid #c5c5c5;
    transition: none;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.nav-item:hover {
    color: var(--brand-primary, #4CAF50);
    background: linear-gradient(to bottom, white 0%, #f5f5f5 25%, #d5d5d5 100%) !important;
    border-bottom: 3px solid #a5a5a5;
    transition: none;
}

.nav-item.active {
    background: linear-gradient(to bottom, white 0%, #b5b5b5 25%, #a5a5a5 100%) !important;
    color: var(--brand-primary, #4CAF50);
    border-bottom: 3px solid var(--brand-primary, #4CAF50);
    transition: none;
}

.nav-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .nav-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-bottom: none;
        border-top: 1px solid #a0a0a0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        background: #d5d5d5;
    }
    
    .nav-menu {
        padding: 0;
        height: 68px;
    }
    
    .nav-item {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 2px;
    }
    
    /* Add padding to main content to account for fixed bottom nav */
    .container {
        padding-bottom: 80px !important;
    }
}

/* Tab panels for account page */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}
