/* MyHive — consola interna ERP24. Visual alinhado ao MyPortal (Roboto, primário #2671bf, superfícies claras). */

:root {
    --color-primary: #2671bf;
    --color-primary-dark: #1e5c9c;
    --bg-soft: #f7f9fc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --muted: #64748b;
    --sidebar-bg: #17293e;
    --sidebar-text: #cbd5e1;
    --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
}

html { font-size: 15px; }

body {
    font-family: "Roboto", system-ui, sans-serif;
    background: var(--bg-soft);
    color: var(--text);
    margin: 0;
}

/* ---------- shell com sidebar (área autenticada) ---------- */

.hive-shell { display: flex; min-height: 100vh; }

.hive-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.hive-brand {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.4rem 0.65rem 1rem;
    display: block;
}

.hive-brand-mark { color: #f0b429; }

.hive-nav { display: flex; flex-direction: column; gap: 2px; }

.hive-nav a {
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-weight: 500;
}

.hive-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.hive-nav a.active { background: var(--color-primary); color: #fff; }

.hive-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.75rem 0.65rem 0.25rem;
}

.hive-user {
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hive-logout { color: var(--sidebar-text); font-size: 0.85rem; text-decoration: none; }

.hive-logout:hover { color: #fff; }

.hive-content { flex: 1; padding: 1.75rem 2rem; max-width: 1100px; }

/* ---------- auth (login/register/recuperação) ---------- */

.hive-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--sidebar-bg) 0%, var(--color-primary-dark) 100%);
    padding: 1rem;
}

.hive-auth-card {
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 2rem 2.25rem;
    width: 100%;
    max-width: 420px;
}

.hive-auth-brand {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.25rem;
}

.hive-auth-card h1 { font-size: 1.1rem; color: var(--muted); text-align: center; margin-bottom: 1rem; }

.hive-auth-card form { max-width: none !important; }

/* ---------- conteúdo ---------- */

.hive-content h1 { font-size: 1.45rem; font-weight: 700; margin-bottom: 1rem; }

.hive-content h4 { font-size: 1.05rem; font-weight: 700; margin-top: 1.5rem; }

.hive-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.table { background: transparent; }

.table thead th {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

a { color: var(--color-primary); }

.badge-configured { background: #e7f5ec; color: #1c7c3d; }

.badge-pending { background: #fdf3e0; color: #a8681c; }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 113, 191, 0.25);
}
