/**
 * Polaris CRM - Main Stylesheet
 * Company Colors: Purple theme
 */

/* CSS Variables */
:root {
  /* Purple Theme (Company Colors) */
  --primary-50: #faf5ff;
  --primary-100: #f3e8ff;
  --primary-200: #e9d5ff;
  --primary-300: #d8b4fe;
  --primary-400: #c084fc;
  --primary-500: #a855f7;
  --primary-600: #9333ea;
  --primary-700: #7c3aed;
  --primary-800: #6b21a8;
  --primary-900: #581c87;
  --primary-950: #3b0764;

  /* Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Status Colors */
  --success: #22c55e;
  --success-light: #dcfce7;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
  --header-height: 64px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
}

a {
  color: var(--primary-600);
  text-decoration: none;
}

a:hover {
  color: var(--primary-700);
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: linear-gradient(
    180deg,
    var(--primary-900) 0%,
    var(--primary-800) 100%
  );
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  font-size: 24px;
}

.logo-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.logo-image {
  max-height: 40px;
  max-width: 160px;
  object-fit: contain;
}

.logo-text {
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.sidebar.collapsed .logo-text {
  display: none;
}

.sidebar.collapsed .logo-image {
  max-width: 40px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-link i {
  font-size: 20px;
  width: 24px;
}

.sidebar.collapsed .nav-link span {
  display: none;
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.user-name {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.user-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.sidebar.collapsed .user-info {
  display: none;
}

.logout-btn {
  color: rgba(255, 255, 255, 0.7);
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

/* Top Header */
.top-header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-600);
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.search-box input {
  padding: 8px 16px 8px 40px;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 14px;
  width: 240px;
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.header-btn {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.header-btn:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  min-width: 300px;
}

.search-loading,
.search-empty {
  padding: 16px;
  text-align: center;
  color: var(--gray-500);
}

.search-loading i {
  position: static;
  transform: none;
  margin-right: 8px;
}

.search-group {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.search-group:last-child {
  border-bottom: none;
}

.search-group-title {
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.15s;
}

.search-item:hover {
  background: var(--gray-50);
}

.search-item i {
  position: static;
  transform: none;
  font-size: 18px;
  color: var(--gray-400);
}

.search-item span {
  font-size: 14px;
}

/* Notification Wrapper and Dropdown */
.notification-wrapper {
  position: relative;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.notification-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.mark-all-read-btn {
  background: none;
  border: none;
  color: var(--primary-500);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  transition: background 0.15s;
}

.mark-all-read-btn:hover {
  background: var(--primary-50);
}

.notification-list {
  max-height: 360px;
  overflow-y: auto;
}

.notification-loading {
  display: flex;
  justify-content: center;
  padding: 32px;
  color: var(--gray-400);
}

.notification-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  color: var(--gray-400);
}

.notification-empty i {
  font-size: 32px;
  margin-bottom: 8px;
}

.notification-empty p {
  margin: 0;
  font-size: 14px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.15s;
  cursor: pointer;
}

.notification-item:hover {
  background: var(--gray-50);
}

.notification-item.unread {
  background: var(--primary-50);
}

.notification-item.unread:hover {
  background: var(--primary-100);
}

.notification-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  font-size: 16px;
}

.notification-icon.text-success {
  background: var(--success-light);
  color: var(--success);
}

.notification-icon.text-primary {
  background: var(--primary-100);
  color: var(--primary-500);
}

.notification-icon.text-info {
  background: var(--info-light);
  color: var(--info);
}

.notification-icon.text-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.notification-message {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-time {
  font-size: 12px;
  color: var(--gray-400);
}

.notification-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}

.clear-all-btn {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  transition: all 0.15s;
}

.clear-all-btn:hover {
  color: var(--danger);
  background: var(--danger-light);
}

/* Spin animation for loader */
@keyframes ri-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ri-spin {
  animation: ri-spin 1s linear infinite;
}

/* Flash Messages */
.flash-messages {
  padding: 16px 24px;
}

.flash-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  margin-bottom: 8px;
}

.flash-success {
  background: var(--success-light);
  color: #166534;
}

.flash-error {
  background: var(--danger-light);
  color: #991b1b;
}

.flash-info {
  background: var(--info-light);
  color: #1e40af;
}

.flash-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
}

.flash-close:hover {
  opacity: 1;
}

/* Page Content */
.page-content {
  padding: 24px;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.card-body {
  padding: 20px;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.kpi-icon.purple {
  background: var(--primary-100);
  color: var(--primary-600);
}

.kpi-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.kpi-icon.blue {
  background: var(--info-light);
  color: var(--info);
}

.kpi-icon.orange {
  background: var(--warning-light);
  color: var(--warning);
}

.kpi-content {
  flex: 1;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.kpi-label {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 4px;
}

.kpi-trend {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.kpi-trend.up {
  color: var(--success);
}

.kpi-trend.down {
  color: var(--danger);
}

/* Marketing Dashboard */
.marketing-hero {
  background: linear-gradient(135deg, var(--primary-50), var(--gray-50) 65%);
  border: 1px solid var(--primary-100);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.marketing-hero__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.marketing-hero__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-600);
  font-weight: 600;
  margin-bottom: 8px;
}

.marketing-hero__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.marketing-hero__subtitle {
  color: var(--gray-600);
  max-width: 520px;
}

.marketing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.marketing-hero__filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--gray-100);
  border-radius: 9999px;
}

.marketing-hero__score {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.marketing-score-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.marketing-score-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

.marketing-score-value {
  font-size: 24px;
  font-weight: 700;
}

.marketing-score-sub {
  font-size: 13px;
  color: var(--gray-500);
}

.marketing-score-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.marketing-score-inline {
  margin-left: 6px;
  font-weight: 600;
  color: var(--gray-900);
}

.marketing-hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.marketing-stat {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--border-radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.marketing-stat__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  font-weight: 600;
}

.marketing-stat__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.marketing-stat__meta {
  font-size: 12px;
  color: var(--gray-500);
}

.marketing-progress {
  height: 8px;
  background: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
}

.marketing-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--info));
}

.marketing-progress__bar.is-danger {
  background: var(--danger);
}

.budget-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.budget-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.budget-item__name {
  font-weight: 600;
  color: var(--gray-900);
}

.budget-item__meta {
  font-size: 12px;
  color: var(--gray-500);
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.insight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.insight-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  font-weight: 600;
}

.insight-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.insight-meta {
  font-size: 12px;
  color: var(--gray-500);
}

.lead-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lead-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.lead-body {
  flex: 1;
  min-width: 0;
}

.lead-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-meta {
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-600);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.table th {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gray-50);
}

.table tbody tr:hover {
  background: var(--gray-50);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.data-table th {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gray-50);
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-purple {
  background: var(--primary-100);
  color: var(--primary-700);
}

.badge-green {
  background: var(--success-light);
  color: #166534;
}

.badge-yellow {
  background: var(--warning-light);
  color: #92400e;
}

.badge-red {
  background: var(--danger-light);
  color: #991b1b;
}

.badge-gray {
  background: var(--gray-100);
  color: var(--gray-700);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9999px;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Pipeline Kanban */
.pipeline-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.pipeline-column {
  min-width: 320px;
  max-width: 320px;
  background: var(--gray-100);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
}

.pipeline-column-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid;
}

.pipeline-column-title {
  font-weight: 600;
  font-size: 14px;
}

.pipeline-column-count {
  background: white;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
}

.pipeline-column-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 300px);
}

