@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-50: #f0f9ff; --primary-500: #1a1a1b; --primary-600: #1a1a1a; --primary-700: #0369a1;
    --accent-500: #d97706; --success-500: #10b981; --dark-800: #1e293b; --dark-900: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.25); --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.37); --shadow-hover: 0 15px 35px 0 rgba(31, 38, 135, 0.4);
}

[data-theme="dark"] {
    --glass-bg: rgba(0, 0, 0, 0.25); --glass-border: rgba(255, 255, 255, 0.1);
}

body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, #f9fafb 0%, #f1f5f9 100%); min-height: 100vh; }
[data-theme="dark"] body { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }

.text-primary-600 {
    --tw-text-opacity: 1;
    color: rgb(255 255 255);
}

.glass-card { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.glass-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.smart-dropzone { border: 2px dashed #cbd5e0; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%); position: relative; overflow: hidden; }
.smart-dropzone::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent); transition: left 0.6s; }
.smart-dropzone:hover::before { left: 100%; }
.smart-dropzone.active { border-color: var(--primary-500); background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%); transform: scale(1.02); }

.smart-button { position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.smart-button::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; }
.smart-button:hover::before { width: 300px; height: 300px; }

.primary-button { background: linear-gradient(135deg, #1a1a1a 0%, #fc7928 100%); color: white; padding: 0.75rem 2rem; border-radius: 0.75rem; font-weight: 600; transition: all 0.3s ease; transform: translateY(0); box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); border: none; cursor: pointer; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4); }

.secondary-button { background: rgba(255, 255, 255, 0.8); color: #374151; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: 500; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.3); cursor: pointer; }
.secondary-button:hover { background: rgba(255, 255, 255, 0.95); transform: translateY(-1px); }

.quick-action-btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.5); transition: all 0.3s ease; cursor: pointer; border: none; }
.quick-action-btn:hover { background: rgba(255, 255, 255, 0.8); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.quick-action-btn i { font-size: 1.5rem; color: var(--primary-500); }
.quick-action-btn span { font-size: 0.75rem; font-weight: 500; color: #6b7280; }

.progress-bar { transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); height: 8px; border-radius: 9999px; position: relative; overflow: hidden; }
.progress-bar::after { content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent); background-size: 50px 50px; animation: move 2s linear infinite; }
@keyframes move { 0% { background-position: 0 0; } 100% { background-position: 50px 50px; } }

.file-item { transition: all 0.2s ease; border-radius: 0.5rem; }
.file-item:hover { background-color: rgba(248, 250, 252, 0.8); transform: translateY(-2px); }

.result-item { transition: all 0.3s ease; border-radius: 0.75rem; }
.result-item:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }

.blob { filter: blur(60px); opacity: 0.4; animation: float 8s ease-in-out infinite; }
.glow { box-shadow: 0 0 15px rgba(14, 165, 233, 0.3); }
.highlight-text { background: linear-gradient(90deg, #0ea5e9 0%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }

.smart-range { -webkit-appearance: none; width: 100%; height: 8px; background: #e2e8f0; border-radius: 9999px; outline: none; }
.smart-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); border-radius: 50%; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3); }
.smart-range::-webkit-slider-thumb:hover { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); }

.smart-control-group { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); border-radius: 0.75rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.2); }
.smart-label { display: flex; align-items: center; font-size: 0.875rem; font-weight: 600; color: var(--dark-800); }
.smart-select, .smart-input { width: 100%; padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.8); border: 1px solid #d1d5db; border-radius: 0.75rem; transition: all 0.3s ease; }
.smart-select:focus, .smart-input:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); outline: none; }

.smart-checkbox { display: flex; align-items: center; cursor: pointer; }
.smart-checkbox input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: relative; display: inline-block; width: 20px; height: 20px; background-color: white; border: 2px solid #cbd5e0; border-radius: 6px; margin-right: 0.75rem; transition: all 0.2s; }
.smart-checkbox input:checked ~ .checkmark { background-color: var(--primary-500); border-color: var(--primary-500); }
.checkmark:after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.smart-checkbox input:checked ~ .checkmark:after { display: block; }

.preset-btn { display: flex; align-items: center; justify-content: center; padding: 0.5rem 0.75rem; background: linear-gradient(135deg, #f9fafb, #f3f4f6); color: #374151; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.3); cursor: pointer; }
.preset-btn:hover { background: linear-gradient(135deg, var(--primary-100), var(--primary-50)); color: var(--primary-700); transform: translateY(-1px); }

.ai-button { background: linear-gradient(135deg, #8b5cf6, #a855f7); color: white; padding: 0.5rem 1.5rem; border-radius: 0.5rem; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); border: none; cursor: pointer; }
.ai-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); }

.feature-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); border-radius: 1rem; padding: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.feature-icon { width: 4rem; height: 4rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.feature-title { font-size: 1.125rem; font-weight: 700; color: var(--dark-800); margin-bottom: 0.5rem; }
.feature-description { color: #6b7280; font-size: 0.875rem; line-height: 1.5; }

.loader { position: relative; width: 24px; height: 24px; }
.loader-dot { position: absolute; width: 6px; height: 6px; background: var(--primary-500); border-radius: 50%; animation: loaderAnimation 1.5s infinite ease-in-out; }
.loader-dot:nth-child(1) { top: 0; left: 0; animation-delay: 0s; }
.loader-dot:nth-child(2) { top: 0; right: 0; animation-delay: 0.25s; }
.loader-dot:nth-child(3) { bottom: 0; right: 0; animation-delay: 0.5s; }
.loader-dot:nth-child(4) { bottom: 0; left: 0; animation-delay: 0.75s; }
@keyframes loaderAnimation { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }

.bg-grid-pattern { background-image: linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px); background-size: 20px 20px; }

.social-link { width: 2.5rem; height: 2.5rem; background: #374151; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: all 0.3s ease; text-decoration: none; }
.social-link:hover { background: var(--primary-600); color: white; transform: translateY(-2px); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 50; }

.toast-notification { position: fixed; top: 1rem; right: 1rem; z-index: 1000; max-width: 400px; padding: 1rem; border-radius: 0.5rem; color: white; font-weight: 500; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); transform: translateX(100%); transition: transform 0.3s ease; }
.toast-notification.show { transform: translateX(0); }
.toast-notification.success { background: linear-gradient(135deg, #10b981, #059669); }
.toast-notification.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast-notification.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.toast-notification.info { background: linear-gradient(135deg, #3b82f6, #2563eb); }

@media (max-width: 768px) { .smart-dropzone { padding: 2rem 1rem; } .feature-card { padding: 1rem; } .glass-card { margin: 0 0.5rem; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
@media (prefers-contrast: high) { .glass-card { background: rgba(255, 255, 255, 0.9); border: 2px solid #000; } .smart-button { border: 2px solid #000; } }

.smart-button:focus, .smart-select:focus, .smart-input:focus { outline: 3px solid rgba(14, 165, 233, 0.5); outline-offset: 2px; }
