:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(45deg, #2ed573 0%, #17a2b8 100%);
    --danger-gradient: linear-gradient(45deg, #ff6b6b 0%, #ee5a24 100%);
    --warning-gradient: linear-gradient(45deg, #ffa726 0%, #ff7043 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 16px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.gradient-text {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: var(--secondary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 15px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-gradient:disabled {
    opacity: 0.6;
    transform: none;
}

.btn-success-gradient {
    background: var(--success-gradient);
}

.btn-danger-gradient {
    background: var(--danger-gradient);
}

.upload-zone {
    border: 3px dashed #4facfe;
    border-radius: 20px;
    background: linear-gradient(45deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #00f2fe;
    background: linear-gradient(45deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
}

.upload-zone.dragover {
    border-color: #667eea;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.progress-container {
    position: relative;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--secondary-gradient);
    border-radius: 10px;
    width: 0%;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #111;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.control-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.control-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.25);
}

.range-value {
    background: var(--secondary-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.stat-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 172, 254, 0.1);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.toast-custom {
    background: var(--success-gradient);
    color: white;
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    min-width: 300px;
}

.toast-custom.error {
    background: var(--danger-gradient);
}

.toast-custom.info {
    background: var(--secondary-gradient);
}

.filename-display {
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.icon-gradient {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
}

.upload-icon {
    font-size: 4rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .upload-zone {
        padding: 2rem 1rem !important;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .btn-gradient {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}