/**
 * Xentral Design System
 * Sistema de diseño completo para Xentral Admin
 * Extraído del proyecto original - Pixel-perfect replication
 */

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* Colores principales */
  --xentral-primary: #010061;
  --xentral-secondary: #009afa;
  
  /* Fondos */
  --xentral-bg: #F8FAFC;
  --xentral-surface: #FFFFFF;
  
  /* Texto */
  --xentral-text: #1E293B;
  --xentral-text-secondary: #64748B;
  --xentral-text-placeholder: rgba(100, 116, 139, 0.5);
  
  /* Bordes */
  --xentral-border: #E2E8F0;
  
  /* Estados */
  --xentral-success: #10B981;
  --xentral-warning: #F59E0B;
  --xentral-danger: #EF4444;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--xentral-primary) 0%, var(--xentral-secondary) 100%);
  --gradient-primary-reverse: linear-gradient(135deg, var(--xentral-secondary) 0%, var(--xentral-primary) 100%);
  --gradient-success: linear-gradient(135deg, var(--xentral-success) 0%, var(--xentral-success) 100%);
  
  /* Espaciado (Tailwind scale) */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  
  /* Bordes redondeados */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 10px 15px -3px rgba(1, 0, 97, 0.25);
  --shadow-primary-hover: 0 10px 15px -3px rgba(1, 0, 97, 0.4);
  
  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Tipografía */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  
  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Z-index */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-toast: 50;
  
  /* Login specific */
  --login-pattern-opacity: 0.03;
  --input-focus-ring: rgba(0, 154, 250, 0.2);
}

/* ============================================
   2. RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--xentral-bg);
  color: var(--xentral-text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  line-height: 1.5;
}

a {
  color: var(--xentral-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--xentral-primary);
}

/* ============================================
   4. LAYOUT COMPONENTS
   ============================================ */

/* Login Layout - Split Screen */
.login-container {
  display: flex;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.login-branding {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
}

@media (min-width: 1024px) {
  .login-branding {
    display: flex;
    flex: 0 0 50%;
    width: 50%;
  }
}

.login-branding-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 3rem;
}

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--xentral-bg);
  width: 100%;
}

@media (min-width: 1024px) {
  .login-form-side {
    flex: 0 0 50%;
    width: 50%;
  }
}

.login-form-wrapper {
  width: 100%;
  max-width: 32rem; /* 512px */
}

/* ============================================
   5. CARD COMPONENT
   ============================================ */

.login-card {
  background: var(--xentral-surface);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--xentral-border);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .login-card {
    padding: 2.5rem;
  }
}

/* ============================================
   6. FORM COMPONENTS
   ============================================ */

/* Form Group */
.form-group {
  margin-bottom: 1rem;
}

/* Labels */
.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--xentral-text);
  margin-bottom: 0.5rem;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.input-icon svg,
.input-icon i {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--xentral-text-secondary);
}

/* Input Fields */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--xentral-border);
  background-color: var(--xentral-bg);
  color: var(--xentral-text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  transition: all var(--transition-normal);
  outline: none;
}

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

.form-input:focus {
  border-color: var(--xentral-secondary);
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}

/* Input with left icon */
.form-input--with-icon-left {
  padding-left: 3rem;
}

/* Input with right button */
.form-input--with-button-right {
  padding-right: 3rem;
}

/* Password toggle button */
.password-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding-right: 1rem;
  display: flex;
  align-items: center;
  color: var(--xentral-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: var(--xentral-primary);
}

.password-toggle svg,
.password-toggle i {
  width: 1.25rem;
  height: 1.25rem;
}

/* Input Error State */
.form-input--error {
  border-color: var(--xentral-danger);
}

.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Error Message */
.form-error {
  display: none;
  font-size: var(--font-size-xs);
  color: var(--xentral-danger);
  margin-top: 0.25rem;
}

.form-error.visible {
  display: block;
}

/* ============================================
   7. BUTTON COMPONENTS
   ============================================ */

