/* ====================================================================
   LevelLance Event Registration Platform - Admin Styling Suite
   ==================================================================== */

:root {
    --primary: #4f46e5;
    --primary-rgb: 79, 70, 229;
    --primary-dark: #3730a3;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0284c7;
    --bg-dark: #0f172a;
    --sidebar-bg: #111827;
    --card-border: rgba(226, 232, 240, 0.8);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-elevated: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Smooth Base Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Sidebar Custom Scrollbar */
#sidebar::-webkit-scrollbar {
    width: 4px;
}
#sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
}

/* Cards & Containers */
.card-custom, .card {
    border: 1px solid var(--card-border);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-card);
}

.card-stat {
    position: relative;
    overflow: hidden;
}

.card-stat::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.6;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label {
    font-size: 0.85rem;
    color: #475569;
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    border-color: #4338ca;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

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

/* Tables */
.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
    border-top: none;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.8);
}

/* Badges */
.badge-deployment {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    font-weight: 600;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
}

.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Pulsing Status Dot */
.status-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
    to {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* Live Radar Indicator */
.radar-blip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.radar-blip .circle-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
}

.radar-blip .circle-wave {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.4);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Defensive Sizing & Utilities for Icons & Modals */
.hidden {
    display: none !important;
}

svg {
    vertical-align: middle;
}

svg.w-3\.5 { width: 0.875rem !important; height: 0.875rem !important; max-width: 0.875rem; }
svg.w-4, .w-4 { width: 1rem !important; height: 1rem !important; max-width: 1rem; }
svg.w-5, .w-5 { width: 1.25rem !important; height: 1.25rem !important; max-width: 1.25rem; }
svg.w-6, .w-6 { width: 1.5rem !important; height: 1.5rem !important; max-width: 1.5rem; }
svg.w-8, .w-8 { width: 2rem !important; height: 2rem !important; max-width: 2rem; }
svg.w-10, .w-10 { width: 2.5rem !important; height: 2.5rem !important; max-width: 2.5rem; }
svg.w-12, .w-12 { width: 3rem !important; height: 3rem !important; max-width: 3rem; }
svg.w-16, .w-16 { width: 4rem !important; height: 4rem !important; max-width: 4rem; }

.h-4 { height: 1rem !important; }
.h-5 { height: 1.25rem !important; }
.h-6 { height: 1.5rem !important; }
.h-8 { height: 2rem !important; }
.h-10 { height: 2.5rem !important; }
.h-12 { height: 3rem !important; }
.h-16 { height: 4rem !important; }

/* Backdrop blur & modal enhancements */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

