/* ============================================================
   PUSH NOTIFICATION MODULE — PREMIUM STYLESHEET
   ============================================================
   Complete design system with dark mode base, glassmorphism,
   vibrant gradients, micro-animations, and responsive layout.
   Built for Autoagendas push notification frontend.
   ============================================================ */

/* ============================================================
   CSS RESET & BASE CONFIGURATION
   Normalizes browser defaults and sets up box-sizing model
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   CUSTOM PROPERTIES (DESIGN TOKENS)
   Central color palette, spacing, and effect variables
   ============================================================ */
:root {
  /* PRIMARY COLORS — Violet-based brand palette */
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --primary-rgb: 124, 58, 237;

  /* SECONDARY COLORS — Cyan accent for contrast */
  --secondary: #06b6d4;
  --secondary-light: #22d3ee;
  --secondary-dark: #0891b2;
  --secondary-rgb: 6, 182, 212;

  /* ACCENT COLORS — Amber for highlights and CTAs */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --accent-rgb: 245, 158, 11;

  /* BACKGROUND COLORS — Deep dark with transparency layers */
  --bg-dark: #0f0f23;
  --bg-darker: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.08);
  --bg-glass-hover: rgba(255, 255, 255, 0.12);
  --bg-glass-active: rgba(255, 255, 255, 0.15);
  --bg-input: rgba(255, 255, 255, 0.06);

  /* TEXT COLORS — Hierarchical text readability */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #a78bfa;

  /* STATUS COLORS — Semantic feedback colors */
  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --error: #ef4444;
  --error-rgb: 239, 68, 68;
  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;
  --info: #3b82f6;
  --info-rgb: 59, 130, 246;

  /* GRADIENT DEFINITIONS — Brand gradients for surfaces */
  --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient-accent: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
  --gradient-dark: linear-gradient(135deg, #1e1b4b, #0f172a);
  --gradient-hero: linear-gradient(160deg, #0f0f23 0%, #1e1b4b 40%, #0f172a 100%);
  --gradient-sidebar: linear-gradient(180deg, #1e1b4b 0%, #0f0f23 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15), transparent 70%);

  /* BORDER & SURFACE — Subtle glass borders */
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(255, 255, 255, 0.2);
  --border-primary: rgba(124, 58, 237, 0.3);

  /* SHADOWS — Layered depth system */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(124, 58, 237, 0.4);

  /* BLUR & EFFECTS — Glassmorphism backdrop values */
  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(24px);

  /* SPACING — Consistent spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* RADIUS — Rounded corner scale */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* TYPOGRAPHY — Font stack and sizing */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;

  /* TRANSITIONS — Smooth animation presets */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-INDEX SCALE — Layering system */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* ADMIN SIDEBAR — Layout dimensions */
  --sidebar-width: 280px;
  --sidebar-collapsed: 70px;
  --topbar-height: 64px;
}

/* ============================================================
   GLOBAL BODY & HTML STYLES
   Sets dark background, font stack, and smooth scrolling
   ============================================================ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   BACKGROUND AMBIENT GLOW EFFECT
   Decorative gradient orbs that float behind the page content
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientFloat 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientFloat 25s ease-in-out infinite reverse;
}

/* Floating animation for ambient orbs */
@keyframes ambientFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ============================================================
   TYPOGRAPHY — HEADINGS
   Gradient-enhanced headings for premium look
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* Gradient text effect for hero headings */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accent gradient text */
.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   SCROLLBAR CUSTOMIZATION
   Slim, dark scrollbar that matches the theme
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* ============================================================
   SELECTION HIGHLIGHT
   Purple-tinted selection for brand consistency
   ============================================================ */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
}

/* ============================================================
   LINK STYLES
   Default link styling with gradient hover effect
   ============================================================ */
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-light);
}

/* ============================================================
   GLASSMORPHISM CARD COMPONENT
   Semi-transparent cards with backdrop blur and border glow
   ============================================================ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Subtle glow on hover */