/* Base Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Primary Button (Login) */
.btn--primary {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover:not(:disabled) {
  background: var(--gradient-primary-reverse);
  box-shadow: var(--shadow-primary-hover);
}

.btn--primary:focus {
  box-shadow: 0 0 0 2px var(--xentral-surface), 0 0 0 4px var(--xentral-secondary);
  ring-offset-width: 2px;
}

/* Button Shine Effect */
.btn--shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn--shine:hover::before {
  left: 100%;
}

/* Secondary Button */
.btn--secondary {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--xentral-surface);
  color: var(--xentral-text);
  border: 1px solid var(--xentral-border);
}

.btn--secondary:hover {
  background: #f9fafb;
}

/* Icon Button */
.btn--icon {
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  background: transparent;
}

.btn--icon:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================
   8. CHECKBOX & REMEMBER ME
   ============================================ */

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border-color: var(--xentral-border);
  accent-color: var(--xentral-secondary);
}

.checkbox-label {
  font-size: var(--font-size-sm);
  color: var(--xentral-text-secondary);
}

/* ============================================
   9. LINKS & TEXT
   ============================================ */

.link--secondary {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--xentral-secondary);
  transition: color var(--transition-fast);
}

.link--secondary:hover {
  color: var(--xentral-primary);
}

.text--center {
  text-align: center;
}

.text--secondary {
  color: var(--xentral-text-secondary);
}

/* ============================================
   10. DIVIDER
   ============================================ */

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.divider__line {
  flex: 1;
  border-top: 1px solid var(--xentral-border);
}

.divider__text {
  font-size: 0.75rem;
  color: var(--xentral-text-secondary);
  white-space: nowrap;
}

/* ============================================
   11. SOCIAL LOGIN
   ============================================ */

.social-login {
  width: 100%;
}

.social-login--google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ============================================
   12. ANIMATIONS
   ============================================ */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Spin */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   13. SVG PATTERNS
   ============================================ */

.login-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   14. UTILITY CLASSES
   ============================================ */

/* Display */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

/* Flex */
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* Spacing */
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Text */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }

.fw-normal { font-weight: var(--font-weight-normal); }
.fw-medium { font-weight: var(--font-weight-medium); }
.fw-semibold { font-weight: var(--font-weight-semibold); }
.fw-bold { font-weight: var(--font-weight-bold); }

/* Colors */
.text-primary { color: var(--xentral-primary); }
.text-secondary { color: var(--xentral-secondary); }
.text-body { color: var(--xentral-text); }
.text-muted { color: var(--xentral-text-secondary); }
.text-white { color: white; }
.text-danger { color: var(--xentral-danger); }
.text-success { color: var(--xentral-success); }

/* Background */
.bg-primary { background-color: var(--xentral-primary); }
.bg-secondary { background-color: var(--xentral-secondary); }
.bg-surface { background-color: var(--xentral-surface); }
.bg-body { background-color: var(--xentral-bg); }
.bg-gradient-primary { background: var(--gradient-primary); }

/* Border */
.border { border: 1px solid var(--xentral-border); }
.border-radius-sm { border-radius: var(--radius-sm); }
.border-radius-md { border-radius: var(--radius-md); }
.border-radius-lg { border-radius: var(--radius-lg); }
.border-radius-xl { border-radius: var(--radius-xl); }
.border-radius-2xl { border-radius: var(--radius-2xl); }
.border-radius-3xl { border-radius: var(--radius-3xl); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Height */
.h-screen { height: 100vh; }
.h-auto { height: auto; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }

/* Transitions */
.transition-fast { transition: all var(--transition-fast); }
.transition-normal { transition: all var(--transition-normal); }

/* ============================================
   15. RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 1023px) {
  .lg\:d-none { display: none !important; }
  .lg\:d-flex { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:d-none { display: none !important; }
  .lg\:d-flex { display: flex !important; }
}

/* ============================================
   16. DASHBOARD LAYOUT
   ============================================ */

/* Main Layout Container */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0;
  left: 0;
  z-index: 30;
  width: 240px;
  background: white;
  border-right: 1px solid var(--xentral-border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

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

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }
}

