/* ============================================
   NEON UI UPGRADE - PRODUCTION
   Glow + Neon + Glassmorphism Theme
   LearnVaultX
   ============================================ */

:root {
    --neon-green: #00ff88;
    --neon-blue: #4DA3FF;
    --neon-cyan: #67E8F9;
    --neon-pink: #ff006e;
    --neon-orange: #ffa500;
    --neon-purple: #b794f4;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 255, 136, 0.2);
    --glass-hover-border: rgba(0, 255, 136, 0.4);

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

.neon-card {
    background: rgba(16, 22, 51, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.neon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--neon-green),
            var(--neon-cyan),
            transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-card:hover {
    border-color: var(--glass-hover-border);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
}

.neon-card:hover::before {
    opacity: 1;
}

/* ============================================
   NEON BUTTONS
   ============================================ */

.btn-neon-primary {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 229, 255, 0.1));
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.btn-neon-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-neon-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-neon-primary:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5),
        0 0 60px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.btn-neon-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-neon-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.btn-neon-secondary {
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.1), rgba(103, 232, 249, 0.1));
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(77, 163, 255, 0.3);
}

.btn-neon-secondary:hover {
    box-shadow: 0 0 30px rgba(77, 163, 255, 0.5);
    transform: translateY(-2px);
}

.btn-neon-danger {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(255, 77, 148, 0.1));
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
}

.btn-neon-danger:hover {
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   NEON INPUT FIELDS
   ============================================ */

.input-neon {
    background: rgba(16, 22, 51, 0.6);
    border: 1px solid rgba(77, 163, 255, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: #EAF0FF;
    font-size: 14px;
    transition: var(--transition-smooth);
    width: 100%;
}

.input-neon::placeholder {
    color: #A8B0D8;
    transition: color 0.3s ease;
}

.input-neon:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2),
        0 0 20px rgba(77, 163, 255, 0.3);
    outline: none;
    background: rgba(16, 22, 51, 0.8);
}

.input-neon:focus::placeholder {
    color: transparent;
}

textarea.input-neon {
    resize: vertical;
    min-height: 100px;
}

select.input-neon {
    cursor: pointer;
}

/* ============================================
   SIDEBAR NEON EFFECTS
   ============================================ */

