/* ============================================
   LOKER LABS - Custom Styles
   ============================================ */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }
.dark ::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

/* Navbar scrolled */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
.dark .navbar-scrolled {
    background: rgba(15, 23, 42, 0.85) !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delay { animation: float 4s ease-in-out 1s infinite; }
.animate-float-delay-2 { animation: float 4s ease-in-out 2s infinite; }

/* Pulse glow */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
}
.animate-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero background */
.hero-bg {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 30%, #f0f9ff 60%, #ffffff 100%);
}
.dark .hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Job card hover */
.job-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.15);
}
.dark .job-card:hover {
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.1);
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Step progress */
.step-circle {
    transition: all 0.4s ease;
}
.step-circle.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.step-circle.completed {
    background: #16a34a;
    color: white;
}
.step-line {
    transition: background 0.4s ease;
}
.step-line.active {
    background: linear-gradient(to right, #2563eb, #3b82f6);
}

/* Upload area */
.upload-area {
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}
.upload-area:hover, .upload-area.dragover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}
.dark .upload-area { border-color: #475569; }
.dark .upload-area:hover, .dark .upload-area.dragover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Success checkmark */
@keyframes checkmark {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes circleScale {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.animate-checkmark { animation: checkmark 0.6s ease-out 0.3s both; }
.animate-circle { animation: circleScale 0.4s ease-out both; }

/* Skeleton loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}
.dark .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

/* QRIS countdown */
.countdown-urgent {
    color: #ef4444;
    animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Admin table */
.admin-table th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}
.dark .admin-table th {
    background: #1e293b;
}

/* Toast */
.swal2-popup {
    font-family: 'Inter', sans-serif !important;
    border-radius: 16px !important;
}

/* Timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: -20px;
    width: 2px;
    background: #e2e8f0;
}
.dark .timeline-item::before {
    background: #334155;
}
.timeline-item:last-child::before {
    display: none;
}

/* Share button */
.share-btn {
    transition: all 0.2s ease;
}
.share-btn:hover {
    transform: translateY(-2px);
}

/* Form focus ring */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-bg { padding-top: 5rem; }
}