.pipeline-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: all 0.2s;
}

.pipeline-card:hover {
  box-shadow: var(--shadow-md);
}

.pipeline-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.pipeline-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pipeline-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-900);
}

.pipeline-card-flag {
  color: var(--danger);
}

.pipeline-card-client {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.pipeline-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-500);
}

.pipeline-card-meta i {
  font-size: 14px;
}

.pipeline-card-actions {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.pipeline-card-actions button {
  flex: 1;
  padding: 6px;
  font-size: 12px;
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-900) 0%,
    var(--primary-700) 100%
  );
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo .logo-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  font-size: 32px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-400);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gray-600);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .marketing-hero__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .marketing-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    display: none;
  }

  .pipeline-column {
    min-width: 280px;
  }

  .marketing-hero {
    padding: 18px;
  }

  .marketing-hero__score {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-sm {
  font-size: 13px;
}
.text-2xl {
  font-size: 24px;
}
.text-3xl {
  font-size: 30px;
}
.text-xs {
  font-size: 12px;
}
.text-gray-400 {
  color: var(--gray-400);
}
.text-gray-500 {
  color: var(--gray-500);
}
.text-gray-600 {
  color: var(--gray-600);
}
.text-gray-700 {
  color: var(--gray-700);
}
.text-primary {
  color: var(--primary-600);
}
.text-green-600 {
  color: var(--success);
}
.text-red-600 {
  color: var(--danger);
}
.text-yellow-600 {
  color: var(--warning);
}
.text-blue-600 {
  color: var(--info);
}
.text-purple-600 {
  color: var(--primary-600);
}
.text-orange-600 {
  color: var(--warning);
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.mt-2 {
  margin-top: 8px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.p-0 {
  padding: 0;
}
.p-3 {
  padding: 12px;
}
.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}
.py-8 {
  padding-top: 32px;
  padding-bottom: 32px;
}
.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-6 {
  gap: 24px;
}
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.space-y-2 > * + * {
  margin-top: 8px;
}
.space-y-4 > * + * {
  margin-top: 16px;
}
.rounded-lg {
  border-radius: var(--border-radius-lg);
}
.rounded-full {
  border-radius: 9999px;
}
.w-10 {
  width: 40px;
}
.h-10 {
  height: 40px;
}
.h-2 {
  height: 8px;
}
.h-full {
  height: 100%;
}
.bg-gray-50 {
  background: var(--gray-50);
}
.bg-gray-200 {
  background: var(--gray-200);
}
.bg-purple-100 {
  background: var(--primary-100);
}
.bg-blue-100 {
  background: var(--info-light);
}
.bg-green-100 {
  background: var(--success-light);
}
.bg-orange-100 {
  background: var(--warning-light);
}
.overflow-hidden {
  overflow: hidden;
}
.border-t {
  border-top: 1px solid var(--gray-200);
}
.transition-colors {
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.hover\:underline:hover {
  text-decoration: underline;
}
.hover\:bg-gray-50:hover {
  background: var(--gray-50);
}
.hover\:text-gray-700:hover {
  color: var(--gray-700);
}

/* ========================================
   DARK THEME
   ======================================== */
[data-theme="dark"] {
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;

  --primary-50: #1e1b4b;
  --primary-100: #312e81;
  --primary-200: #4c1d95;
  --primary-300: #6b21a8;
  --primary-400: #7c3aed;
  --primary-500: #8b5cf6;
  --primary-600: #a78bfa;
  --primary-700: #c4b5fd;
  --primary-800: #ddd6fe;
  --primary-900: #ede9fe;
  --primary-950: #f5f3ff;

  --success: #4ade80;
  --success-light: #14532d;
  --warning: #fbbf24;
  --warning-light: #78350f;
  --danger: #f87171;
  --danger-light: #7f1d1d;
  --info: #60a5fa;
  --info-light: #1e3a5f;
}

[data-theme="dark"] body {
  background: #0f172a;
  color: #f1f5f9;
}

[data-theme="dark"] .sidebar {
  background: #0f172a;
  border-right-color: #334155;
}

[data-theme="dark"] .sidebar-header {
  border-bottom-color: #334155;
}

[data-theme="dark"] .nav-link {
  color: #94a3b8;
}

[data-theme="dark"] .nav-link:hover {
  background: #1e293b;
  color: #f1f5f9;
}

[data-theme="dark"] .nav-link.active {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: white;
}

[data-theme="dark"] .sidebar-footer {
  border-top-color: #334155;
  background: #0f172a;
}

[data-theme="dark"] .user-avatar {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
}

[data-theme="dark"] .main-content {
  background: #0f172a;
}

[data-theme="dark"] .top-header {
  background: #1e293b;
  border-bottom-color: #334155;
}

[data-theme="dark"] .page-title {
  color: #f1f5f9;
}

[data-theme="dark"] .search-box input {
  background: #334155;
  border-color: #475569;
  color: #f1f5f9;
}

[data-theme="dark"] .search-box input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .search-results {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .header-btn {
  color: #94a3b8;
}

[data-theme="dark"] .header-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .notification-dropdown {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .flash-message {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .settings-panel {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .panel-header {
  border-bottom-color: #334155;
}

[data-theme="dark"] .btn-secondary {
  background: #334155;
  color: #f1f5f9;
  border-color: #475569;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #475569;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #334155;
  border-color: #475569;
  color: #f1f5f9;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748b;
}

[data-theme="dark"] label {
  color: #e2e8f0;
}

[data-theme="dark"] .text-muted {
  color: #94a3b8 !important;
}

[data-theme="dark"] table {
  background: #1e293b;
}

[data-theme="dark"] th {
  background: #0f172a;
  color: #94a3b8;
  border-color: #334155;
}

[data-theme="dark"] td {
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] tr:hover {
  background: #334155;
}

[data-theme="dark"] .table-container {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .modal-content {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .modal-header {
  border-bottom-color: #334155;
}

[data-theme="dark"] .modal-footer {
  border-top-color: #334155;
}

[data-theme="dark"] .settings-sidebar {
  background: #1e293b;
  border-right-color: #334155;
}

[data-theme="dark"] .settings-nav-link {
  color: #94a3b8;
}

[data-theme="dark"] .settings-nav-link:hover {
  background: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .settings-nav-link.active {
  background: var(--primary-600);
  color: white;
}

[data-theme="dark"] .profile-header {
  border-bottom-color: #334155;
}

[data-theme="dark"] .form-actions {
  border-top-color: #334155;
}

[data-theme="dark"] .role-badge {
  background: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .pipeline-column {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .matter-card {
  background: #334155;
  border-color: #475569;
}

[data-theme="dark"] .matter-card:hover {
  border-color: var(--primary-500);
}

[data-theme="dark"] .dropdown-menu {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .dropdown-item {
  color: #e2e8f0;
}

[data-theme="dark"] .dropdown-item:hover {
  background: #334155;
}

[data-theme="dark"] .badge {
  background: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .stat-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .nav-divider {
  border-color: #334155;
}

[data-theme="dark"] .tabs .tab-btn {
  color: #94a3b8;
}

[data-theme="dark"] .tabs .tab-btn.active {
  color: var(--primary-500);
  border-bottom-color: var(--primary-500);
}

[data-theme="dark"] .empty-state {
  color: #64748b;
}

[data-theme="dark"] .pagination .page-link {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .pagination .page-link:hover {
  background: #334155;
}

[data-theme="dark"] .pagination .page-link.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

/* ========================================
   FALLOUT THEME (Retro CRT Green/Black)
   ======================================== */
[data-theme="fallout"] {
  --fallout-green: #00ff41;
  --fallout-green-dim: #00cc33;
  --fallout-green-dark: #00aa2a;
  --fallout-bg: #0a0a0a;
  --fallout-bg-light: #0d1a0d;
  --fallout-bg-lighter: #102010;
  --fallout-border: #1a3d1a;
  --fallout-text: #00ff41;
  --fallout-text-dim: #00cc33;
  --fallout-glow: 0 0 10px rgba(0, 255, 65, 0.5);
  --fallout-glow-strong: 0 0 20px rgba(0, 255, 65, 0.7);

  --gray-50: #0a0a0a;
  --gray-100: #0d1a0d;
  --gray-200: #1a3d1a;
  --gray-300: #2a5a2a;
  --gray-400: #00aa2a;
  --gray-500: #00cc33;
  --gray-600: #00dd3a;
  --gray-700: #00ee40;
  --gray-800: #00ff41;
  --gray-900: #33ff66;

  --primary-50: #0d1a0d;
  --primary-100: #102010;
  --primary-200: #1a3d1a;
  --primary-300: #2a5a2a;
  --primary-400: #00aa2a;
  --primary-500: #00cc33;
  --primary-600: #00ff41;
  --primary-700: #33ff66;
  --primary-800: #66ff88;
  --primary-900: #99ffaa;
  --primary-950: #ccffcc;

  --success: #00ff41;
  --success-light: #0d1a0d;
  --warning: #ffaa00;
  --warning-light: #1a1500;
  --danger: #ff3333;
  --danger-light: #1a0d0d;
  --info: #00ccff;
  --info-light: #001a1f;
}

[data-theme="fallout"] body {
  background: var(--fallout-bg);
  color: var(--fallout-text);
  font-family: "VT323", "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.5px;
}

/* Fallout CRT scanlines overlay */
[data-theme="fallout"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03),
    rgba(0, 255, 65, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
}

/* CRT flicker effect */
[data-theme="fallout"] body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  z-index: 9998;
}

[data-theme="fallout"] * {
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

[data-theme="fallout"] .sidebar {
  background: var(--fallout-bg-light);
  border-right: 1px solid var(--fallout-border);
  box-shadow: inset -2px 0 10px rgba(0, 255, 65, 0.1);
}

[data-theme="fallout"] .sidebar-header {
  border-bottom: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .logo-text {
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .logo-icon {
  background: transparent;
  border: 2px solid var(--fallout-green);
  color: var(--fallout-green);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .nav-link {
  color: var(--fallout-green-dim);
  border: 1px solid transparent;
}

[data-theme="fallout"] .nav-link:hover {
  background: var(--fallout-bg-lighter);
  color: var(--fallout-green);
  border-color: var(--fallout-border);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .nav-link.active {
  background: var(--fallout-bg-lighter);
  color: var(--fallout-green);
  border: 1px solid var(--fallout-green);
  box-shadow:
    var(--fallout-glow),
    inset 0 0 20px rgba(0, 255, 65, 0.1);
}

[data-theme="fallout"] .nav-link i {
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .sidebar-footer {
  border-top: 1px solid var(--fallout-border);
  background: var(--fallout-bg-light);
}

[data-theme="fallout"] .user-avatar {
  background: transparent;
  border: 2px solid var(--fallout-green);
  color: var(--fallout-green);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .user-name,
[data-theme="fallout"] .user-role {
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .logout-btn {
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .logout-btn:hover {
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .main-content {
  background: var(--fallout-bg);
}

[data-theme="fallout"] .top-header {
  background: var(--fallout-bg-light);
  border-bottom: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .page-title {
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .search-box input {
  background: var(--fallout-bg);
  border: 1px solid var(--fallout-border);
  color: var(--fallout-green);
  font-family: "VT323", monospace;
}

[data-theme="fallout"] .search-box input:focus {
  border-color: var(--fallout-green);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .search-box input::placeholder {
  color: var(--fallout-green-dark);
}

[data-theme="fallout"] .search-box i {
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .search-results {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-border);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .header-btn {
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .header-btn:hover {
  background: var(--fallout-bg-lighter);
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .notification-dropdown {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-green);
  box-shadow: var(--fallout-glow-strong);
}

[data-theme="fallout"] .flash-message {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-border);
  color: var(--fallout-green);
}

[data-theme="fallout"] .flash-success {
  border-color: var(--fallout-green);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .flash-error {
  border-color: #ff3333;
  color: #ff3333;
  text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

[data-theme="fallout"] .dashboard-card,
[data-theme="fallout"] .card,
[data-theme="fallout"] .panel,
[data-theme="fallout"] .settings-panel {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-border);
  box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.05);
}

[data-theme="fallout"] .panel-header {
  border-bottom: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .panel-header h2,
[data-theme="fallout"] .settings-panel h2 {
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .btn {
  font-family: "VT323", monospace;
  font-size: 1.1em;
  letter-spacing: 1px;
  text-transform: uppercase;
}

[data-theme="fallout"] .btn-primary {
  background: transparent;
  border: 2px solid var(--fallout-green);
  color: var(--fallout-green);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .btn-primary:hover {
  background: var(--fallout-green);
  color: var(--fallout-bg);
  box-shadow: var(--fallout-glow-strong);
  text-shadow: none;
}

[data-theme="fallout"] .btn-secondary {
  background: transparent;
  border: 1px solid var(--fallout-border);
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .btn-secondary:hover {
  border-color: var(--fallout-green);
  color: var(--fallout-green);
}

[data-theme="fallout"] .btn-danger {
  background: transparent;
  border: 2px solid #ff3333;
  color: #ff3333;
  text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

[data-theme="fallout"] .btn-danger:hover {
  background: #ff3333;
  color: var(--fallout-bg);
}

[data-theme="fallout"] .form-control,
[data-theme="fallout"] .form-select,
[data-theme="fallout"] input[type="text"],
[data-theme="fallout"] input[type="email"],
[data-theme="fallout"] input[type="password"],
[data-theme="fallout"] input[type="number"],
[data-theme="fallout"] input[type="date"],
[data-theme="fallout"] input[type="tel"],
[data-theme="fallout"] textarea,
[data-theme="fallout"] select {
  background: var(--fallout-bg);
  border: 1px solid var(--fallout-border);
  color: var(--fallout-green);
  font-family: "VT323", monospace;
  font-size: 1.1em;
}

[data-theme="fallout"] .form-control:focus,
[data-theme="fallout"] input:focus,
[data-theme="fallout"] textarea:focus,
[data-theme="fallout"] select:focus {
  border-color: var(--fallout-green);
  box-shadow: var(--fallout-glow);
  outline: none;
}

[data-theme="fallout"] .form-control::placeholder,
[data-theme="fallout"] input::placeholder,
[data-theme="fallout"] textarea::placeholder {
  color: var(--fallout-green-dark);
}

[data-theme="fallout"] label {
  color: var(--fallout-green);
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
}

[data-theme="fallout"] .text-muted {
  color: var(--fallout-green-dim) !important;
}

[data-theme="fallout"] .form-help {
  color: var(--fallout-green-dark);
}

[data-theme="fallout"] table {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-border);
}

[data-theme="fallout"] th {
  background: var(--fallout-bg);
  color: var(--fallout-green);
  border-color: var(--fallout-border);
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="fallout"] td {
  border-color: var(--fallout-border);
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] tr:hover {
  background: var(--fallout-bg-lighter);
}

[data-theme="fallout"] tr:hover td {
  color: var(--fallout-green);
}

[data-theme="fallout"] .table-container {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .modal-content {
  background: var(--fallout-bg-light);
  border: 2px solid var(--fallout-green);
  box-shadow: var(--fallout-glow-strong);
}

[data-theme="fallout"] .modal-header {
  border-bottom: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .modal-header h3,
[data-theme="fallout"] .modal-header h4 {
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .modal-footer {
  border-top: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .settings-sidebar {
  background: var(--fallout-bg-light);
  border-right: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .settings-nav-link {
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .settings-nav-link:hover {
  background: var(--fallout-bg-lighter);
  color: var(--fallout-green);
}

[data-theme="fallout"] .settings-nav-link.active {
  background: var(--fallout-bg-lighter);
  color: var(--fallout-green);
  border-left: 3px solid var(--fallout-green);
  box-shadow: inset 5px 0 20px rgba(0, 255, 65, 0.1);
}

[data-theme="fallout"] .profile-header {
  border-bottom: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .profile-avatar {
  background: transparent;
  border: 2px solid var(--fallout-green);
  color: var(--fallout-green);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .profile-meta h3 {
  color: var(--fallout-green);
}

[data-theme="fallout"] .form-actions {
  border-top: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .role-badge {
  background: transparent;
  border: 1px solid var(--fallout-green);
  color: var(--fallout-green);
}

[data-theme="fallout"] .pipeline-column {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .pipeline-column-header {
  border-bottom: 1px solid var(--fallout-border);
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .matter-card {
  background: var(--fallout-bg);
  border: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .matter-card:hover {
  border-color: var(--fallout-green);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .matter-card-title {
  color: var(--fallout-green);
}

[data-theme="fallout"] .dropdown-menu {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-green);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .dropdown-item {
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .dropdown-item:hover {
  background: var(--fallout-bg-lighter);
  color: var(--fallout-green);
}

[data-theme="fallout"] .badge {
  background: transparent;
  border: 1px solid var(--fallout-green);
  color: var(--fallout-green);
}

[data-theme="fallout"] .stat-card {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-border);
}

[data-theme="fallout"] .stat-card:hover {
  border-color: var(--fallout-green);
  box-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .stat-value {
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .stat-label {
  color: var(--fallout-green-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="fallout"] .nav-divider {
  border-color: var(--fallout-border);
}

[data-theme="fallout"] .tabs .tab-btn {
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .tabs .tab-btn.active {
  color: var(--fallout-green);
  border-bottom-color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] .tabs .tab-btn:hover {
  color: var(--fallout-green);
}

[data-theme="fallout"] .empty-state {
  color: var(--fallout-green-dark);
}

[data-theme="fallout"] .empty-state i {
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .pagination .page-link {
  background: var(--fallout-bg-light);
  border: 1px solid var(--fallout-border);
  color: var(--fallout-green-dim);
}

[data-theme="fallout"] .pagination .page-link:hover {
  border-color: var(--fallout-green);
  color: var(--fallout-green);
}

[data-theme="fallout"] .pagination .page-link.active {
  background: var(--fallout-green);
  border-color: var(--fallout-green);
  color: var(--fallout-bg);
  text-shadow: none;
}

[data-theme="fallout"] a {
  color: var(--fallout-green);
}

[data-theme="fallout"] a:hover {
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] h1,
[data-theme="fallout"] h2,
[data-theme="fallout"] h3,
[data-theme="fallout"] h4,
[data-theme="fallout"] h5,
[data-theme="fallout"] h6 {
  color: var(--fallout-green);
  text-shadow: var(--fallout-glow);
}

[data-theme="fallout"] ::selection {
  background: var(--fallout-green);
  color: var(--fallout-bg);
}

/* Fallout theme scrollbar */
[data-theme="fallout"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

[data-theme="fallout"] ::-webkit-scrollbar-track {
  background: var(--fallout-bg);
}

[data-theme="fallout"] ::-webkit-scrollbar-thumb {
  background: var(--fallout-border);
  border-radius: 4px;
}

[data-theme="fallout"] ::-webkit-scrollbar-thumb:hover {
  background: var(--fallout-green-dark);
}