.sidebar-neon {
    background: rgba(10, 14, 35, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(0, 255, 136, 0.1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.nav-item-neon {
    position: relative;
    padding: 14px 20px;
    margin: 4px 12px;
    border-radius: 12px;
    color: #A8B0D8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.nav-item-neon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--neon-green), var(--neon-cyan));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item-neon:hover {
    background: rgba(77, 163, 255, 0.1);
    color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(77, 163, 255, 0.2);
}

.nav-item-neon.active {
    background: linear-gradient(90deg,
            rgba(0, 255, 136, 0.15),
            rgba(0, 255, 136, 0.05));
    color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.nav-item-neon.active::before {
    transform: scaleY(1);
}

.nav-item-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    filter: drop-shadow(0 0 4px currentColor);
}

/* ============================================
   SIDEBAR TOGGLE BUTTON
   ============================================ */

.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(16, 22, 51, 0.9);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transition: var(--transition-smooth);
}

.sidebar-toggle:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transform: scale(1.05);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 1100px) {
    .sidebar-toggle {
        display: flex;
    }
}

/* ============================================
   LOADING STATES (GLOWING SKELETON)
   ============================================ */

.skeleton-loader {
    background: linear-gradient(90deg,
            rgba(77, 163, 255, 0.1) 0%,
            rgba(77, 163, 255, 0.2) 50%,
            rgba(77, 163, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    height: 20px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-card {
    background: rgba(16, 22, 51, 0.6);
    border: 1px solid rgba(77, 163, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.skeleton-title {
    width: 60%;
    height: 24px;
    margin-bottom: 16px;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 40%;
}

/* ============================================
   MODAL NEON EFFECTS
   ============================================ */

.modal-neon-backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-neon-content {
    background: rgba(16, 22, 51, 0.95);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-neon-header {
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    padding: 24px;
}

.modal-neon-title {
    color: var(--neon-green);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress-neon {
    background: rgba(77, 163, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-neon-fill {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    position: relative;
    overflow: hidden;
}

.progress-neon-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   BADGES
   ============================================ */

.badge-neon {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.badge-neon.success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.badge-neon.info {
    background: rgba(77, 163, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(77, 163, 255, 0.2);
}

.badge-neon.warning {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--neon-orange);
    color: var(--neon-orange);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
}

.badge-neon.danger {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
}

/* ============================================
   TABS
   ============================================ */

.tabs-neon {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(77, 163, 255, 0.2);
    margin-bottom: 24px;
}

.tab-neon {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #A8B0D8;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    border-radius: 8px 8px 0 0;
}

.tab-neon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-neon:hover {
    color: var(--neon-blue);
    background: rgba(77, 163, 255, 0.05);
}

.tab-neon.active {
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.05);
}

.tab-neon.active::after {
    transform: scaleX(1);
}

/* ============================================
   TOOLTIP NEON
   ============================================ */

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: rgba(16, 22, 51, 0.95);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    color: var(--neon-blue);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 15px rgba(77, 163, 255, 0.3);
    z-index: 1000;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.glow-text {
    text-shadow: 0 0 10px currentColor;
}

.glow-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.glow-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.glow-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    }
}

/* ============================================
   QUICK ACTIONS UPGRADE (GLASSMORPHISM)
   ============================================ */

.quick-act-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.quick-act-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-act-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Specific Card Glows */
.quick-act-box:nth-child(1) {
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.15);
    /* Purple tint */
}

.quick-act-box:nth-child(1):hover {
    box-shadow: 0 20px 50px -10px rgba(139, 92, 246, 0.3), 0 0 20px rgba(139, 92, 246, 0.2) inset;
    border-color: rgba(139, 92, 246, 0.3);
}

.quick-act-box:nth-child(2) {
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.15);
    /* Blue tint */
}

.quick-act-box:nth-child(2):hover {
    box-shadow: 0 20px 50px -10px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.2) inset;
    border-color: rgba(59, 130, 246, 0.3);
}

.quick-act-box:nth-child(3) {
    box-shadow: 0 10px 40px -10px rgba(6, 182, 212, 0.15);
    /* Cyan tint */
}

.quick-act-box:nth-child(3):hover {
    box-shadow: 0 20px 50px -10px rgba(6, 182, 212, 0.3), 0 0 20px rgba(6, 182, 212, 0.2) inset;
    border-color: rgba(6, 182, 212, 0.3);
}

.quick-act-box:hover {
    transform: translateY(-8px) scale(1.02);
}

.qact-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-act-box:hover .qact-icon-wrapper {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.qact-icon {
    font-size: 28px;
    color: #f3f4f6;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.quick-act-box:nth-child(1) .qact-icon {
    color: #ddd;
}

.quick-act-box:nth-child(1):hover .qact-icon {
    color: #fff;
    text-shadow: 0 0 10px #8b5cf6;
}

.quick-act-box:nth-child(2) .qact-icon {
    color: #ddd;
}

.quick-act-box:nth-child(2):hover .qact-icon {
    color: #fff;
    text-shadow: 0 0 10px #3b82f6;
}

.quick-act-box:nth-child(3) .qact-icon {
    color: #ddd;
}

.quick-act-box:nth-child(3):hover .qact-icon {
    color: #fff;
    text-shadow: 0 0 10px #06b6d4;
}

.qact-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.qact-text {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 24px;
    font-weight: 400;
}

.qact-btn {
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    margin-top: auto;
    width: 60%;
    min-width: 140px;
}

.quick-act-box:nth-child(2) .qact-btn {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.quick-act-box:nth-child(3) .qact-btn {
    background: linear-gradient(90deg, #0891b2, #06b6d4);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.qact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    filter: brightness(1.1);
}

.quick-act-box:nth-child(2) .qact-btn:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.quick-act-box:nth-child(3) .qact-btn:hover {
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}