/* AI Compressor - Styles v2 */

/* ===== Dropzone ===== */
.dropzone-active {
    border-color: #6366f1 !important;
    background-color: rgba(99, 102, 241, 0.06) !important;
    transform: scale(1.005);
}

/* ===== Active nav ===== */
.nav-link.active {
    color: #4f46e5;
    background-color: #eef2ff;
    font-weight: 600;
}

/* ===== Progress bar ===== */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

@keyframes pulse-border {
    0%, 100% { border-color: #c7d2fe; }
    50% { border-color: #6366f1; }
}

.processing-card {
    animation: pulse-border 2s ease-in-out infinite;
}

/* ===== Range slider ===== */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, #e0e7ff 0%, #c7d2fe 100%);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(79,70,229,0.35);
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(79,70,229,0.35);
}

/* ===== Spinner ===== */
.spinner {
    border: 3px solid #e0e7ff;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Category badges ===== */
.badge-image { background: #dbeafe; color: #1e40af; }
.badge-pdf { background: #fee2e2; color: #991b1b; }
.badge-video { background: #ede9fe; color: #5b21b6; }
.badge-audio { background: #dcfce7; color: #166534; }
.badge-office { background: #ffedd5; color: #9a3412; }

/* ===== Animations ===== */
#app {
    animation: fadeIn 0.25s ease-out;
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.hero-arrow {
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.7; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}

/* ===== Smooth scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Code block ===== */
pre {
    white-space: pre;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.65;
}

/* ===== Card hover lift ===== */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* ===== Preset button active ===== */
.preset-btn.active-preset {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #eef2ff;
}

/* ===== Plan badge colors (safe Tailwind classes) ===== */
.plan-free { background: #f3f4f6; color: #374151; }
.plan-pro { background: #e0e7ff; color: #4338ca; }
.plan-business { background: #ede9fe; color: #5b21b6; }
.plan-enterprise { background: #fef3c7; color: #92400e; }

/* ===== Tooltip ===== */
.tooltip-trigger:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.15s ease;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .hero-arrow { display: none; }
}

/* ===== Toast notification ===== */
.toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== Stats counter animation ===== */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-value {
    animation: countUp 0.5s ease-out;
}

/* ===== Input focus ring ===== */
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    ring: 2px;
    ring-color: #6366f1;
    border-color: transparent;
}

/* ===== Gradient text helper ===== */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
