/* ==========================================================
   ORQUESTRA LOUVORES DE SIÃO
   STYLE.CSS — TEMA ESCURO (VERSÃO FINAL)
   ========================================================== */

/* ==========================================================
   VARIÁVEIS BASE
   ========================================================== */
:root {
  --app-bg: #0f1115;
  --app-bg-soft: #151922;

  --app-text-main: rgba(255, 255, 255, 0.92);
  --app-text-secondary: rgba(255, 255, 255, 0.78);
  --app-text-instruction: rgba(255, 255, 255, 0.82);
  --app-text-muted: rgba(255, 255, 255, 0.60);
  --app-text-disabled: rgba(255, 255, 255, 0.45);

  --app-primary: #4da3ff;
  --app-border-soft: rgba(255, 255, 255, 0.08);
}

/* ==========================================================
   BASE GLOBAL
   ========================================================== */
body {
  background-color: var(--app-bg);
  color: var(--app-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* ==========================================================
   LINKS
   ========================================================== */
a {
  color: var(--app-primary);
  text-decoration: none;
}
a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================
   HIERARQUIA DE TEXTO
   ========================================================== */

/* Texto principal */
.text-main {
  color: var(--app-text-main) !important;
}

/* Texto secundário (contexto) */
.text-secondary-soft {
  color: var(--app-text-secondary) !important;
}

/* Texto de instrução (IMPORTANTE) */
.text-instruction,
.help-text,
.form-help {
  color: var(--app-text-instruction) !important;
}

/* Texto muted real (metadados) */
.text-muted,
.small.text-muted,
p.text-muted {
  color: var(--app-text-muted) !important;
}

/* Texto desabilitado */
.text-disabled,
.disabled,
[disabled] {
  color: var(--app-text-disabled) !important;
  pointer-events: none;
}

/* ==========================================================
   CARDS (GLASS)
   ========================================================== */
.card-glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--app-border-soft);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  color: var(--app-text-main);
}

.card-glass p,
.card-glass span,
.card-glass li {
  color: var(--app-text-main);
}

.card-glass .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* ==========================================================
   LISTAS (AGENDAS / INSTRUÇÕES)
   ========================================================== */
.list-group-item {
  background-color: transparent;
  border-color: var(--app-border-soft);
  color: var(--app-text-main);
}

.list-group-item .small {
  color: var(--app-text-secondary);
}

/* ==========================================================
   FORMULÁRIOS
   ========================================================== */
label {
  color: var(--app-text-secondary);
}

.form-control,
.form-select,
textarea {
  background-color: var(--app-bg-soft);
  color: var(--app-text-main);
  border: 1px solid var(--app-border-soft);
}

.form-control::placeholder {
  color: var(--app-text-muted);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  background-color: var(--app-bg-soft);
  color: var(--app-text-main);
  border-color: var(--app-primary);
  box-shadow: 0 0 0 0.15rem rgba(77, 163, 255, 0.25);
}

/* ==========================================================
   BOTÕES
   ========================================================== */
.btn {
  border-radius: 8px;
}

.btn-glow {
  background: linear-gradient(135deg, #4da3ff, #2d7fe3);
  color: #fff;
  border: none;
}
.btn-glow:hover {
  filter: brightness(1.1);
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.nav-blur {
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--app-border-soft);
}

/* ==========================================================
   BADGES
   ========================================================== */
.badge {
  font-weight: 500;
}

.badge.text-bg-warning {
  color: #000 !important;
}

/* ==========================================================
   TABELAS
   ========================================================== */
.table {
  color: var(--app-text-main);
}

.table th {
  color: var(--app-text-secondary);
}

.table td {
  color: var(--app-text-main);
}

/* ==========================================================
   AJUSTES FINAIS
   ========================================================== */

/* Evita texto muito apagado herdado do Bootstrap */
.small {
  color: var(--app-text-secondary);
}

/* Ícones */
.bi {
  vertical-align: -0.125em;
}