/**
 * CondoRoute Design System
 * Tailored for horizontal condominiums, mobile residents and 32" gate monitors
 */

:root {
    --cr-primary: #1e3a8a;
    --cr-primary-hover: #172554;
    --cr-accent: #0284c7;
    --cr-accent-light: #e0f2fe;
    --cr-bg: #f8fafc;
    --cr-card-bg: #ffffff;
    --cr-text: #0f172a;
    --cr-muted: #64748b;
    --cr-border: #e2e8f0;
    --cr-success: #15803d;
    --cr-success-bg: #dcfce7;
    --cr-warning: #b45309;
    --cr-warning-bg: #fef3c7;
    --cr-danger: #b91c1c;
    --cr-danger-bg: #fee2e2;
    --cr-radius: 12px;
}

body {
    background-color: var(--cr-bg);
    color: var(--cr-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Navbar */
.navbar-condo {
    background-color: #0f172a;
    border-bottom: 2px solid var(--cr-accent);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.condo-code-badge {
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-family: monospace;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Cards & Containers */
.card-condo {
    background: var(--cr-card-bg);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-condo:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Status Badges */
.badge-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-AUTORIZADA_PELO_MORADOR { background-color: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.status-AUTORIZADA_PARA_ENTRADA { background-color: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; font-weight: 700; }
.status-ENTRADA_REGISTRADA { background-color: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.status-EM_PERMANENCIA { background-color: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.status-SAIDA_REGISTRADA { background-color: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.status-AGUARDANDO_PORTARIA { background-color: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.status-AGUARDANDO_CONFIRMACAO_MORADOR { background-color: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.status-CANCELADA, .status-RECUSADA, .status-EXPIRADA { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Gate Console (32" monitor ergonomics) */
.gate-console {
    background: #0b1120;
    color: #f8fafc;
    min-height: 100vh;
}

.gate-console .card-panel {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
}

.gate-console .table {
    color: #f1f5f9;
}

.gate-console .table thead th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom: 2px solid #334155;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gate-console .table tbody tr:hover {
    background-color: #334155;
}

.search-gate-input {
    font-size: 1.25rem;
    padding: 0.85rem 1.2rem;
    background: #0f172a;
    border: 2px solid #38bdf8;
    color: #ffffff;
    border-radius: 10px;
}

.search-gate-input:focus {
    background: #1e293b;
    border-color: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.btn-gate-lg {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
}

/* 32" Fullscreen Visitor Display */
.display32-container {
    background: linear-gradient(135deg, #090d16 0%, #111827 100%);
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
}

.qr-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.destination-highlight {
    background: #1e293b;
    border-left: 6px solid #38bdf8;
    padding: 1.5rem 2rem;
    border-radius: 0 16px 16px 0;
}

/* Mobile Visitor Navigation */
.nav-visitor-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cr-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