.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Decorative gradient strip on top of cards */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Card variant with always-visible gradient top strip */
.glass-card-accent {
  composes: glass-card;
}
.glass-card-accent::before {
  opacity: 1;
}

/* ============================================================
   METRIC CARD COMPONENT
   Dashboard metric cards with icon, value, and label
   ============================================================ */
.metric-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-lg);
  border-color: var(--border-glass-hover);
}

/* Colored top gradient strip per card type */
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.metric-card.metric-sent::before {
  background: var(--gradient-primary);
}

.metric-card.metric-delivered::before {
  background: var(--gradient-success);
}

.metric-card.metric-read::before {
  background: linear-gradient(135deg, var(--info), var(--secondary));
}

.metric-card.metric-error::before {
  background: var(--gradient-accent);
}

/* Metric icon container */
.metric-card .metric-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  position: relative;
}

.metric-card .metric-icon.icon-sent {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary-light);
}

.metric-card .metric-icon.icon-delivered {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.metric-card .metric-icon.icon-read {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.metric-card .metric-icon.icon-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

/* Metric value display — large number */
.metric-card .metric-value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-xs);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Metric label — description text */
.metric-card .metric-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Metric change indicator — trend percentage */
.metric-card .metric-change {
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-top: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.metric-change.positive {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.metric-change.negative {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

/* ============================================================
   BUTTON SYSTEM
   Gradient buttons with glow hover, outlined variants
   ============================================================ */

/* Base button reset and shared styles */
.btn-push {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.5rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.5;
}

.btn-push:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* PRIMARY — Gradient button with glow */
.btn-push-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-push-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
}

.btn-push-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

/* Shimmer effect on primary button */
.btn-push-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-push-primary:hover::after {
  left: 100%;
}

/* SECONDARY — Outlined glass button */
.btn-push-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-sm);
}

.btn-push-secondary:hover:not(:disabled) {
  background: var(--bg-glass-hover);
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: translateY(-1px);
}

/* SUCCESS — Green gradient button */
.btn-push-success {
  background: var(--gradient-success);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-push-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

/* DANGER — Red accent gradient button */
.btn-push-danger {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-push-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

/* GHOST — Transparent button for subtle actions */
.btn-push-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-push-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

/* SIZE VARIANTS */
.btn-push-sm {
  padding: 0.375rem 0.875rem;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
}

.btn-push-lg {
  padding: 0.875rem 2rem;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

.btn-push-xl {
  padding: 1rem 2.5rem;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

/* Icon-only button */
.btn-push-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-push-icon.btn-push-sm {
  width: 32px;
  height: 32px;
}

/* ============================================================
   FORM INPUT SYSTEM
   Dark inputs with glow focus, labels, and validation
   ============================================================ */
.form-group-push {
  margin-bottom: var(--space-lg);
}

.form-label-push {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

/* Standard text input with glow on focus */
.form-input-push {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-base);
}

.form-input-push::placeholder {
  color: var(--text-muted);
}

/* Focus glow effect on inputs */
.form-input-push:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), 0 0 20px rgba(124, 58, 237, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

/* Textarea variant */
textarea.form-input-push {
  min-height: 100px;
  resize: vertical;
}

/* Select dropdown styling */
select.form-input-push {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2394a3b8'%3e%3cpath d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

/* File input styling */
.form-file-push {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.form-file-push:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

/* Validation states */
.form-input-push.is-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-input-push.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--error);
  margin-top: var(--space-xs);
}

/* Toggle switch — custom checkbox */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-glass-hover);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-base);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-spring);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary-light);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: white;
}

/* ============================================================
   NOTIFICATION BELL COMPONENT
   Animated bell icon with pulsing badge counter
   ============================================================ */
.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-secondary);
  font-size: 1.25rem;
}

