/* Ngudut Main Styles - Premium Cobalt Theme */
:root {
    --bg-dark: #09090b; /* Zinc 950 */
    --accent-primary: #6366f1; /* Indigo 500 */
    --accent-secondary: #8b5cf6; /* Violet 500 */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(9, 9, 11, 0.6);
}

/* Base styles */
body {
    background-color: var(--bg-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Animated Mesh Gradient Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
    filter: blur(40px);
    animation: pulseMesh 10s ease-in-out infinite alternate;
}

@keyframes pulseMesh {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Enhanced Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Modern Button */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

/* Custom scrollbar */
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Animations */
.fade-in { animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.slide-up { animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Trim button active state */
.trim-active-btn {
    background-color: #eab308 !important;
    color: #000 !important;
}

/* Fix Autofill Browser - keep dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f1014 inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white;
    transition: background-color 5000s ease-in-out 0s;
}

/* Date picker icon color */
input::-webkit-calendar-picker-indicator { filter: invert(1); }

/* Gallery modal overlay */
.gallery-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

/* Gallery grid item hover effect */
.gallery-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    z-index: 10;
}

.gallery-item.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

/* Gallery checkbox styles */
.gallery-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-checkbox:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.gallery-checkbox:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 800;
}

/* Loading spinner */
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Progress bar animation */
.progress-bar { transition: width 0.3s ease; }

/* Modal animations */
.modal-enter { animation: modalFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ==========================================
   [NEW] PREMIUM HOVER ANIMATIONS - Issue 8
   ========================================== */

/* Logo Hover - Zoom + Glow Effect */
.logo-hover {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.logo-hover:hover {
    transform: scale(1.08) translateY(-2px);
    text-shadow: 0 0 40px rgba(255,255,255,0.3);
    filter: brightness(1.15);
}

/* URL Input Focus - Lift + Shadow */
.input-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.4),
                0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-premium:hover:not(:focus) {
    box-shadow: 0 4px 20px -5px rgba(99, 102, 241, 0.2);
}

/* Card Hover - Lift + Glow */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Button Micro-Interaction */
.btn-bounce {
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-bounce:hover {
    transform: scale(1.03);
}

.btn-bounce:active {
    transform: scale(0.97);
}

/* Format Button Hover */
.format-btn {
    transition: all 0.2s ease;
}

.format-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px -8px rgba(99, 102, 241, 0.3);
}

/* Floating Animation */
.float-animation {
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Pulse Glow Effect */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.6); }
}

/* Ripple Effect on Click */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
    transform: scale(4);
    opacity: 1;
    transition: 0s;
}
