/* Lumenkey Trust - Custom Styles */

/* ===== SIDEBAR ===== */
#sidebar { transition: transform 0.3s ease; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #DC2626; border-radius: 3px; }

/* ===== CARD HOVER ===== */
.stat-card { transition: all 0.2s ease; }
.stat-card:hover { transform: translateY(-2px); }

.table-hover tbody tr:hover { background-color: #FEF2F2 !important; }

.nav-link-active { border-left: 3px solid #DC2626; background-color: #FEF2F2; }

/* ===== BUTTON PULSE ===== */
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-red { background-color: #FEF2F2; color: #DC2626; }

.spinner-red {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #DC2626;
    border-radius: 50%;
    width: 24px; height: 24px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ENHANCED ANIMATIONS ===== */

/* Fade in from bottom */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fade in from left */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Fade in from right */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scale in */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Float / gentle bob */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Glow pulse for CTAs */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.6); }
}

/* Shimmer for stat cards */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Slide in from top (navbar) */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-slide-down {
    animation: slideDown 0.6s ease-out forwards;
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

/* Card hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Border glow on focus */
.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Counter animation placeholder for number transitions */
.count-up {
    transition: all 0.5s ease-out;
}

/* Ripple effect on buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}
.btn-ripple:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* Staggered list animation */
.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }

/* ===== ADMINLTE OVERRIDES ===== */
.small-box.bg-danger { background: linear-gradient(135deg, #DC2626, #B91C1C) !important; }
.small-box.bg-warning { background: linear-gradient(135deg, #F59E0B, #D97706) !important; }
.small-box.bg-info { background: linear-gradient(135deg, #3B82F6, #2563EB) !important; }
.small-box.bg-success { background: linear-gradient(135deg, #10B981, #059669) !important; }
.btn-danger { background-color: #DC2626 !important; border-color: #DC2626 !important; }
.btn-danger:hover { background-color: #B91C1C !important; border-color: #B91C1C !important; }

/* ===== AOS OVERRIDE ===== */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}
