/* === FRESH DAWN v4.8 — CSS de Compliance Obrigatório === */
/* SAT-08 | Padronização UI — Todas as telas DEVEM linkar este arquivo */
/* Uso: <link rel="stylesheet" href="/02_Css/fresh-dawn-v48.css"> */

/* ── 1. RESET + VIEWPORT ── */
html, body {
    width: 100vw; min-height: 100vh; overflow: hidden;
    margin: 0; padding: 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.2 !important;
    background: radial-gradient(circle, #FDF2F0 0%, #EBF5EE 100%) fixed;
    color: #4A3B32;
    -webkit-font-smoothing: antialiased;
}

/* ── 2. TIPOGRAFIA ── */
h1, h2, h3, h4, h5, h6,
.font-playfair, .kpi-value, .section-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
h1, .kpi-value { font-size: 28px; }
h2, .section-title { font-size: 24px; }
h3 { font-size: 20px; }
label, .label-text { font-size: 12px; font-weight: 600; text-transform: uppercase; }
body, p, input, select, textarea, button, td, th, li, a, span, div:not(.kpi-value):not(.section-title) {
    font-size: 14px;
}
small, .text-small, .caption, .footnote { font-size: 12px; }

/* ── 3. CORES (Glassmorphism + Paleta) ── */
.glass-panel, .card, .panel {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(197, 160, 89, 0.2) !important;
    backdrop-filter: none !important; /* Proibido em produção */
}
.btn-action, .btn-primary, .btn-save, .btn-success, button[type="submit"] {
    background: #A8C5A0 !important;
    color: #FFFFFF !important;
    border-radius: 9999px !important;
    border: none;
    transition: all 0.2s ease-in-out;
}
.btn-action:hover, .btn-primary:hover, .btn-save:hover, .btn-success:hover, button[type="submit"]:hover {
    background: #8BAA80 !important;
}
.btn-alert, .btn-danger, .btn-cancel, .btn-logout {
    background: #E8A090 !important;
    color: #FFFFFF !important;
    border-radius: 9999px !important;
    border: none;
    transition: all 0.2s ease-in-out;
}
.btn-alert:hover, .btn-danger:hover, .btn-cancel:hover {
    background: #D48070 !important;
}
.input-pill, input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
select, textarea {
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(197, 160, 89, 0.2);
    color: #4A3B32;
    padding: 8px 16px;
    outline: none;
}
.input-pill:focus, input:focus, select:focus, textarea:focus {
    border-color: #A8C5A0 !important;
    box-shadow: 0 0 0 2px rgba(168, 197, 160, 0.3) !important;
}
.card-medium, .card, .kpi-card, .dashboard-card {
    border-radius: 24px !important;
}
.card-large, .modal-content, .container-card {
    border-radius: 32px !important;
}

/* ── 4. LAYOUT 3 BLOCOS (Sigma v1.2) ── */
.layout-sidebar { width: 256px; flex-shrink: 0; }
.layout-kpis { flex-shrink: 0; }
.layout-main { flex: 1; overflow-y: auto; }

/* ── 5. PROIBIÇÕES (Entropia Zero) ── */
[class*="backdrop-filter"], [class*="backdrop-blur"],
.glass-effect, .frosted-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.z-float, .floating, [style*="z-index"] {
    z-index: auto !important;
}

/* ── 6. COMPONENTES DE AGENDA (Score + Timing) ── */
.score-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 24px; padding: 0 8px;
    border-radius: 9999px; font-size: 12px; font-weight: 700;
}
.score-green  { background: #A8C5A0; color: #fff; }
.score-yellow { background: #D4C080; color: #4A3B32; }
.score-orange { background: #D4A080; color: #4A3B32; }
.score-red    { background: #E8A090; color: #fff; }

.timing-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; margin-right: 4px;
}
.timing-on-time { background: #A8C5A0; }
.timing-late-5  { background: #D4C080; }
.timing-late    { background: #E8A090; }

/* ── 7. AGENDA CARD ── */
.agenda-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 24px; padding: 12px; margin-bottom: 8px;
}
.agenda-card .card-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.agenda-card .card-cliente {
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 14px; color: #4A3B32;
}
.agenda-card .card-time { font-size: 12px; color: #8A7A70; }
.agenda-card .card-servico { font-size: 12px; color: #4A3B32; margin-bottom: 4px; }
.agenda-card .card-progresso { font-size: 11px; color: #8A7A70; margin-bottom: 4px; }
.agenda-card .checklist { font-size: 12px; margin-bottom: 6px; }
.agenda-card .checklist label { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; cursor: pointer; }
.agenda-card .card-footer { display: flex; justify-content: space-between; align-items: center; }

/* ── 8. TIMEGRID ── */
.timegrid-wrapper { overflow-x: auto; overflow-y: hidden; }
.timegrid { display: flex; min-width: 600px; }
.tg-horarios { flex-shrink: 0; width: 60px; }
.tg-hora-label { height: 56px; display: flex; align-items: flex-start; justify-content: center; font-size: 11px; color: #8A7A70; padding-top: 2px; }
.tg-corner { height: 40px; }
.tg-col { flex: 1; min-width: 180px; border-left: 1px solid rgba(197, 160, 89, 0.2); }
.tg-col-header { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-bottom: 1px solid rgba(197, 160, 89, 0.2); }
.tg-prof-avatar { width: 28px; height: 28px; border-radius: 50%; background: #A8C5A0; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.tg-prof-nome { font-size: 12px; font-weight: 600; color: #4A3B32; }
.tg-slots { position: relative; }
.tg-slot { height: 56px; border-bottom: 1px solid rgba(197, 160, 89, 0.1); }
.tg-card { position: absolute; left: 4px; right: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(197, 160, 89, 0.2); overflow: hidden; display: flex; }
.tg-card-borda { width: 4px; flex-shrink: 0; }
.tg-card-body { flex: 1; padding: 4px 6px; overflow: hidden; }
.tg-card-nome { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 12px; color: #4A3B32; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-card-servico { font-size: 10px; color: #4A3B32; }
.tg-card-hora { font-size: 10px; color: #8A7A70; }
.tg-card-score { position: absolute; top: 4px; right: 4px; min-width: 24px; height: 18px; font-size: 10px; }
