/* AIResolveX – Squareshift-inspired: forest green CTAs, black text, golden accent */
:root {
    --bg: #f8f7f5;
    --surface: #ffffff;
    --border: #e5e3df;
    --text: #000000;
    --text-muted: #333333;
    /* Primary: dark forest green for buttons and main CTAs */
    --primary: #2d5f47;
    --primary-hover: #244d3a;
    /* Accent: golden for highlights (e.g. "AI" in title) */
    --accent: #c9a227;
    --accent-hover: #b8921f;
    --success: #2d5f47;
    --error: #b91c1c;
    --shadow: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,.08);
    --radius: 6px;
    --radius-lg: 10px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* Login page – warm, focused */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(165deg, #faf9f7 0%, #f0ebe6 50%, #ebe5de 100%);
}
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.25rem;
    width: 100%;
    max-width: 400px;
}
.login-card h1 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.02em;
}
.login-card h1 .brand-accent { color: var(--accent); }
.login-card .subtitle {
    color: #000000;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}
.login-form .form-group { margin-bottom: 1.125rem; }
.login-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
}
.login-form input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: #000000;
}
.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 122, 93, .18);
}
.login-form button[type="submit"] {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s;
}
.login-form button[type="submit"]:hover { background: var(--primary-hover); }
.login-divider {
    text-align: center;
    color: #000000;
    font-size: 0.875rem;
    margin: 1rem 0;
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    background: var(--surface);
    color: #000000;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-google:hover { background: var(--bg); border-color: var(--text-muted); }
.login-page .error { color: var(--error); font-size: 0.9rem; margin-top: 0.5rem; }
.login-page .info { color: var(--success); font-size: 0.9rem; margin-top: 0.5rem; }

/* App bar – white header, dark text */
.app-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
.app-bar h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: color .15s, background .15s;
}
.nav a:hover { color: var(--accent); background: rgba(201, 162, 39, .08); }

/* Container & cards */
.container { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.alert.message { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg); border-bottom: 2px solid var(--border); }
th {
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    padding: 0.875rem 1rem;
}
td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* Buttons – forest green primary, clean secondary */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); border-color: var(--text-muted); }
.btn-link { background: none; color: var(--primary); padding: 0.25rem 0; }
.btn-link:hover { color: var(--primary-hover); text-decoration: underline; }

/* Forms */
.form-group { margin-bottom: 1.125rem; }
.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}
.form-group input,
.form-group select {
    width: 100%;
    max-width: 320px;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 122, 93, .18);
}
.form-group input:disabled { background: var(--bg); color: var(--text-muted); }
.form-actions { margin-top: 1.5rem; display: flex; gap: 0.5rem; align-items: center; }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); font-size: 0.9375rem; }
