/* FireOps — Estilos adicionales compartidos */

/* ── Fuente base ──────────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
}

/* ── Iconos Material ──────────────────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
}

/* ── Layout principal con sidebar fijo ───────────────────────────── */
#app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-main {
  margin-left: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

@media (min-width: 1024px) {
  .page-main {
    margin-left: 280px;
  }
}

/* ── Scrollbar personalizado ─────────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #e2e2e2; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #8f6f6c; }

/* ── Pulse status ────────────────────────────────────────────────── */
.status-pulse {
  position: relative;
  display: inline-block;
}
.status-pulse::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
  opacity: 0.4;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ── Bento grid ──────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* ── Animaciones de entrada ──────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cards con hover ─────────────────────────────────────────────── */
.card-hover {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-hover:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* ── Status chips ────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chip-green  { background: #dcfce7; color: #166534; }
.chip-red    { background: #fee2e2; color: #991b1b; }
.chip-yellow { background: #fef9c3; color: #854d0e; }
.chip-blue   { background: #dbeafe; color: #1e40af; }
.chip-orange { background: #ffedd5; color: #9a3412; }
.chip-gray   { background: #f3f4f6; color: #374151; }

/* ── Tabla de datos ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
  background: #f3f3f3;
  color: #5b403d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid #e4beba;
}
.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #1a1c1c;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
}
.data-table tbody tr:hover td {
  background: #f9f0f0;
}

/* ── Formularios ─────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e2e2;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1a1c1c;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #af101a;
  box-shadow: 0 0 0 3px rgba(175,16,26,0.1);
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5b403d;
  margin-bottom: 6px;
}

/* ── Botones ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #af101a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover  { background: #d32f2f; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #546067;
  border: 1.5px solid #e2e2e2;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: #f3f3f3; border-color: #8f6f6c; }

/* ── Alerta banner ───────────────────────────────────────────────── */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.alert-banner.critical { background: #fee2e2; color: #991b1b; border-left: 4px solid #af101a; }
.alert-banner.warning  { background: #fff7ed; color: #9a3412; border-left: 4px solid #a46000; }
.alert-banner.info     { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ── Loading skeleton ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #e2e2e2 25%, #eeeeee 50%, #e2e2e2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Mobile nav bottom ────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e4beba;
  display: flex;
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.mobile-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: #8f6f6c;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  gap: 2px;
}
.mobile-nav a.active,
.mobile-nav a:hover { color: #af101a; }
.mobile-nav a .material-symbols-outlined { font-size: 22px; }
