/* Sleek Cyber Theme */
.matrix-bg {
    background: 
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

/* Navigation */
.nav-link {
    position: relative;
    color: #9ca3af;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.nav-link:hover {
    color: white;
    background: rgba(139, 92, 246, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(139, 92, 246, 0.15);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: #8b5cf6;
    transition: height 0.2s ease;
    border-radius: 2px;
}

.nav-link.active::before {
    height: 60%;
}

/* Mobile Navigation */
.mobile-nav-link {
    display: flex;
    align-items: center;
    color: #9ca3af;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: white;
    background: rgba(139, 92, 246, 0.1);
}

/* Badges */
.badge, .mobile-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    border-radius: 8px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transform: scale(0);
    transition: transform 0.2s ease;
    padding: 0 4px;
}

.badge.active, .mobile-badge.active {
    transform: scale(1);
}

.mobile-badge {
    position: static;
    margin-left: auto;
    transform: scale(0);
}

.mobile-badge.active {
    transform: scale(1);
}

/* Cards */
.challenge-card {
    background: rgba(30, 30, 60, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    border-radius: 6px;
}

.challenge-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 12px -2px rgba(139, 92, 246, 0.3);
}

.solved-challenge {
    border-left: 3px solid #10b981;
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-in {
    from { 
        opacity: 0;
        transform: translateY(-8px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.8);
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Progress bars */
.bg-lain-purple {
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Compact forms */
.compact-input {
    background: rgba(30, 30, 60, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    color: white;
    transition: all 0.2s ease;
}

.compact-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(139, 92, 246, 0.4);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #notification-container {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Status indicators */
.status-online {
    color: #10b981;
}

.status-offline {
    color: #6b7280;
}

.status-busy {
    color: #f59e0b;
}