/* ============================================
   NEON-ADMIN.CSS - Purple/Blue Neon Admin Theme
   Super Modern, Unusual & Beautiful UI
   ============================================ */

/* === Neon Color Palette === */
:root {
    /* Primary Neon Colors */
    --neon-purple: #a855f7;
    --neon-purple-light: #c084fc;
    --neon-purple-dark: #7c3aed;
    --neon-blue: #3b82f6;
    --neon-blue-light: #60a5fa;
    --neon-cyan: #22d3ee;
    --neon-pink: #ec4899;

    /* Glow Effects */
    --glow-purple: rgba(168, 85, 247, 0.5);
    --glow-blue: rgba(59, 130, 246, 0.5);
    --glow-cyan: rgba(34, 211, 238, 0.4);

    /* Backgrounds */
    --bg-deep: #0a0a1a;
    --bg-card: rgba(20, 20, 40, 0.8);
    --bg-card-hover: rgba(30, 30, 60, 0.9);
    --glass-purple: rgba(168, 85, 247, 0.1);

    /* Border Gradients */
    --border-glow: linear-gradient(135deg, var(--neon-purple), var(--neon-blue), var(--neon-cyan));
}

/* === Animated Neon Background === */
.neon-bg-admin {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
        var(--bg-deep);
    z-index: -1;
}

.neon-bg-admin::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* === Grid Lines Background === */
.neon-grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

/* === Premium Sidebar === */
.neon-sidebar {
    background: linear-gradient(180deg, rgba(20, 10, 40, 0.95) 0%, rgba(10, 10, 30, 0.98) 100%);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow:
        5px 0 30px rgba(168, 85, 247, 0.1),
        inset -1px 0 0 rgba(168, 85, 247, 0.1);
}

/* === Logo/Brand === */
.neon-brand {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--neon-purple-light), var(--neon-blue-light), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px var(--glow-purple);
    animation: brandGlow 3s ease-in-out infinite alternate;
}

@keyframes brandGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px var(--glow-purple));
    }

    100% {
        filter: brightness(1.2) drop-shadow(0 0 20px var(--glow-blue));
    }
}

/* === Profile Card === */
.neon-profile-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.neon-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-glow);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.neon-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--glow-purple);
    transition: all 0.3s ease;
}

.neon-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--glow-purple);
}

/* === Navigation Items === */
.neon-nav-item {
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
}

.neon-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--neon-purple), transparent);
    opacity: 0;
    transition: all 0.35s ease;
}

.neon-nav-item:hover {
    color: white;
    background: rgba(168, 85, 247, 0.1);
    transform: translateX(8px);
}

.neon-nav-item:hover::before {
    width: 4px;
    opacity: 1;
}

.neon-nav-item:hover i {
    color: var(--neon-purple-light);
    text-shadow: 0 0 15px var(--glow-purple);
    transform: scale(1.15);
}

.neon-nav-item i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.neon-nav-item.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.15));
    color: white;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow:
        0 0 20px rgba(168, 85, 247, 0.2),
        inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.neon-nav-item.active::before {
    width: 4px;
    opacity: 1;
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--glow-purple);
}

.neon-nav-item.active i {
    color: var(--neon-purple-light);
    text-shadow: 0 0 20px var(--glow-purple);
}

/* === Notification Badge === */
.neon-badge {
    background: linear-gradient(135deg, var(--neon-pink), #f43f5e);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* === Stat Cards === */
.neon-stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.neon-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-glow);
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite;
}

.neon-stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(168, 85, 247, 0.15);
}

.neon-stat-card .stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.neon-stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px currentColor;
}

.neon-stat-card .stat-icon.purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.1));
    color: var(--neon-purple-light);
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.neon-stat-card .stat-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    color: var(--neon-blue-light);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.neon-stat-card .stat-icon.cyan {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(34, 211, 238, 0.1));
    color: var(--neon-cyan);
    border: 1px solid rgba(34, 211, 238, 0.4);
}

.neon-stat-card .stat-icon.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 0.1));
    color: var(--neon-pink);
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.neon-stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.neon-stat-card .stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Buttons === */
.neon-btn {
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.neon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-btn:hover::before {
    opacity: 1;
}

.neon-btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: white;
    box-shadow: 0 5px 20px var(--glow-purple);
}

.neon-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 30px var(--glow-purple),
        0 0 40px var(--glow-blue);
}

.neon-btn-secondary {
    background: rgba(168, 85, 247, 0.1);
    color: var(--neon-purple-light);
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.neon-btn-secondary:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--neon-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2);
}

.neon-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.neon-btn-danger:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.neon-btn-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.neon-btn-success:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

.neon-btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.neon-btn-icon:hover i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* === Glass Cards === */
.neon-glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
}

.neon-glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-glass-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.neon-glass-card:hover::after {
    opacity: 1;
}

/* === Table Styling === */
.neon-table {
    width: 100%;
    border-collapse: collapse;
}

.neon-table th {
    text-align: left;
    padding: 16px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(168, 85, 247, 0.8);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    font-weight: 700;
}

.neon-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.neon-table tr {
    transition: all 0.3s ease;
}

.neon-table tbody tr:hover {
    background: rgba(168, 85, 247, 0.08);
}

.neon-table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--neon-purple);
}

/* === Input Fields === */
.neon-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 14px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.neon-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.neon-input:focus {
    outline: none;
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.08);
    box-shadow:
        0 0 0 4px rgba(168, 85, 247, 0.15),
        0 0 20px rgba(168, 85, 247, 0.1);
}

/* === Search Bar === */
.neon-search {
    position: relative;
}

.neon-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(168, 85, 247, 0.5);
    transition: color 0.3s ease;
}

.neon-search input {
    padding-left: 50px;
}

.neon-search:focus-within i {
    color: var(--neon-purple);
}

/* === Tabs === */
.neon-tabs {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: rgba(20, 20, 40, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.neon-tab {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.neon-tab:hover {
    color: white;
    background: rgba(168, 85, 247, 0.1);
}

.neon-tab.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: white;
    box-shadow: 0 5px 20px var(--glow-purple);
}

/* === Modal === */
.neon-modal-overlay {
    background: rgba(5, 5, 15, 0.9);
    backdrop-filter: blur(10px);
}

.neon-modal {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(168, 85, 247, 0.2);
}

.neon-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

/* === Divider === */
.neon-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
    margin: 25px 0;
}

/* === Section Header === */
.neon-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.neon-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-section-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* === Logout Button === */
.neon-logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 14px 20px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
}

.neon-logout-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

/* === Scrollbar === */
.neon-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.neon-scrollbar::-webkit-scrollbar-track {
    background: rgba(168, 85, 247, 0.05);
}

.neon-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-blue));
    border-radius: 3px;
}

/* === Status Indicators === */
.neon-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.neon-status.online {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.neon-status.online::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
}

.neon-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.neon-status.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* === Floating Action Button === */
.neon-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow:
        0 10px 30px var(--glow-purple),
        0 0 40px var(--glow-blue);
    transition: all 0.3s ease;
    z-index: 100;
}

.neon-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow:
        0 15px 40px var(--glow-purple),
        0 0 60px var(--glow-blue);
}

/* === Responsive === */
@media (max-width: 768px) {
    .neon-stat-card:hover {
        transform: translateY(-4px);
    }

    .neon-btn-primary:hover {
        transform: translateY(-2px);
    }
}