/* ============================================
   EDESON VIDEO DOWNLOADER APP - Main Styles
   ============================================ */

/* --- CSS Custom Properties (Light Mode Default) --- */
:root {
    /* Primary Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    --primary-glow: rgba(79, 70, 229, 0.3);

    /* Accent Colors */
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);

    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-header: rgba(255, 255, 255, 0.85);
    --bg-input: #ffffff;
    --bg-hover: rgba(79, 70, 229, 0.05);

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: #4f46e5;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 20px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-header: 1000;
    --z-notification: 2000;
    --z-modal: 3000;

    /* Header Height */
    --header-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    transition: all var(--transition-fast);
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.hidden { display: none !important; }
.visible { display: block !important; }

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    z-index: var(--z-header);
    transition: background var(--transition-base), border-color var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo-text span {
    color: var(--primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Dark Mode Toggle */
.theme-toggle {
    width: 48px;
    height: 28px;
    background: var(--border);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.dark-mode .theme-toggle {
    background: var(--primary);
}

.dark-mode .theme-toggle::after {
    transform: translateX(20px);
}

.theme-toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    z-index: 1;
    transition: opacity var(--transition-fast);
}

.theme-toggle .sun-icon {
    left: 7px;
    opacity: 1;
}

.theme-toggle .moon-icon {
    right: 5px;
    opacity: 0.5;
}

.dark-mode .theme-toggle .sun-icon {
    opacity: 0.5;
}

.dark-mode .theme-toggle .moon-icon {
    opacity: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.hamburger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Ad Banner Space */
.ad-banner {
    width: 100%;
    max-width: 970px;
    height: 90px;
    margin: var(--header-height) auto 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Main Content --- */
.main-content {
    padding-top: calc(var(--header-height) + var(--space-xl));
    min-height: 100vh;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.4rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

/* --- URL Input Section --- */
.url-input-section {
    max-width: 720px;
    margin: 0 auto;
}

.url-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.url-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-md);
}

.url-input-wrapper input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.url-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all var(--transition-fast);
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

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

.btn-download:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-download .btn-icon {
    font-size: 1.1rem;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-base);
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
}

/* --- Video Info Card --- */
.video-info-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    max-width: 800px;
    margin: var(--space-xl) auto;
    animation: slideUp 0.4s ease;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail .duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.video-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-meta-item .meta-icon {
    font-size: 1rem;
}

.video-site-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.3rem 0.8rem;
    background: var(--info-light);
    color: var(--info);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

/* --- Format Options --- */
.format-options {
    margin-top: var(--space-lg);
}

.format-options h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-sm);
}

.format-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.format-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.format-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.format-option .format-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.format-option .format-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

.btn-icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

/* --- Download Manager --- */
.download-manager {
    max-width: 900px;
    margin: var(--space-2xl) auto;
}

.download-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-base);
    animation: slideUp 0.3s ease;
}

.download-item:hover {
    box-shadow: var(--shadow-md);
}

.download-item-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.download-item-info {
    min-width: 0;
}

.download-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-item-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.download-progress {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-top: var(--space-sm);
    overflow: hidden;
}

.download-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.download-item-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.download-status {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 4px;
}

.download-status.active { color: var(--primary); }
.download-status.completed { color: var(--success); }
.download-status.paused { color: var(--warning); }
.download-status.failed { color: var(--danger); }

/* --- Section Titles --- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* --- Supported Sites Grid --- */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.site-card {
    padding: var(--space-lg);
    cursor: default;
}

.site-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.site-card-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.site-card-name {
    font-weight: 700;
    font-size: 1rem;
}

.site-card-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.site-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: var(--space-sm);
}

.badge-supported {
    background: var(--success-light);
    color: var(--success);
}

.badge-partial {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

/* --- Search Input --- */
.search-wrapper {
    position: relative;
    max-width: 500px;
    margin-bottom: var(--space-xl);
}

.search-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Category Filters --- */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.category-btn {
    padding: 0.4rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
}

/* --- History Table --- */
.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.history-table thead th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.history-table tbody td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.history-table tbody tr {
    transition: background var(--transition-fast);
}

.history-table tbody tr:hover {
    background: var(--bg-hover);
}

.history-thumb {
    width: 80px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-secondary);
}

/* --- Notification Toast --- */
.notification-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-xl);
    z-index: var(--z-notification);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}

.notification {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 320px;
    max-width: 420px;
    pointer-events: all;
    animation: slideInRight 0.4s var(--transition-spring) forwards;
    border-left: 4px solid var(--info);
}

.notification.success { border-left-color: var(--success); }
.notification.error { border-left-color: var(--danger); }
.notification.warning { border-left-color: var(--warning); }
.notification.info { border-left-color: var(--info); }

.notification-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.notification.success .notification-icon { color: var(--success); }
.notification.error .notification-icon { color: var(--danger); }
.notification.warning .notification-icon { color: var(--warning); }
.notification.info .notification-icon { color: var(--info); }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.notification-message {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.notification-close {
    background: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.notification.removing {
    animation: slideOutRight 0.3s ease forwards;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    font-size: 0.9rem;
}

/* --- Loading Spinner --- */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* --- Accordion (Help/FAQ) --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.accordion-item:hover {
    border-color: var(--primary);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.accordion-header:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.accordion-arrow {
    transition: transform var(--transition-fast);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.accordion-body-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.developer-name {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.developer-name:hover {
    text-decoration: underline;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--success);
    font-weight: 600;
}

.whatsapp-link:hover {
    text-decoration: underline;
}

.websites-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.websites-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.websites-links a:hover {
    color: var(--primary);
}

/* --- Guide Steps --- */
.guide-steps {
    max-width: 700px;
    margin: var(--space-xl) auto;
}

.guide-step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.guide-step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.guide-step-content h4 {
    font-size: 1.05rem;
    margin-bottom: var(--space-xs);
}

.guide-step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Page Title --- */
.page-title {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
}

.page-title h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.page-title p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- About Page --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.about-contact-item {
    padding: var(--space-lg);
    text-align: center;
}

.about-contact-item .contact-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.about-contact-item h4 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.about-contact-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Disclaimer Box --- */
.disclaimer-box {
    background: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    display: flex;
    gap: var(--space-md);
}

.disclaimer-box .disclaimer-icon {
    font-size: 1.5rem;
    color: var(--warning);
    flex-shrink: 0;
}

.disclaimer-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Analysis Loading State --- */
.analyzing-state {
    text-align: center;
    padding: var(--space-2xl);
    display: none;
}

.analyzing-state.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.analyzing-state .spinner-lg {
    margin: 0 auto var(--space-md);
}

.analyzing-state p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Guidance Card --- */
.guidance-card {
    max-width: 700px;
    margin: var(--space-xl) auto;
    padding: var(--space-xl);
}

.guidance-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-md);
}

.guidance-card .site-tip {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.guidance-card .site-tip h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.guidance-card .site-tip p,
.guidance-card .site-tip li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guidance-card .site-tip ul {
    padding-left: var(--space-lg);
    list-style: disc;
}

.guidance-card .site-tip ul li {
    margin-bottom: var(--space-xs);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(60px); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Shimmer loading effect */
.shimmer {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-light) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Focus Visible (Accessibility) --- */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Selection --- */
::selection {
    background: var(--primary-light);
    color: var(--primary);
}
