/* Navigation Bar Styles - Vertical Sidebar */

.navbar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: rgba(0, 0, 0, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.nav-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    height: 100%;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    height: 36px;
    width: auto;
    display: block;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, rgba(255, 255, 255, 0.95));
    letter-spacing: 0.5px;
    text-align: center;
}

.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary, rgba(255, 255, 255, 0.95));
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Credit Indicator */
.credit-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.credit-indicator:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.credit-display {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.credit-icon {
    font-size: 18px;
}

.credit-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    min-width: 30px;
    text-align: center;
}

.credit-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Low credits warning */
.credit-indicator.low-credits {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
    animation: pulse-warning 2s ease-in-out infinite;
}

.credit-amount.low-credits {
    color: #ff6b6b;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.btn-auth {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    width: 100%;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Add left margin to body content to account for sidebar */
body {
    margin-left: 250px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        width: 200px;
    }
    
    body {
        margin-left: 200px;
    }
    
    .nav-logo {
        height: 28px;
    }
    
    .nav-title {
        font-size: 0.95rem;
    }
}