.notification-bell:hover {
  background: var(--bg-glass-hover);
  color: var(--primary-light);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Bell ring animation trigger */
.notification-bell.ringing .bi-bell-fill {
  animation: bellRing 0.6s ease-in-out;
}

@keyframes bellRing {
  0% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
  90% { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}

/* BADGE COUNTER — Red circle with count number */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--error);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
  transform-origin: center;
}

/* Hide badge when count is zero */
.notification-badge.hidden {
  display: none;
}

/* Pulse animation for the badge — draws attention */
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.15); box-shadow: 0 2px 16px rgba(239, 68, 68, 0.7); }
}

/* Pop-in animation when badge count updates */
.notification-badge.badge-pop {
  animation: badgePop 0.4s var(--transition-spring);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ============================================================
   TABLE STYLES
   Dark-themed tables for history and device lists
   ============================================================ */
.table-push {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-push thead th {
  padding: 0.875rem 1rem;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
}

.table-push thead th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.table-push thead th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.table-push tbody td {
  padding: 0.875rem 1rem;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background var(--transition-fast);
  vertical-align: middle;
}

/* Row hover effect */
.table-push tbody tr:hover td {
  background: var(--bg-glass);
  color: var(--text-primary);
}

/* Last row no bottom border */
.table-push tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   STATUS BADGE COMPONENTS
   Colored pills for notification delivery status
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  white-space: nowrap;
}

/* Dot indicator inside status badge */
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge.status-enviado {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary-light);
}
.status-badge.status-enviado::before {
  background: var(--primary-light);
}

.status-badge.status-entregado {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.status-badge.status-entregado::before {
  background: var(--success);
}

.status-badge.status-leido {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}
.status-badge.status-leido::before {
  background: var(--info);
}

.status-badge.status-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}
.status-badge.status-error::before {
  background: var(--error);
}

.status-badge.status-programado {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.status-badge.status-programado::before {
  background: var(--warning);
}

/* ============================================================
   MODAL STYLES
   Glassmorphism modals with backdrop blur
   ============================================================ */
.modal-push-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-push-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-push {
  background: var(--bg-darker);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-spring);
  position: relative;
}

.modal-push-backdrop.active .modal-push {
  transform: scale(1) translateY(0);
}

.modal-push-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.modal-push-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.modal-push-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.modal-push-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================================
   ADMIN SIDEBAR NAVIGATION
   Fixed sidebar with gradient background and nav links
   ============================================================ */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--gradient-sidebar);
  border-right: 1px solid var(--border-glass);
  z-index: var(--z-sticky);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-slow);
  overflow: hidden;
}

/* Logo area at top of sidebar */
.sidebar-logo {
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-bottom: 1px solid var(--border-glass);
  min-height: var(--topbar-height);
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.sidebar-logo-sub {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  display: block;
}

/* Navigation links */
.sidebar-nav {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: 2px;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}

.sidebar-nav-item i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav-item:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

/* Active nav item — highlighted with gradient accent */
.sidebar-nav-item.active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary-light);
  border-color: rgba(124, 58, 237, 0.2);
}

.sidebar-nav-item.active i {
  color: var(--primary-light);
}

/* Section label in sidebar */
.sidebar-section-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: var(--space-lg) var(--space-md) var(--space-sm);
}

/* Sidebar footer */
.sidebar-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-glass);
}

/* ============================================================
   ADMIN TOP BAR
   Fixed top bar beside sidebar with search and notifications
   ============================================================ */
.admin-topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  z-index: var(--z-sticky);
  transition: left var(--transition-slow);
}

.topbar-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ============================================================
   ADMIN MAIN CONTENT AREA
   Offset from sidebar and topbar
   ============================================================ */
.admin-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  padding: var(--space-2xl);
  min-height: calc(100vh - var(--topbar-height));
  transition: margin-left var(--transition-slow);
  position: relative;
  z-index: var(--z-base);
}

/* Admin view sections — only one visible at a time */
.admin-view {
  display: none;
  animation: viewFadeIn 0.4s ease-out;
}

