/* ============================================
   CRM Design System - index.css
   Premium Dark Theme with Glassmorphism
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Colors - Base */
  --bg-primary: hsl(222, 25%, 6%);
  --bg-secondary: hsl(222, 22%, 10%);
  --bg-tertiary: hsl(222, 20%, 14%);
  --bg-elevated: hsl(222, 20%, 16%);
  --bg-hover: hsl(222, 20%, 18%);

  /* Colors - Surface (Glassmorphism) */
  --surface-1: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(15, 18, 30, 0.75);

  /* Colors - Text */
  --text-primary: hsl(0, 0%, 95%);
  --text-secondary: hsl(222, 15%, 65%);
  --text-tertiary: hsl(222, 12%, 45%);
  --text-inverse: hsl(222, 25%, 8%);

  /* Colors - Accent */
  --accent-primary: hsl(239, 84%, 67%);
  --accent-secondary: hsl(263, 90%, 65%);
  --accent-gradient: linear-gradient(135deg, hsl(239, 84%, 67%), hsl(263, 90%, 65%));
  --accent-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --accent-hover: hsl(239, 84%, 72%);

  /* Colors - Status */
  --success: hsl(152, 69%, 50%);
  --success-bg: hsla(152, 69%, 50%, 0.12);
  --warning: hsl(38, 92%, 60%);
  --warning-bg: hsla(38, 92%, 60%, 0.12);
  --danger: hsl(0, 84%, 62%);
  --danger-bg: hsla(0, 84%, 62%, 0.12);
  --info: hsl(199, 89%, 60%);
  --info-bg: hsla(199, 89%, 60%, 0.12);

  /* Colors - Pipeline Stages */
  --stage-prospecto: hsl(199, 89%, 60%);
  --stage-calificado: hsl(263, 90%, 65%);
  --stage-propuesta: hsl(38, 92%, 60%);
  --stage-negociacion: hsl(25, 95%, 58%);
  --stage-ganado: hsl(152, 69%, 50%);
  --stage-perdido: hsl(0, 84%, 62%);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(99, 102, 241, 0.4);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.6875rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --header-height: 64px;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ── CSS Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--accent-hover); }

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

input::placeholder, textarea::placeholder {
  color: var(--text-tertiary);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

ul, ol { list-style: none; }

img { max-width: 100%; display: block; }

table {
  width: 100%;
  border-collapse: collapse;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Layout ── */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width var(--transition-base);
  z-index: var(--z-sticky);
  overflow: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  min-height: var(--header-height);
}

.sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--accent-glow);
}

.sidebar-logo .logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.sidebar-logo .logo-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
}

.sidebar-nav-section {
  margin-bottom: var(--space-6);
}

.sidebar-nav-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  margin-bottom: 2px;
  user-select: none;
}

.sidebar-nav-item:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-nav-item.active svg {
  opacity: 1;
}

.sidebar-nav-item .badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: var(--space-4) var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.sidebar-user:hover {
  background: var(--surface-2);
}

.sidebar-user .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: white;
  flex-shrink: 0;
}

.sidebar-user .user-info {
  overflow: hidden;
}

.sidebar-user .user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .user-role {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── Header ── */
.main-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  flex-shrink: 0;
  gap: var(--space-4);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  white-space: nowrap;
}

.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

.header-breadcrumb span { color: var(--text-primary); }

.header-search {
  position: relative;
  max-width: 380px;
  flex: 1;
}

.header-search input {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4) var(--space-2) 40px;
  font-size: var(--font-size-sm);
  width: 100%;
  transition: all var(--transition-fast);
}

.header-search input:focus {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.header-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.header-icon-btn:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.header-icon-btn .notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

/* ── Content Area ── */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-8);
  background: var(--bg-primary);
}

/* ── Utility Classes ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.relative { position: relative; }

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

.animate-fade-in { animation: fadeIn var(--transition-base) ease-out; }
.animate-fade-in-up { animation: fadeInUp var(--transition-base) ease-out; }
.animate-scale-in { animation: scaleIn var(--transition-base) ease-out; }
.animate-slide-right { animation: slideInRight var(--transition-base) ease-out; }

/* Staggered animation delays */
.stagger-1 { animation-delay: 50ms; animation-fill-mode: both; }
.stagger-2 { animation-delay: 100ms; animation-fill-mode: both; }
.stagger-3 { animation-delay: 150ms; animation-fill-mode: both; }
.stagger-4 { animation-delay: 200ms; animation-fill-mode: both; }
.stagger-5 { animation-delay: 250ms; animation-fill-mode: both; }
.stagger-6 { animation-delay: 300ms; animation-fill-mode: both; }

