@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --emerald-primary: #10b981;
    --emerald-dark: #065f46;
    --emerald-light: #d1fae5;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #064e3b;
    --text-muted: #374151;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #f0fdf4;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

.emerald-glow {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 32px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-orb {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.privacy-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Hero */
.hero {
    text-align: center;
    padding: 40px 0 60px;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h2 span {
    color: var(--emerald-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Drop Zone - Frosted Emerald */
.drop-zone {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 3px dashed var(--emerald-primary);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}

.drop-zone.dragover {
    transform: scale(1.02);
    background: rgba(16, 185, 129, 0.05);
    border-style: solid;
}

.drop-zone.dragover::before {
    opacity: 1;
}

.drop-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--emerald-primary);
    animation: bounce 2s infinite;
}

.drop-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.drop-content p {
    color: var(--text-muted);
}

/* Settings Drawer - Unique Slide-out */
.settings-drawer {
    position: fixed;
    right: -320px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
    padding: 40px 24px;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.05);
}

.settings-drawer.open {
    right: 0;
}

.drawer-toggle {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--emerald-primary);
    border: none;
    border-radius: 16px 0 0 16px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.settings-drawer.open .drawer-toggle {
    left: 0;
    border-radius: 0 16px 16px 0;
    opacity: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.drawer-header h2 {
    margin-bottom: 0;
    font-size: 1.75rem;
}

.btn-close-drawer {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.btn-close-drawer:hover {
    color: var(--emerald-primary);
    transform: rotate(90deg);
}

.setting-group {
    margin-bottom: 24px;
}

.setting-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.format-chips {
    display: flex;
    gap: 8px;
}

.chip {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.chip.active {
    background: var(--emerald-primary);
    color: white;
    border-color: var(--emerald-primary);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--emerald-primary);
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    outline: none;
}

/* Action Bar */
.action-bar {
    margin-top: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.btn-primary {
    background: var(--emerald-primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ef4444;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* Gallery Grid */
.gallery-container {
    margin-top: 48px;
    min-height: 200px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.image-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.img-preview-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    overflow: hidden;
}

.img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    margin-top: 16px;
}

.file-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.file-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-converting {
    background: #dcfce7;
    color: #166534;
}

.status-done {
    background: #dbeafe;
    color: #1e40af;
}

/* Info Section */
.info-section {
    margin: 100px 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px;
}

.glass-card h3 {
    font-size: 2.5rem;
    margin-bottom: 48px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature h4 {
    color: var(--emerald-primary);
    margin-bottom: 16px;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 78, 59, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.glass-loader {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    width: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--emerald-light);
    border-top-color: var(--emerald-primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: rotate 1s linear infinite;
}

/* Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
        gap: 20px;
    }
}