.admin-view.active {
  display: block;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CHART CONTAINER
   Glassmorphic card wrapper for Chart.js canvases
   ============================================================ */
.chart-container {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  height: 320px;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* ============================================================
   TOAST NOTIFICATION SYSTEM
   Slide-in notifications from the top-right corner
   ============================================================ */
.toast-container {
  position: fixed;
  top: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
  max-width: 400px;
  width: 100%;
}

.toast-push {
  background: var(--bg-darker);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition-spring);
  pointer-events: auto;
  min-width: 300px;
}

/* Slide in when visible */
.toast-push.visible {
  transform: translateX(0);
}

/* Toast type indicators */
.toast-push.toast-success {
  border-left: 3px solid var(--success);
}

.toast-push.toast-error {
  border-left: 3px solid var(--error);
}

.toast-push.toast-warning {
  border-left: 3px solid var(--warning);
}

.toast-push.toast-info {
  border-left: 3px solid var(--info);
}

/* Toast icon */
.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

/* Toast content */
.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Toast close button */
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 1rem;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ============================================================
   NOTIFICATION HISTORY SIDEBAR PANEL
   Slides in from the right with notification list
   ============================================================ */
.history-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-darker);
  border-left: 1px solid var(--border-glass);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
}

.history-panel.open {
  transform: translateX(0);
}

.history-panel-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

/* Individual notification item in the panel */
.history-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: var(--space-xs);
}

.history-item:hover {
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

.history-item.unread {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.1);
}

.history-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
  font-size: 1rem;
}

.history-item-content {
  flex: 1;
  min-width: 0;
}

.history-item-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-text {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* History panel overlay for mobile */
.history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.history-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   iOS INSTALL BANNER
   Step-by-step PWA installation guide for iOS Safari
   ============================================================ */
.ios-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-glass);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  z-index: var(--z-overlay);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.ios-banner.visible {
  transform: translateY(0);
}

.ios-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.ios-banner-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.ios-banner-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Steps container */
.ios-steps {
  display: flex;
  justify-content: space-around;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.ios-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: var(--space-sm);
}

.ios-step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-light);
  animation: iosStepPulse 2s ease-in-out infinite;
}

.ios-step:nth-child(2) .ios-step-icon {
  animation-delay: 0.3s;
  color: var(--secondary);
}

.ios-step:nth-child(3) .ios-step-icon {
  animation-delay: 0.6s;
  color: var(--success);
}

@keyframes iosStepPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.ios-step-number {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--primary-light);
}

.ios-step-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Arrow between steps */
.ios-step-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  padding-top: 16px;
}

/* ============================================================
   LOADING SPINNER
   Gradient-colored spinning indicator
   ============================================================ */
.spinner-push {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--bg-glass);
  border-top-color: var(--primary);
  animation: spinnerRotate 0.8s linear infinite;
}

.spinner-push-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-push-lg {
  width: 56px;
  height: 56px;
  border-width: 4px;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

/* Loading overlay covering a container */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 35, 0.7);
  backdrop-filter: var(--blur-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   SKELETON LOADING PLACEHOLDERS
   Animated placeholder shapes while content loads
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-glass) 25%,
    var(--bg-glass-hover) 37%,
    var(--bg-glass) 63%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-sm);
}

.skeleton-text:last-child {
  width: 70%;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-md);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-lg);
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   PERMISSION STATUS INDICATOR
   Shows current notification permission state
   ============================================================ */
.permission-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border: 1px solid;
}