/* ── Mobile Sidebar Toggle ── */
.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.sidebar-toggle svg {
  width: 22px;
  height: 22px;
}

/* ── Sidebar Overlay (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ══════════════════════════════════
   RESPONSIVE - Tablet (≤ 1024px)
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-base);
  }

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

  .sidebar-toggle {
    display: flex;
  }

  .sidebar-overlay {
    display: block;
  }

  .main-content {
    width: 100%;
  }

  .header-search {
    max-width: 260px;
  }

  .content-area {
    padding: var(--space-6);
  }
}

/* ══════════════════════════════════
   RESPONSIVE - Mobile (≤ 768px)
   ══════════════════════════════════ */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .main-header {
    padding: 0 var(--space-4);
    gap: var(--space-3);
  }

  .header-title {
    font-size: var(--font-size-base);
  }

  .header-search {
    max-width: none;
    flex: 1;
  }

  .header-search input {
    font-size: 16px; /* prevents zoom on iOS */
  }

  .content-area {
    padding: var(--space-4);
  }

  /* Form rows stack */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Modal fullscreen on mobile */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: slideUpModal 300ms ease-out;
  }

  @keyframes slideUpModal {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }

  .modal-header {
    padding: var(--space-4) var(--space-5);
  }

  .modal-body {
    padding: var(--space-4) var(--space-5);
  }

  .modal-footer {
    padding: var(--space-3) var(--space-5);
  }

  /* Toolbar stacks */
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .toolbar-left,
  .toolbar-right {
    justify-content: space-between;
  }

  /* Toast repositioning */
  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }

  /* Table horizontal scroll */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 600px;
  }

  /* Contact cards full width */
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  /* Pipeline columns */
  .kanban-board {
    padding-bottom: var(--space-6);
  }

  .kanban-column {
    min-width: 260px;
  }

  /* Calendar day cells smaller */
  .cal-day {
    min-height: 60px;
    padding: var(--space-1);
  }

  .cal-header-cell {
    padding: var(--space-2);
    font-size: 10px;
  }

  .calendar-month-title {
    font-size: var(--font-size-lg);
    min-width: 180px;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  /* Detail grids stack */
  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* Deal detail */
  .deal-detail-header {
    flex-direction: column;
    gap: var(--space-3);
  }

  .deal-stages-bar {
    flex-wrap: wrap;
  }

  /* Task items */
  .task-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .task-item-right {
    width: 100%;
    justify-content: space-between;
  }

  .task-actions {
    opacity: 1;
  }

  /* Contact detail header */
  .contact-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* Funnel chart */
  .funnel-step {
    flex-direction: column;
    gap: var(--space-2);
  }

  .funnel-info {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  /* Sources chart */
  .sources-chart-wrapper {
    flex-direction: column;
  }

  /* Search results dropdown */
  .search-results {
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    top: calc(var(--header-height) + var(--space-2));
    max-height: 50vh;
  }

  /* Filter group stacks */
  .filter-group {
    flex-wrap: wrap;
  }

  .filter-group select {
    min-width: 120px;
    flex: 1;
  }
}

/* ══════════════════════════════════
   RESPONSIVE - Small Mobile (≤ 480px)
   ══════════════════════════════════ */
@media (max-width: 480px) {
  .content-area {
    padding: var(--space-3);
  }

  .header-search {
    display: none;
  }

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

  .kpi-card {
    padding: var(--space-4);
  }

  .kpi-value {
    font-size: var(--font-size-xl);
  }

  .sidebar {
    width: 85vw;
    max-width: 300px;
  }

  .btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .kanban-column {
    min-width: 240px;
  }
}

/* ══════════════════════════════════
   NOTIFICATIONS DROPDOWN
   ══════════════════════════════════ */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  margin-top: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s;
}

.notification-dropdown.hidden {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
}

.notification-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.notification-list {
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: var(--bg-hover);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.notification-content {
  flex-grow: 1;
}

.notification-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
  display: block;
}

.notification-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}
