:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --card-light: rgba(255, 255, 255, 0.8);
    --card-dark: rgba(30, 41, 59, 0.7);
    --text-light: #1e293b;
    --text-dark: #f8fafc;
    --accent: #10b981;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

body.light-theme {
    background: radial-gradient(circle at top left, #e2e8f0, #f8fafc);
    color: var(--text-light);
}

body.dark-theme {
    background: radial-gradient(circle at top left, #1e293b, #0f172a);
    color: var(--text-dark);
}

.container {
    max-width: 800px;
    width: 90%;
    padding: 2rem;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.light-theme .container {
    background: var(--card-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-theme .container {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

.form-control {
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-size: 1rem;
}

.light-theme .form-control {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark-theme .form-control {
    background: #1e293b;
    color: white;
    border-color: #334155;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

#result {
    margin-top: 2rem;
}

.scan-card {
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.5s ease;
}

.light-theme .scan-card {
    background: white;
}

.dark-theme .scan-card {
    background: #334155;
}

.screenshot-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

#themeToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
}