.sidebar__logo {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--xentral-border);
  flex-shrink: 0;
}

.sidebar__logo img {
  height: 40px;
  width: auto;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1rem;
}

.sidebar__section {
  margin-bottom: 1.5rem;
}

.sidebar__section-title {
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--xentral-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar__list li {
  margin-bottom: 0.25rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--xentral-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar__link:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--xentral-text);
}

.sidebar__link.active {
  background: #f0c040;
  border-left: 3px solid #f0c040;
  color: #0a1628;
  font-weight: 600;
}

.sidebar__link i,
.sidebar__link svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.sidebar__divider {
  border-top: 1px solid var(--xentral-border);
  margin: 1.5rem 0;
}

.sidebar__user {
  padding: 1rem;
  border-top: 1px solid var(--xentral-border);
  flex-shrink: 0;
}

.sidebar__user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.sidebar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar__avatar span {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.sidebar__user-info {
  flex: 1;
  min-width: 0;
}

.sidebar__user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xentral-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-role {
  font-size: 0.75rem;
  color: var(--xentral-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__logout-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  transition: background-color 0.2s;
}

.sidebar__logout-btn:hover {
  background: white;
}

.sidebar__logout-btn i,
.sidebar__logout-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--xentral-text-secondary);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 20;
  display: none;
}

.sidebar-overlay.visible {
  display: block;
}

@media (min-width: 1024px) {
  .sidebar-overlay {
    display: none !important;
  }
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* ============================================
   17. TOPBAR
   ============================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: white;
  border-bottom: 1px solid var(--xentral-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar__menu-btn {
  display: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  transition: background-color 0.2s;
}

.topbar__menu-btn:hover {
  background: #f3f4f6;
}

@media (max-width: 1023px) {
  .topbar__menu-btn {
    display: flex;
  }
}

.topbar__menu-btn i,
.topbar__menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--xentral-text);
}

.topbar__title h1 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--xentral-text);
  line-height: 1.2;
}

.topbar__title p {
  font-size: 0.75rem;
  color: var(--xentral-text-secondary);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Notification Button */
.topbar__notif-btn {
  position: relative;
  padding: 0.625rem;
  border-radius: 0.75rem;
  background: transparent;
  transition: background-color 0.2s;
}

.topbar__notif-btn:hover {
  background: #f3f4f6;
}

.topbar__notif-btn i,
.topbar__notif-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--xentral-text);
}

.topbar__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--xentral-danger);
  border-radius: 50%;
  border: 2px solid white;
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* User Menu Button */
.topbar__user-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: transparent;
  transition: background-color 0.2s;
}

.topbar__user-btn:hover {
  background: #f3f4f6;
}

.topbar__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar__user-avatar span {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.topbar__user-btn i,
.topbar__user-btn svg {
  width: 1rem;
  height: 1rem;
  color: var(--xentral-text-secondary);
}

/* ============================================
   18. DROPDOWNS
   ============================================ */

.dropdown {
  position: relative;
}

.dropdown__menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--xentral-border);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 40;
}

.dropdown__menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--xentral-border);
}

.dropdown__header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--xentral-text);
}

.dropdown__body {
  max-height: 320px;
  overflow-y: auto;
}

.dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.dropdown__item:last-child {
  border-bottom: none;
}

.dropdown__item:hover {
  background: #f9fafb;
}

.dropdown__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown__item-icon i,
.dropdown__item-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.dropdown__item-icon--danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--xentral-danger);
}

.dropdown__item-icon--warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--xentral-warning);
}

.dropdown__item-icon--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--xentral-success);
}

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

.dropdown__item-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--xentral-text);
}

.dropdown__item-time {
  font-size: 0.75rem;
  color: var(--xentral-text-secondary);
  margin-top: 0.25rem;
}

.dropdown__footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--xentral-border);
  background: #f9fafb;
}

.dropdown__footer a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xentral-secondary);
  text-decoration: none;
}

