/**
 * Estilos personalizados de la aplicación (Micro SaaS QR)
 * 
 * Separados de AdminLTE y Bootstrap para facilitar mantenibilidad y futuras actualizaciones.
 */

:root {
  --saas-primary: #3b82f6;
  --saas-primary-hover: #2563eb;
  --saas-primary-light: #eff6ff;
  --saas-secondary: #64748b;
  --saas-success: #10b981;
  --saas-warning: #f59e0b;
  --saas-danger: #ef4444;
  --saas-dark: #0f172a;
  --saas-light: #f8fafc;
  --saas-card-border: #e2e8f0;
  --saas-sidebar-bg: #0f172a;
  --saas-sidebar-color: #94a3b8;
  --saas-sidebar-active: #3b82f6;
  --saas-font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --saas-radius: 0.5rem;
  --saas-radius-lg: 0.75rem;
  --saas-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --saas-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --saas-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  font-family: var(--saas-font-family);
  background-color: #f1f5f9;
  color: #334155;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   LAYOUT Y SIDEBAR ADMINLTE PERSONALIZADO
   ========================================================== */

.app-sidebar {
  background-color: var(--saas-sidebar-bg) !important;
  border-right: 1px solid #1e293b;
}

.app-sidebar .sidebar-brand {
  border-bottom: 1px solid #1e293b;
  padding: 1rem 1.25rem;
}

.app-sidebar .sidebar-brand .brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.app-sidebar .nav-link {
  color: var(--saas-sidebar-color);
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: var(--saas-radius);
  margin: 0.2rem 0.75rem;
  padding: 0.6rem 0.85rem;
  transition: all 0.2s ease-in-out;
}

.app-sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.app-sidebar .nav-link.active {
  background-color: var(--saas-sidebar-active) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.app-sidebar .nav-link .nav-icon {
  margin-right: 0.65rem;
  font-size: 1.1rem;
}

/* ==========================================================
   NAVBAR SUPERIOR
   ========================================================== */
.app-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--saas-card-border) !important;
  padding: 0.5rem 1.25rem;
}

/* ==========================================================
   CARDS Y CONTENEDORES
   ========================================================== */
.saas-card {
  background: #ffffff;
  border: 1px solid var(--saas-card-border);
  border-radius: var(--saas-radius-lg);
  box-shadow: var(--saas-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.saas-card:hover {
  box-shadow: var(--saas-shadow-md);
}

.saas-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--saas-card-border);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saas-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--saas-dark);
  margin: 0;
}

.saas-card-body {
  padding: 1.5rem;
}

/* ==========================================================
   BADGES Y ESTADOS
   ========================================================== */
.badge-status {
  padding: 0.35em 0.75em;
  font-size: 0.785rem;
  font-weight: 600;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-active {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-status-inactive {
  background-color: #f1f5f9;
  color: #475569;
}

.badge-status-warning {
  background-color: #fef3c7;
  color: #b45309;
}

/* ==========================================================
   BOTONES
   ========================================================== */
.btn-saas-primary {
  background-color: var(--saas-primary);
  border-color: var(--saas-primary);
  color: #ffffff;
  font-weight: 500;
  border-radius: var(--saas-radius);
  padding: 0.55rem 1.15rem;
  transition: all 0.15s ease-in-out;
}

.btn-saas-primary:hover, .btn-saas-primary:focus {
  background-color: var(--saas-primary-hover);
  border-color: var(--saas-primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-saas-outline {
  background-color: transparent;
  border: 1px solid var(--saas-card-border);
  color: #475569;
  font-weight: 500;
  border-radius: var(--saas-radius);
  padding: 0.55rem 1.15rem;
  transition: all 0.15s ease-in-out;
}

.btn-saas-outline:hover {
  background-color: #f8fafc;
  color: var(--saas-dark);
  border-color: #cbd5e1;
}

/* ==========================================================
   HERO / HOME LANDING BASE
   ========================================================== */
.hero-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
}

.hero-box {
  max-width: 780px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.app-footer {
  background: #ffffff;
  border-top: 1px solid var(--saas-card-border);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
}
