/* ================================================================== */
/* AIVA v3 Dashboard - minimal CSS (Phase A)                          */
/* ================================================================== */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1f2e;
    background: #f4f6fb;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.aiva-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1f2e;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #0d1019;
}
.aiva-header a { color: inherit; text-decoration: none; }
.aiva-header__brand strong { font-size: 1.1rem; }
.aiva-header__tag { font-size: 0.75rem; opacity: 0.7; margin-left: 0.5rem; }
.aiva-nav { display: flex; gap: 1.2rem; }
.aiva-nav a { padding: 0.4rem 0.6rem; border-radius: 4px; }
.aiva-nav a.is-active { background: #2563eb; }
.aiva-header__user { display: flex; align-items: center; gap: 0.8rem; font-size: 0.9rem; }
.aiva-header__user select {
    background: #2a3144; color: #fff; border: 1px solid #3a4258;
    padding: 0.2rem 0.4rem; border-radius: 4px;
}
.aiva-logout { color: #f87171 !important; }

/* Main */
.aiva-main {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}
.aiva-pagetitle {
    margin: 0 0 1.2rem 0;
    font-size: 1.5rem;
}

/* Footer */
.aiva-footer {
    text-align: center;
    color: #94a3b8;
    padding: 1.5rem;
    font-size: 0.8rem;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.card h2, .card h3 { margin-top: 0; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid #e5e7eb; }
.table th { background: #f8fafc; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #475569; }
.table tr:hover td { background: #f8fafc; }

/* Status pills */
.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.pill--ok      { background: #dcfce7; color: #166534; }
.pill--warn    { background: #fef3c7; color: #854d0e; }
.pill--err     { background: #fee2e2; color: #991b1b; }
.pill--neutral { background: #e2e8f0; color: #334155; }

/* Forms */
.form { max-width: 360px; margin: 4rem auto; }
.form .card { padding: 2rem; }
.form label { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; color: #475569; }
.form input[type=text], .form input[type=email], .form input[type=password] {
    width: 100%; padding: 0.55rem 0.7rem; border: 1px solid #cbd5e1;
    border-radius: 6px; font-size: 1rem; margin-bottom: 1rem;
}
.form button {
    width: 100%; padding: 0.7rem; background: #2563eb; color: #fff;
    border: 0; border-radius: 6px; font-size: 1rem; cursor: pointer;
}
.form button:hover { background: #1d4ed8; }
.form .err { background: #fee2e2; color: #991b1b; padding: 0.5rem 0.7rem; border-radius: 6px; margin-bottom: 0.8rem; font-size: 0.9rem; }
