* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f6f9fc 0%, #f0f7ff 100%);
    min-height: 100vh;
}

.drop-zone {
    border: 3px dashed #3b82f6;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    background: rgba(239, 246, 255, 0.7);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.drop-zone:hover::before {
    left: 100%;
}

.drop-zone.dragover {
    border-color: #1d4ed8;
    background: rgba(219, 234, 254, 0.9);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.compress-box {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.compress-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px -20px rgba(37, 99, 235, 0.3);
}

canvas,
#compressedPreview {
    max-width: 100%;
    height: auto;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

canvas:hover,
#compressedPreview:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px #3b82f6;
}

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

.quality-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    outline: none;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #3b82f6;
}

.toast-message {
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(59, 130, 246, 0.3);
}

.feature-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: #2563eb;
    font-weight: 500;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .drop-zone {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }
}