/* === INHERITED FROM F:\repos\automation-lab\src\styles\dark-theme.module.css + globals.css === */
/* NO DEVIATIONS — exact colors, gradients, component styles from original project */

:root,
[data-theme="light"] {
    --background: #ffffff;
    --foreground: #171717;
    --muted: #6b7280;
    --card: rgba(0, 0, 0, 0.04);
    --card-strong: rgba(0, 0, 0, 0.08);
    --line: rgba(0, 0, 0, 0.1);
    --accent-blue: #4f9cff;
    --accent-cyan: #4ee7f0;
    --accent-green: #5ef0a6;
    --accent-yellow: #ffd166;
    --accent-pink: #ff6ec7;
    --accent-purple: #703a8b;
    --accent-red: #ff6b6b;
    --accent-teal: #2dd4bf;

    --bg: #ffffff;
    --bg-2: #f5f5f5;
    --text: #171717;
    --blue: #4f9cff;
    --cyan: #4ee7f0;
    --green: #5ef0a6;
    --yellow: #ffd166;
    --pink: #ff6ec7;
    --purple: #703a8b;
    --red: #ff6b6b;
    --teal: #2dd4bf;
}

[data-theme="dark"] {
    --background: #07111f;
    --foreground: #f7fbff;
    --muted: #aebbd0;
    --card: rgba(255, 255, 255, 0.08);
    --card-strong: rgba(255, 255, 255, 0.14);
    --line: rgba(255, 255, 255, 0.14);

    --bg: #07111f;
    --bg-2: #0d1b2f;
    --text: #f7fbff;
    --blue: #4f9cff;
    --cyan: #4ee7f0;
    --green: #5ef0a6;
    --yellow: #ffd166;
    --pink: #ff6ec7;
    --purple: #703a8b;
    --red: #ff6b6b;
    --teal: #2dd4bf;
}

/* === BASE LAYOUT === */

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter Tight', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

[data-theme="dark"] body,
body.dark {
    background:
        radial-gradient(ellipse at 20% 10%, rgba(79, 156, 255, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 78% 18%, rgba(255, 110, 199, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 55% 80%, rgba(78, 231, 240, 0.16) 0%, transparent 50%),
        linear-gradient(135deg, #07111f 0%, #0d1b2f 100%);
    background-attachment: fixed;
}

[data-theme="light"] body,
body.light {
    background: var(--background);
}

/* === GLASSMORPHISM CARD === */

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .glass-card {
    background: var(--card);
    border-color: var(--line);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* === FORM INPUTS === */

input, textarea, select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: var(--card);
    border-color: var(--line);
    color: var(--text);
}

input::placeholder, textarea::placeholder {
    color: rgba(174, 187, 208, 0.5);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(78, 231, 240, 0.15);
    background: rgba(255, 255, 255, 0.09);
}

/* === PRIMARY BUTTON === */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    color: #07111f;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(94, 240, 166, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* === LABELS === */

label, .label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}

/* === ERROR MESSAGE === */

.error-message {
    padding: 12px 16px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    color: var(--red);
    font-size: 14px;
    margin-bottom: 20px;
}

/* === EYEBROW BADGE === */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan);
}

[data-theme="light"] .eyebrow {
    background: var(--card);
}

/* === FOOTER === */

.footer {
    text-align: center;
    padding: 32px 0;
    color: var(--muted);
    font-size: 14px;
}

.footer a {
    color: var(--cyan);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* === LOADING SPINNER === */

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* === HEADINGS === */

h1, h2, h3 {
    color: var(--foreground);
}

/* === LINKS === */

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === DARK MODE SELECT STYLING === */

[data-theme="dark"] select {
    color-scheme: dark;
}

[data-theme="dark"] select option {
    background-color: #0d1b2f;
    color: #f7fbff;
}

[data-theme="dark"] select option:hover,
[data-theme="dark"] select option:focus,
[data-theme="dark"] select option:active,
[data-theme="dark"] select option:checked {
    background-color: #1a3a5c;
    color: #4ee7f0;
}

[data-theme="dark"] select::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] select::-webkit-scrollbar-track {
    background: #0d1b2f;
}

[data-theme="dark"] select::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

[data-theme="dark"] select {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) #0d1b2f;
}

/* === NAVIGATION === */

nav a {
    color: var(--muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 14px;
}

nav a:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}
