/* assets/css/timelog.css */

/* ===============================
   THEME / BASE
================================ */
:root{
  --tl-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

  /* ✅ ajuste aqui se quiser mais/menos */
  --tl-font-size: 13px;        /* base do site inteiro (igual ao tl-mini que você gostou) */
  --tl-line-height: 1.35;

  --tl-bg: #f6f8fb;
  --tl-text: #0f172a;
  --tl-muted: #6c757d;

  --tl-card: #ffffff;
  --tl-border: rgba(15, 23, 42, .08);

  --tl-radius: 16px;
  --tl-radius-sm: 12px;

  --tl-shadow: 0 18px 40px rgba(0,0,0,.08);
  --tl-shadow-sm: 0 12px 30px rgba(0,0,0,.08);

  --tl-primary: #0d6efd;
  --tl-success: #20c997;
  --tl-danger: #fa5252;
  --tl-warning: #fd7e14;
  --tl-info: #0dcaf0;

  --tl-focus: rgba(13,110,253,.25);
}

/* ===============================
   ✅ GLOBAL FONT + SIZE (site inteiro)
================================ */
html, body{
  font-family: var(--tl-font) !important;
  font-size: var(--tl-font-size) !important;
  line-height: var(--tl-line-height) !important;
  background: var(--tl-bg);
  color: var(--tl-text);
}

/* garante herança em tudo que o Bootstrap às vezes muda */
body *{
  font-family: inherit;
}

/* tipografia padrão dentro do container principal */
#main-content{
  padding: 18px 16px;
  font-size: var(--tl-font-size) !important;
  line-height: var(--tl-line-height) !important;
}

/* inputs/buttons/tables também herdam */
button, input, select, textarea{
  font-family: inherit !important;
  font-size: 1em !important;
  line-height: inherit !important;
}

/* tabelas */
table, .table{
  font-size: 1em !important;
  line-height: inherit !important;
}

/* ===============================
   COMPONENTES PADRÃO (layout elegante)
================================ */
.tl-wrap,
.fechamento-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
}

.tl-card,
.card-soft{
  border: none !important;
  border-radius: var(--tl-radius) !important;
  box-shadow: var(--tl-shadow) !important;
  background: var(--tl-card) !important;
}

.tl-badge,
.badge-status{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
}

/* ✅ “mini” vira texto secundário (mesma fonte/tamanho do site, só cor) */
.tl-mini,
.mini,
.text-muted,
.form-text,
small.text-muted{
  font-size: 1em !important;
  color: var(--tl-muted) !important;
}

/* header padrão */
.tl-page-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom: 14px;
}
.tl-page-title{
  font-weight: 700;
  margin: 0;
  /* mantém título maior que o texto */
  font-size: 18px;
}
.tl-page-subtitle{
  margin-top: 4px;
}

/* kpi */
.tl-kpi{
  display:flex;
  flex-direction:column;
  gap: 4px;
}
.tl-kpi .tl-kpi-label{
  color: var(--tl-muted);
}
.tl-kpi .tl-kpi-value{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
}

/* separador */
.tl-divider{
  border-top: 1px solid rgba(15,23,42,.08);
  margin: 12px 0;
}

/* ===============================
   Bootstrap: ajustes suaves
================================ */
.card{
  border-radius: var(--tl-radius) !important;
}

.btn{
  border-radius: 12px !important;
  font-weight: 600;
  letter-spacing: .2px;
  padding: .55rem .85rem;
}

/* ✅ CORREÇÃO: botões pequenos com texto menor */
.btn-sm{
  font-size: 0.85em !important;       /* antes: 1em */
  padding: .30rem .55rem !important;  /* antes: .35rem .6rem */
  line-height: 1.2 !important;
}

/* ✅ opcional: botões dentro de tabela ainda mais “compactos” */
.table .btn,
.table-responsive .btn{
  font-size: 0.85em !important;
}

.btn:focus{
  box-shadow: 0 0 0 .2rem var(--tl-focus) !important;
}

.form-control,
.form-select{
  border-radius: 12px !important;
  border: 1px solid var(--tl-border) !important;
  padding: 10px 12px;
}

.form-control:focus,
.form-select:focus{
  border-color: rgba(13,110,253,.35) !important;
  box-shadow: 0 0 0 .2rem var(--tl-focus) !important;
}

.form-label{
  font-weight: 600;
}

/* tabelas */
.table thead th{
  background: rgba(15,23,42,.03);
  border-bottom: 1px solid var(--tl-border) !important;
  font-weight: 700;
}

/* modais */
.modal-content{
  border-radius: var(--tl-radius) !important;
}

/* ===============================
   SCROLLBAR (opcional)
================================ */
*{
  scrollbar-width: thin;
  scrollbar-color: rgba(100,116,139,.45) transparent;
}
*::-webkit-scrollbar{ width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb{ background: rgba(100,116,139,.35); border-radius: 999px; }
*::-webkit-scrollbar-track{ background: transparent; }


/* Tela de autenticação (login/recuperação) */
body.timelog-auth{
  min-height: 100vh;
  background: linear-gradient(135deg, #1f2933, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card padrão */
.timelog-card{
  max-width: 380px;
  width: 100%;
  border-radius: 14px;
  padding: 28px;
}