/*
  ASOCADINA — Brand Design System
  Colores, tipografía y componentes base tomados de asocadina.online
  Incluir en todas las páginas del panel:
    <link rel="stylesheet" href="/css/brand.css">
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
  --brand-blue   : #071233;   /* navy oscuro — header, sidebar, texto */
  --brand-navy   : #0d1e3d;   /* sidebar ligeramente más claro */
  --action-red   : #c11b1b;   /* rojo acción — hover, acentos */
  --action-grad  : linear-gradient(90deg, #071233 70%, #f90000 100%);
  --muted        : #6b7280;
  --bg-body      : #f6f8fa;
  --bg-card      : #ffffff;
  --card-radius  : 14px;
  --card-shadow  : 0 2px 12px rgba(7,18,51,.10);
  --glass        : rgba(255,255,255,0.18);
  --transition   : .2s ease;
}

/* ── Reset & base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--bg-body) !important;
  color: #111;
}

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  background-color: var(--brand-blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(7,18,51,.25);
}

.navbar-title,
.navbar h1,
.navbar .brand,
.navbar-brand {
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.navbar-title img,
.navbar-brand img,
.navbar img {
  height: 36px;
}

/* Nav links / buttons inside navbar */
.navbar-buttons button,
.nav-links a,
.nav-links select,
.navbar .nav-link {
  background-color: rgba(255,255,255,.12) !important;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}

.navbar-buttons button:hover,
.nav-links a:hover,
.nav-links select:hover,
.navbar .nav-link:hover {
  background-color: var(--action-red) !important;
}

/* ── Sidebar ─────────────────────────────────────── */
.sidebar {
  background-color: var(--brand-navy) !important;
  color: #fff !important;
}

.sidebar .nav-link,
.sidebar a {
  color: rgba(255,255,255,.80) !important;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 12px;
  transition: background var(--transition), color var(--transition);
}

.sidebar .nav-link:hover,
.sidebar a:hover,
.sidebar .nav-link.active {
  background-color: var(--action-red) !important;
  color: #fff !important;
}

/* ── Cards ───────────────────────────────────────── */
.card,
.info-box,
.grid-box,
.status-box,
.form-container,
.panel {
  background: var(--bg-card) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary,
.btn-brand,
button[type="submit"],
.panel-content button:not(.panel-content li button) {
  background: var(--brand-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 9px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-primary:hover,
.btn-brand:hover,
button[type="submit"]:hover {
  background: var(--action-red) !important;
}

/* CTA gradient button (matching login button on asocadina.online) */
.btn-cta {
  background: var(--action-grad) !important;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.btn-cta:hover { opacity: .90; }

/* Bootstrap override — primary color */
.btn-primary { background-color: var(--brand-blue) !important; border-color: var(--brand-blue) !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--action-red) !important; border-color: var(--action-red) !important; }

/* ── Panel header (consola monitorista) ──────────── */
.panel-header {
  background: var(--brand-blue) !important;
  color: #fff !important;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

/* ── Form inputs ─────────────────────────────────── */
input, select, textarea {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(7,18,51,.15);
}

/* ── Tables ──────────────────────────────────────── */
table { border-collapse: collapse; width: 100%; }
th {
  background-color: var(--brand-blue) !important;
  color: #fff !important;
  padding: 10px 12px;
}
td { padding: 9px 12px; border-bottom: 1px solid #e5e7eb; }
tr:hover td { background-color: rgba(7,18,51,.04); }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: #fff;
  color: var(--brand-blue);
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
}

/* ── Logo helper ─────────────────────────────────── */
.brand-logo {
  height: 40px;
  vertical-align: middle;
}