.dropdown__footer a:hover {
  text-decoration: underline;
}

/* User Dropdown specific */
.dropdown__user-menu {
  width: 224px;
}

.dropdown__user-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--xentral-border);
}

.dropdown__user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xentral-text);
}

.dropdown__user-email {
  font-size: 0.75rem;
  color: var(--xentral-text-secondary);
}

.dropdown__user-links {
  padding: 0.25rem 0;
}

.dropdown__user-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--xentral-text);
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown__user-link:hover {
  background: #f9fafb;
}

.dropdown__user-link i,
.dropdown__user-link svg {
  width: 1rem;
  height: 1rem;
}

.dropdown__user-link--danger {
  color: var(--xentral-danger);
}

.dropdown__divider {
  border-top: 1px solid var(--xentral-border);
  margin: 0.25rem 0;
}

/* Notifications Dropdown specific */
.dropdown__notifications {
  width: 320px;
}

/* ============================================
   19. HERO BANNER
   ============================================ */

.hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
}

.hero-banner__content {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem;
}

@media (min-width: 1024px) {
  .hero-banner__content {
    padding: 4rem 2rem;
  }
}

.hero-banner__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
  .hero-banner__title {
    font-size: 2.25rem;
  }
}

.hero-banner__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
}

.hero-banner__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-banner__wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Neural pattern for hero */
.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   20. PLATFORM CARDS
   ============================================ */

.section-header {
  margin-bottom: 2rem;
}

.section-header__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--xentral-text);
}

.section-header__subtitle {
  font-size: 0.875rem;
  color: var(--xentral-text-secondary);
  margin-top: 0.25rem;
}

.platforms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.platform-card {
  display: block;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--xentral-border);
  text-decoration: none;
  transition: all 0.3s ease;
}

.platform-card:hover {
  border-color: rgba(0, 154, 250, 0.6);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.platform-card__image {
  height: 208px;
  overflow: hidden;
  background: #f3f4f6;
}

.platform-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.platform-card__content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 208px);
}

.platform-card__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.platform-card__logo img {
  height: 56px;
  width: auto;
}

.platform-card__desc {
  font-size: 0.875rem;
  color: var(--xentral-text-secondary);
  line-height: 1.5;
}

.platform-card__btn {
  width: 100%;
  padding: 0.625rem;
  background: var(--xentral-primary);
  color: white;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s;
}

.platform-card__btn:hover {
  background: var(--xentral-secondary);
}

.platform-card__btn:active {
  transform: scale(0.95);
}

/* ============================================
   21. STATS CARDS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--xentral-border);
  padding: 1.25rem;
  transition: box-shadow 0.3s;
}

.stat-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card__icon i,
.stat-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.stat-card__icon--primary {
  background: rgba(1, 0, 97, 0.1);
  color: var(--xentral-primary);
}

.stat-card__icon--green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.stat-card__icon--red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.stat-card__icon--purple {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.stat-card__trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.stat-card__trend i,
.stat-card__trend svg {
  width: 0.75rem;
  height: 0.75rem;
}

.stat-card__trend--up {
  color: #16a34a;
}

.stat-card__trend--down {
  color: #dc2626;
}

.stat-card__trend--neutral {
  color: #9ca3af;
}

.stat-card__value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--xentral-text);
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.875rem;
  color: var(--xentral-text-secondary);
}

/* ============================================
   22. FOOTER
   ============================================ */

.footer {
  background: white;
  border-top: 1px solid var(--xentral-border);
  padding: 1.5rem 2rem;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer__content {
    flex-direction: row;
  }
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--xentral-text-secondary);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--xentral-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--xentral-primary);
}

/* ============================================
   23. CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--xentral-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--xentral-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--xentral-text-secondary);
}

/* ============================================
   24. PRINT STYLES
   ============================================ */

@media print {
  .sidebar,
  .topbar,
  .footer {
    display: none !important;
  }
  
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .login-branding {
    display: none !important;
  }
  
  .login-form-side {
    padding: 0 !important;
  }
}
