/* ============================================================
   ULTRA-FUTURISTIC & HIGH-TECH INTERACTIVE DESIGN SYSTEM
   ============================================================ */

/* 1. Animated Cyberpunk Mesh Background */
body {
    background: radial-gradient(circle at 50% -20%, #1e1b4b 0%, #0f172a 45%, #020617 100%) !important;
    background-attachment: fixed !important;
    color: #f8fafc;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Floating Glow Spheres in Background */
body::before, body::after {
    content: '';
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.35;
    animation: floatGlow 10s ease-in-out infinite alternate;
}

body::before {
    background: #6366f1;
    top: -100px;
    left: -100px;
}

body::after {
    background: #ec4899;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 80px) scale(1.2); }
}

/* 2. Glassmorphism Dynamic Cards with Edge Light */
.card, .dashboard-card, .stat-card {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

/* 3. Interactive Shimmer Light Overlay on Cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transition: left 0.7s ease-in-out;
}

.card:hover::before {
    left: 100%;
}

.card:hover, .dashboard-card:hover, .stat-card:hover {
    transform: translateY(-8px) scale(1.015) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6),
                0 0 25px rgba(99, 102, 241, 0.25) !important;
}

/* 4. Neon Gradient Animated Headings */
h1, h2, h3, .brand-logo {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* 5. Futuristic Magnetic Buttons with Light Ripple */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35) !important;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.55),
                0 0 15px rgba(129, 140, 248, 0.4) !important;
}

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

.btn-outline {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.6) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2) !important;
}

/* 6. High-Tech Table Row Interactions */
tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.08) !important;
    transform: scale(1.008);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 7. Live Radar Pulsing Status Badges */
.badge {
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.badge-success::before {
    content: '';
    width: 7px;
    height: 7px;
    background-color: #4ade80;
    border-radius: 50%;
    animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

/* 8. Modern Input Focus & Glow */
input, select, textarea {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), 
                0 0 20px rgba(99, 102, 241, 0.2) !important;
    transform: translateY(-2px);
}

/* 9. Glowing Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
    box-shadow: 0 0 10px #6366f1;
}