.permission-indicator.permitted {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.permission-indicator.denied {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.permission-indicator.pending {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.permission-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: permissionPulse 2s ease-in-out infinite;
}

@keyframes permissionPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   HERO SECTION — INDEX PAGE
   Large gradient hero area with call-to-action
   ============================================================ */
.hero-section {
  position: relative;
  padding: var(--space-3xl) 0;
  text-align: center;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated gradient background for hero */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

/* Floating decorative orbs */
.hero-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  top: -100px;
  right: -100px;
  animation: heroOrbFloat 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.hero-icon-container {
  margin-bottom: var(--space-xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: var(--shadow-glow-lg);
  animation: heroIconFloat 4s ease-in-out infinite;
}

@keyframes heroIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   DEVICE INFO CARD
   Shows browser, OS, and registration details
   ============================================================ */
.device-info-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.device-info-card:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-glass-hover);
}

.device-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.device-details {
  flex: 1;
  min-width: 0;
}

.device-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.device-meta {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* ============================================================
   PAGINATION COMPONENT
   Page navigation for history and tables
   ============================================================ */
.pagination-push {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.pagination-push button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-push button:hover:not(:disabled) {
  background: var(--bg-glass-hover);
  color: var(--primary-light);
  border-color: var(--primary);
}

.pagination-push button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

.pagination-push button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================================
   IMAGE UPLOAD / PREVIEW AREA
   Drag-and-drop area with preview support
   ============================================================ */
.upload-area {
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.upload-area-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.upload-area-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.upload-area-hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Image preview within upload area */
.upload-preview {
  margin-top: var(--space-md);
  max-height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
}

.upload-preview.has-image {
  display: block;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ============================================================
   EMPTY STATE
   Placeholder when no data or results exist
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.empty-state-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================================
   HEADER / NAVBAR — INDEX PAGE
   Sticky navbar with glass effect
   ============================================================ */
.push-navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-bottom: 1px solid var(--border-glass);
  z-index: var(--z-sticky);
  padding: 0 var(--space-xl);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.push-navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.push-navbar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
}

.push-navbar-brand-text {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.push-navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ============================================================
   FOOTER — INDEX PAGE
   Simple footer with Autoagendas branding
   ============================================================ */
.push-footer {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.push-footer a {
  color: var(--primary-light);
}

.push-footer-brand {
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   FEATURE CARDS — INDEX PAGE
   Grid of feature explanation cards
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.feature-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(124, 58, 237, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-light);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-card-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
}

.feature-card-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-card-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   TEST NOTIFICATION FORM CARD
   Styled form card for sending test notifications
   ============================================================ */
.test-form-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.test-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

/* ============================================================
   ADMIN FILTER BAR
   Inline filter controls for tables
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.filter-bar .form-input-push {
  max-width: 220px;
}

.filter-bar select.form-input-push {
  max-width: 180px;
}

/* ============================================================
   ADMIN TEMPLATE CARD
   Card for automation templates in admin panel
   ============================================================ */
.template-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
}

.template-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-sm);
}

.template-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.template-card-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
}

.template-card-event {
  font-size: var(--font-size-xs);
  color: var(--primary-light);
  background: rgba(124, 58, 237, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.template-card-body {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.template-card-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ============================================================
   UTILITY CLASSES
   Helper classes for spacing, alignment, and display
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ============================================================
   FADE-IN ANIMATION ON SCROLL
   Applied via JS intersection observer for staggered reveals
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   Mobile-first adjustments for different screen sizes
   ============================================================ */

/* TABLETS — Under 992px */
@media (max-width: 991.98px) {
  /* Collapse sidebar on tablets */
  .admin-sidebar {
    transform: translateX(-100%);
    z-index: var(--z-overlay);
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }

  .admin-topbar {
    left: 0;
  }

  .admin-content {
    margin-left: 0;
  }

  /* Reduce hero padding */
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  /* Stack filter bar */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar .form-input-push {
    max-width: 100%;
  }
}

/* PHONES — Under 768px */
@media (max-width: 767.98px) {
  :root {
    --space-xl: 1.25rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }

  /* Reduce hero size on mobile */
  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .hero-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  /* Stack feature cards */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Full-width history panel */
  .history-panel {
    width: 100%;
  }

  /* Reduce metric card value size */
  .metric-card .metric-value {
    font-size: var(--font-size-2xl);
  }

  /* Stack iOS steps vertically */
  .ios-steps {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .ios-step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  /* Adjust table for mobile */
  .table-push {
    font-size: var(--font-size-xs);
  }

  .table-push thead th,
  .table-push tbody td {
    padding: 0.625rem 0.5rem;
  }

  /* Admin content padding */
  .admin-content {
    padding: var(--space-lg);
  }

  /* Toast width */
  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
    max-width: none;
  }
}

/* SMALL PHONES — Under 480px */
@media (max-width: 479.98px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .glass-card {
    padding: var(--space-lg);
  }

  .metric-card {
    padding: var(--space-lg);
  }

  .test-form-card {
    padding: var(--space-lg);
  }

  .btn-push-xl {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
  }
}

/* ============================================================
   PRINT STYLES
   Minimal styling for printed output
   ============================================================ */
@media print {
  body {
    background: white;
    color: black;
  }

  .admin-sidebar,
  .admin-topbar,
  .notification-bell,
  .toast-container,
  .ios-banner,
  .history-panel {
    display: none !important;
  }

  .admin-content {
    margin: 0;
  }

  .glass-card,
  .metric-card,
  .chart-container {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
    backdrop-filter: none;
  }
}

/* ============================================================
   MOBILE SIDEBAR OVERLAY
   Dark overlay when mobile sidebar is open
   ============================================================ */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   MOBILE SIDEBAR TOGGLE BUTTON
   Hamburger button shown on smaller screens
   ============================================================ */
.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
}

@media (max-width: 991.98px) {
  .sidebar-toggle {
    display: flex;
  }
}

/* ============================================================
   ADMIN SEND FORM SPECIFIC STYLES
   Layout styles for the notification send form
   ============================================================ */
.send-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 767.98px) {
  .send-form-grid {
    grid-template-columns: 1fr;
  }
}

.send-form-preview {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  min-height: 200px;
}

.send-form-preview-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

/* Notification preview mockup */
.notif-preview {
  background: #1a1a2e;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.notif-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.notif-preview-content {
  flex: 1;
  min-width: 0;
}

.notif-preview-app {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.notif-preview-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-preview-body {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-preview-image {
  width: 100%;
  margin-top: var(--space-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 160px;
}

.notif-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   SECTION HEADERS
   Styled section titles used across pages
   ============================================================ */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

/* ============================================================
   PERSONALIZACIÓN DE COLORES DE BARRAS LATERALES (REQ)
   ============================================================ */
html.light-theme .admin-sidebar {
  background: #8c8c8c !important;
  border-right: 1px solid #777777 !important;
}

html.light-theme .admin-sidebar .sidebar-logo {
  background: #666666 !important;
  border-bottom: 1px solid #555555 !important;
}

html.light-theme .admin-sidebar .sidebar-logo-text {
  color: #ffffff !important;
}

html.light-theme .admin-sidebar .sidebar-logo-sub {
  color: #dddddd !important;
}

html.light-theme .admin-sidebar .sidebar-section-label {
  background: #666666 !important;
  color: #ffffff !important;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  padding: 4px 10px !important;
  border-radius: var(--radius-sm);
  display: inline-block;
  font-size: 10px !important;
}

html.light-theme .admin-sidebar .sidebar-nav-item {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #dddddd !important;
}

html.light-theme .admin-sidebar .sidebar-nav-item i {
  color: #333333 !important;
}

html.light-theme .admin-sidebar .sidebar-nav-item:hover {
  background: #f5f5f5 !important;
  border-color: #cccccc !important;
  color: #111111 !important;
}

html.light-theme .admin-sidebar .sidebar-nav-item.active {
  background: #e6f0ff !important;
  color: #0066cc !important;
  border-color: #0066cc !important;
}

html.light-theme .admin-sidebar .sidebar-nav-item.active i {
  color: #0066cc !important;
}

/* Panel de usuarios en el chat (chat-sidebar) */
html.light-theme .chat-sidebar {
  background: #8c8c8c !important;
  color: #111111 !important;
  border: 1px solid #777777 !important;
}

html.light-theme .chat-sidebar-header {
  background: #666666 !important;
  border-bottom: 1px solid #555555 !important;
}

html.light-theme .chat-sidebar-header h5 {
  color: #ffffff !important;
}

html.light-theme .chat-sidebar-header p {
  color: #dddddd !important;
}

/* Buscador de usuarios */
html.light-theme #chat-search-container {
  border-bottom: 1px solid #777777 !important;
}

html.light-theme #chat-search-label {
  color: #222222 !important;
}

html.light-theme .chat-sidebar #user-search-input {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #cccccc !important;
}

html.light-theme .chat-sidebar .input-group-text {
  background: #f0f0f0 !important;
  color: #666666 !important;
  border: 1px solid #cccccc !important;
}

/* Tarjetas de usuarios en la lista */
html.light-theme .chat-user-item {
  background: #ffffff !important;
  border: 1px solid #dddddd !important;
  margin-bottom: var(--space-xs) !important;
}

html.light-theme .chat-user-item:hover {
  background: #f5f5f5 !important;
  border-color: #cccccc !important;
}

html.light-theme .chat-user-item.active {
  background: #e6f0ff !important;
  border-color: #0066cc !important;
}

html.light-theme .chat-user-item .chat-user-name-thin {
  color: #111111 !important;
}

html.light-theme .chat-user-item .chat-user-username-thin {
  color: #555555 !important;
}

html.light-theme .chat-user-item .chat-user-company-tag {
  color: #444444 !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #cccccc !important;
}

/* ============================================================
   LIGHT THEME OVERRIDES FOR CONTENT & CONTAINERS (REQ)
   ============================================================ */
html.light-theme body {
  background-color: #ffffff !important;
  color: #111111 !important;
}

html.light-theme body::before,
html.light-theme body::after {
  display: none !important;
}

/* Navbar at the top */
html.light-theme .push-navbar {
  background: #666666 !important;
  border-bottom: 1px solid #555555 !important;
  color: #ffffff !important;
}

html.light-theme .push-navbar-brand-text {
  color: #ffffff !important;
}

html.light-theme .push-navbar-actions span,
html.light-theme .push-navbar-actions button,
html.light-theme .push-navbar-actions a,
html.light-theme .push-navbar-actions i {
  color: #ffffff !important;
}

html.light-theme .push-navbar-actions .badge {
  background-color: #ffffff !important;
  color: #666666 !important;
}

/* Top bar in Admin */
html.light-theme .admin-topbar {
  background: #f8f9fa !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

html.light-theme .admin-topbar .topbar-title {
  color: #111111 !important;
}

html.light-theme .admin-topbar i,
html.light-theme .admin-topbar span,
html.light-theme .admin-topbar button,
html.light-theme .admin-topbar a {
  color: #111111 !important;
}

/* Cards and Containers */
html.light-theme .glass-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  color: #111111 !important;
}

html.light-theme .glass-card::before {
  display: none !important;
}

html.light-theme .glass-card:hover {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
}

/* Labels and Texts in Admin */
html.light-theme .text-gradient {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: var(--primary) !important;
}

html.light-theme .admin-content h1,
html.light-theme .admin-content h2,
html.light-theme .admin-content h3,
html.light-theme .admin-content h4,
html.light-theme .admin-content h5,
html.light-theme .admin-content h6,
html.light-theme .admin-content p,
html.light-theme .admin-content span,
html.light-theme .admin-content label,
html.light-theme .admin-content div {
  color: #111111;
}

html.light-theme .admin-content .text-muted {
  color: #64748b !important;
}

/* Forms and Inputs in Admin */
html.light-theme .form-input-push,
html.light-theme .form-select-push,
html.light-theme .form-textarea-push,
html.light-theme .admin-content input,
html.light-theme .admin-content textarea,
html.light-theme .admin-content select {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #cbd5e1 !important;
}

html.light-theme .form-input-push:focus,
html.light-theme .form-select-push:focus,
html.light-theme .form-textarea-push:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1) !important;
}

/* Table styling */
html.light-theme .table-push {
  color: #111111 !important;
}

html.light-theme .table-push thead th {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

html.light-theme .table-push tbody tr {
  border-bottom: 1px solid #e2e8f0 !important;
}

html.light-theme .table-push tbody tr:hover td {
  background: #f8fafc !important;
}

html.light-theme .table-push tbody td {
  color: #334155 !important;
}

/* Pagination & buttons */
html.light-theme .btn-push-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

html.light-theme .btn-push-secondary:hover {
  background: #f1f5f9 !important;
}

/* Chat Main Layout */
html.light-theme .chat-main {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

html.light-theme .chat-main-header {
  background: #f8f9fa !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

html.light-theme .chat-main-header h6,
html.light-theme .chat-main-header span,
html.light-theme .chat-main-header div,
html.light-theme .chat-main-header button,
html.light-theme .chat-main-header i {
  color: #111111 !important;
}

html.light-theme .chat-messages {
  background: #ffffff !important;
}

/* Chat bubble styling for light mode */
html.light-theme .msg-bubble-wrapper.received .msg-bubble {
  background: #f1f5f9 !important;
  color: #111111 !important;
  border: 1px solid #e2e8f0 !important;
}

html.light-theme .msg-bubble-wrapper.sent .msg-bubble {
  background: var(--primary) !important;
  color: #ffffff !important;
}

html.light-theme .msg-time {
  color: #64748b !important;
}

/* Chat input area */
html.light-theme .chat-input-area {
  background: #f8f9fa !important;
  border-top: 1px solid #cbd5e1 !important;
}

html.light-theme .chat-input {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #cbd5e1 !important;
}

html.light-theme .chat-input::placeholder {
  color: #94a3b8 !important;
}

/* Modals */
html.light-theme .modal-content {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme .modal-content .modal-title,
html.light-theme .modal-content label,
html.light-theme .modal-content span,
html.light-theme .modal-content p,
html.light-theme .modal-content h5,
html.light-theme .modal-content h6 {
  color: #111111 !important;
}

html.light-theme .modal-content input,
html.light-theme .modal-content textarea,
html.light-theme .modal-content select {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Fix text colors inside the dropdown and popups */
html.light-theme .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

html.light-theme .dropdown-menu .dropdown-item {
  color: #111111 !important;
}

html.light-theme .dropdown-menu .dropdown-item:hover {
  background: #f1f5f9 !important;
}

html.light-theme .dropdown-menu div,
html.light-theme .dropdown-menu span,
html.light-theme .dropdown-menu strong {
  color: #111111 !important;
}

html.light-theme .dropdown-menu .text-muted {
  color: #64748b !important;
}

/* User profile badge in topbar */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 2px 4px 2px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
}

html.light-theme .user-profile-badge {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid #cbd5e1 !important;
}

/* High contrast notification preview in light theme */
html.light-theme .notif-preview {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

html.light-theme .notif-preview-app {
  color: #64748b !important;
}

html.light-theme .notif-preview-title {
  color: #0f172a !important;
}

html.light-theme .notif-preview-body {
  color: #475569 !important;
}

/* Premium non-flat templates styling in light theme */
html.light-theme .template-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-md) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

html.light-theme .template-card:hover {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.1), 0 4px 6px -2px rgba(124, 58, 237, 0.05) !important;
}

html.light-theme .template-card-name {
  color: #0f172a !important;
}

html.light-theme .template-card-body {
  color: #475569 !important;
}

/* ============================================================
   GLOBAL UTILITIES AND FIXES
   ============================================================ */
.text-primary-light {
  color: var(--primary-light) !important;
}

/* High contrast and premium design for the PWA install button in both themes */
#pwa-install-footer-link {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-dark) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

#pwa-install-footer-link:hover {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-1px) !important;
}

#pwa-install-footer-link i {
  color: #ffffff !important;
}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */
