/* Módulo de teste Salas por Hora: estilos comuns das duas páginas. */
:root {
  --sh-pri: #0284c7; /* azul clínico */
  --sh-pri-esc: #0369a1;
  --sh-pri-2: #38bdf8;
  --sh-suave: #e0f2fe;
  --sh-claro: #bae6fd;
  --sh-fundo: #f3f9fd;
  --sh-texto: #0f2a3d;
}
body { background-color: var(--sh-fundo); font-family: "Inter", sans-serif; color: var(--sh-texto); }
.topo-salas { background: linear-gradient(120deg, #e0f2fe 0%, #f0f9ff 55%, #ecfeff 100%); border: 1px solid #d6eefb; border-radius: 20px; padding: 22px 24px; position: relative; overflow: hidden; }
.topo-salas::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%); }
.topo-salas .icone-topo { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--sh-pri); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 6px 16px rgba(2, 132, 199, 0.15); }
.btn-primary { --bs-btn-bg: var(--sh-pri); --bs-btn-border-color: var(--sh-pri); --bs-btn-hover-bg: var(--sh-pri-esc); --bs-btn-hover-border-color: var(--sh-pri-esc); --bs-btn-active-bg: var(--sh-pri-esc); --bs-btn-disabled-bg: #7dd3fc; --bs-btn-disabled-border-color: #7dd3fc; border-radius: 10px; font-weight: 600; }
.btn-outline-primary { --bs-btn-color: var(--sh-pri); --bs-btn-border-color: #7dd3fc; --bs-btn-hover-bg: var(--sh-pri); --bs-btn-hover-border-color: var(--sh-pri); border-radius: 10px; }
.form-control, .form-select { border-radius: 10px; border-color: #d6e6f2; }
.form-control:focus, .form-select:focus { border-color: #7dd3fc; box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2); }
.form-check-input:checked { background-color: var(--sh-pri); border-color: var(--sh-pri); }
.badge.bg-primary { background-color: var(--sh-pri) !important; }
.card { border: 1px solid #e6f1f8; border-radius: 18px; box-shadow: 0 6px 20px rgba(2, 132, 199, 0.06); background: #fff; }
.text-primary { color: var(--sh-pri) !important; }
.abas-salas { border-bottom: 1px solid #e2e8f0; gap: 4px; }
.abas-salas .nav-link { color: #64748b; font-weight: 600; border: none; border-bottom: 3px solid transparent; border-radius: 0; padding: 10px 16px; }
.abas-salas .nav-link.active { color: var(--sh-pri); border-bottom-color: var(--sh-pri); background: none; }
.abas-salas .contagem { font-size: 0.72rem; background: var(--sh-suave); color: var(--sh-pri); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.filtros .form-label { font-size: 0.72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }

/* Cards estilo marketplace */
.card-sala { cursor: pointer; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; height: 100%; }
.card-sala:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(2, 132, 199, 0.14); border-color: #bae6fd; }
.foto { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.9); font-size: 3rem; }
.foto .selo-foto { position: absolute; top: 10px; left: 10px; }
.foto .nota-foto { position: absolute; top: 10px; right: 10px; background: #fff; color: #1e293b; border-radius: 8px; padding: 2px 8px; font-size: 0.8rem; font-weight: 700; }
.foto .legenda-foto { position: absolute; bottom: 6px; right: 10px; font-size: 0.62rem; opacity: 0.75; }
.selo { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.selo-auto { background: rgba(255, 255, 255, 0.95); color: var(--sh-pri); }
.selo-livre { background: #dcfce7; color: #15803d; }
.selo-ocupada { background: #f1f5f9; color: #64748b; }
.selo-pendente { background: #fef3c7; color: #b45309; }
.selo-confirmada { background: #dcfce7; color: #15803d; }
.selo-cancelada { background: #fee2e2; color: #b91c1c; }
.selo-concluida { background: var(--sh-suave); color: var(--sh-pri); }
.chip { display: inline-block; font-size: 0.72rem; background: #f1f5f9; color: #475569; border-radius: 6px; padding: 2px 7px; margin: 0 4px 4px 0; }
.preco { font-size: 1.15rem; font-weight: 800; color: var(--sh-pri); }
.estrelas { color: #f59e0b; letter-spacing: 1px; }
.sub { font-size: 0.8rem; color: #64748b; }

/* Painéis laterais */
.offcanvas.largo { --bs-offcanvas-width: min(760px, 100vw); }
.offcanvas.medio { --bs-offcanvas-width: min(440px, 100vw); }
.pilulas .nav-link { font-weight: 600; color: #64748b; border-radius: 999px; padding: 6px 14px; }
.pilulas .nav-link.active { background: var(--sh-pri); color: #fff; }

/* Grade semanal 30 min */
.grade { display: grid; grid-template-columns: 52px repeat(7, 1fr); gap: 2px; font-size: 0.7rem; user-select: none; }
.grade .cab { text-align: center; font-weight: 700; color: #475569; padding: 4px 0; position: sticky; top: 0; background: #fff; z-index: 1; }
.grade .canto { position: sticky; top: 0; background: #fff; z-index: 2; }
.grade .hora { text-align: right; padding-right: 6px; color: #94a3b8; line-height: 20px; }
.grade .b { height: 20px; border-radius: 5px; background: #ecfdf5; border: 1px solid #d1fae5; cursor: pointer; }
.grade .b:hover { background: #bae6fd; border-color: #7dd3fc; }
.grade .b.reservado { background: #e2e8f0; cursor: not-allowed; }
.grade .b.bloqueado { background: repeating-linear-gradient(45deg, #fee2e2, #fee2e2 4px, #fecaca 4px, #fecaca 8px); cursor: not-allowed; }
.grade .b.minha { background: var(--sh-claro); cursor: not-allowed; }
.grade .b.passado, .grade .b.fechado { background: #f8fafc; cursor: not-allowed; }
.grade .b.sel { background: var(--sh-pri); }
.rolagem-grade { max-height: 380px; overflow: auto; border: 1px solid #f1f5f9; border-radius: 10px; padding: 6px; }
.legenda-grade span { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; font-size: 0.72rem; color: #64748b; }
.legenda-grade i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.opcao-preco { border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 12px; display: flex; justify-content: space-between; font-size: 0.85rem; }
.opcao-preco.melhor { border-color: var(--sh-pri); background: var(--sh-suave); font-weight: 700; }

/* Chat */
.chat { height: 320px; overflow: auto; background: #f8fafc; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 80%; padding: 7px 11px; border-radius: 12px; font-size: 0.86rem; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); white-space: pre-wrap; }
.msg.minha { align-self: flex-end; background: var(--sh-pri); color: #fff; }
.msg .quando { display: block; font-size: 0.65rem; opacity: 0.6; margin-top: 2px; }
.msg.bloq { border: 1px dashed #f59e0b; }

/* Assistente */
.ia-corpo { display: flex; flex-direction: column; gap: 10px; }
.ia-msg { padding: 9px 12px; border-radius: 12px; font-size: 0.88rem; }
.ia-msg.eu { align-self: flex-end; background: var(--sh-pri); color: #fff; max-width: 85%; }
.ia-msg.ela { background: #f1f5f9; }
.mini-sala { border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; }
.mini-sala:hover { border-color: var(--sh-pri); }
.sugestao-ia { font-size: 0.8rem; }

/* Minhas reservas */
.credencial { background: linear-gradient(135deg, #0369a1, #0ea5e9 60%, #38bdf8); color: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 10px 24px rgba(2, 132, 199, 0.25); }
.credencial .pin { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: 6px; }
.credencial .qr-box { background: #fff; padding: 6px; border-radius: 8px; display: inline-block; }
.credencial.inativa { background: linear-gradient(135deg, #64748b, #94a3b8); }
.btn-porta { font-weight: 700; font-size: 1rem; padding: 10px 18px; }
.disp { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 6px 10px; }

/* Proprietário */
.kpi { padding: 14px 16px; }
.kpi .valor { font-size: 1.5rem; font-weight: 800; }
.kpi .rotulo { font-size: 0.72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.4px; }
.barra { height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; min-width: 70px; }
.barra > div { height: 6px; background: var(--sh-pri); }
.tabela-ponto td, .tabela-ponto th { vertical-align: middle; }
.btn-icone { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.vazio { text-align: center; color: #94a3b8; padding: 30px 10px; }

/* Gráfico de faturamento do dashboard do proprietário */
.grafico { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 8px; }
.coluna-dia { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.barra-dia { width: 100%; background: linear-gradient(180deg, var(--sh-pri-2), var(--sh-pri)); border-radius: 4px 4px 0 0; }
.barra-dia.vazia { background: #e2e8f0; }
.coluna-dia span { font-size: 0.6rem; color: #94a3b8; height: 14px; white-space: nowrap; }
