/* ============================================================
   EDS App Design System v2.0 — React-Inspired Component Library
   Brand Colors: Dark Deep Blue #0D1B2A, Crimson #DC143C
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand Colors */
  --eds-primary: #07101E;
  --eds-primary-dark: #070F1A;
  --eds-primary-light: #1B2F45;
  --eds-accent: #DC143C;
  --eds-accent-dark: #B01030;
  --eds-accent-light: #FF2E5A;
  --eds-accent-gradient: linear-gradient(135deg, #DC143C, #FF2E5A);
  --eds-dark: #0D1B2A;
  --eds-darker: #070F1A;
  --eds-light: #F0F2F5;
  --eds-blue-bg: #E8EDF3;
  --eds-white: #ffffff;
  --eds-text: #0D1B2A;
  --eds-text-light: #6B7B8D;
  --eds-text-muted: #8FA3B7;
  --eds-success: #10B981;
  --eds-warning: #F59E0B;
  --eds-danger: #DC143C;
  --eds-gray: #6B7B8D;
  --eds-border: rgba(13, 27, 42, 0.1);
  --eds-border-light: rgba(13, 27, 42, 0.06);

  /* Shadows */
  --eds-shadow-xs: 0 2px 4px rgba(13, 27, 42, 0.06);
  --eds-shadow-sm: 0 4px 12px rgba(13, 27, 42, 0.08);
  --eds-shadow-md: 0 6px 20px rgba(13, 27, 42, 0.12);
  --eds-shadow-lg: 0 10px 30px rgba(13, 27, 42, 0.15);
  --eds-shadow-xl: 0 15px 40px rgba(13, 27, 42, 0.2);
  --eds-shadow-accent: 0 6px 20px rgba(220, 20, 60, 0.3);

  /* Radii */
  --eds-radius-sm: 6px;
  --eds-radius-md: 10px;
  --eds-radius-lg: 14px;
  --eds-radius-xl: 18px;
  --eds-radius-full: 50px;

  /* Transitions */
  --eds-transition-fast: 0.15s ease;
  --eds-transition-normal: 0.3s ease;
  --eds-transition-slow: 0.5s ease;

  /* Fonts */
  --eds-font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --eds-font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Z-index layers */
  --eds-z-navbar: 1000;
  --eds-z-sidebar: 900;
  --eds-z-modal: 1050;
  --eds-z-overlay: 9999;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--eds-font-family);
  color: var(--eds-text);
  background: var(--eds-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--eds-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

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

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

/* ===== APP SHELL ===== */
.eds-app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== TOP NAVBAR (React-style) ===== */
.eds-navbar-top {
  background: var(--eds-white);
  border-bottom: 1px solid var(--eds-border-light);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: var(--eds-z-navbar);
  box-shadow: var(--eds-shadow-xs);
}

.eds-navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eds-navbar-logo {
  height: 36px;
  transition: transform var(--eds-transition-fast);
}

.eds-navbar-logo:hover {
  transform: scale(1.05);
}

.eds-navbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eds-primary);
  letter-spacing: -0.01em;
}

.eds-navbar-brand-accent {
  color: var(--eds-accent);
}

.eds-navbar-center {
  display: flex;
  align-items: center;
  gap: 4px;
}

.eds-navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eds-nav-link-top {
  padding: 8px 16px;
  border-radius: var(--eds-radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--eds-text-light);
  transition: all var(--eds-transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eds-nav-link-top:hover {
  background: var(--eds-blue-bg);
  color: var(--eds-primary);
}

.eds-nav-link-top.active {
  background: var(--eds-accent);
  color: var(--eds-white);
  box-shadow: var(--eds-shadow-accent);
}

/* Navbar Profile */
.eds-navbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--eds-radius-md);
  background: var(--eds-blue-bg);
  cursor: pointer;
  transition: all var(--eds-transition-fast);
}

.eds-navbar-profile:hover {
  background: var(--eds-border);
}

.eds-navbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--eds-radius-full);
  background: var(--eds-accent-gradient);
  color: var(--eds-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.eds-navbar-user {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--eds-primary);
}

.eds-navbar-role {
  font-size: 0.7rem;
  color: var(--eds-text-light);
  font-weight: 500;
  line-height: 1.2;
}

.eds-navbar-company {
  font-size: 0.65rem;
  color: var(--eds-accent);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 1px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Navbar date display */
.eds-navbar-date {
  font-size: 0.75rem;
  color: var(--eds-text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-left: 8px;
  border-left: 1px solid var(--eds-border-light);
  white-space: nowrap;
}

.eds-navbar-date i {
  font-size: 0.8rem;
  color: var(--eds-accent);
}

/* ===== PAGE CONTENT ===== */
.eds-page-content {
  flex: 1;
  padding: 24px 32px;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}

/* ===== PAGE HEADER ===== */
.eds-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.eds-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--eds-primary);
  margin: 0;
}

.eds-page-subtitle {
  font-size: 0.85rem;
  color: var(--eds-text-light);
  margin-top: 2px;
}

.eds-page-actions {
  display: flex;
  gap: 10px;
}

/* ===== QUICK ACTION GRID (React-style Dashboard) ===== */
.eds-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.eds-quick-actions .eds-quick-action {
  flex: 0 0 auto;
  width: 130px;
}

.eds-quick-action {
  background: var(--eds-white);
  border: 1px solid var(--eds-border-light);
  border-radius: var(--eds-radius-lg);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--eds-transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.eds-quick-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--eds-accent-gradient);
  transform: scaleX(0);
  transition: transform var(--eds-transition-normal);
}

.eds-quick-action:hover {
  transform: translateY(-4px);
  box-shadow: var(--eds-shadow-lg);
  border-color: var(--eds-accent);
}

.eds-quick-action:hover::before {
  transform: scaleX(1);
}

.eds-quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--eds-radius-md);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(220, 20, 60, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--eds-accent);
  transition: all var(--eds-transition-normal);
}

.eds-quick-action:hover .eds-quick-action-icon {
  background: var(--eds-accent-gradient);
  color: var(--eds-white);
  transform: scale(1.1);
}

.eds-quick-action-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--eds-text);
  line-height: 1.2;
}

.eds-quick-action-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--eds-accent);
  color: var(--eds-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--eds-radius-full);
  min-width: 20px;
  text-align: center;
}

/* ===== STATS GRID ===== */
.eds-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.eds-stat-card {
  background: var(--eds-white);
  border-radius: var(--eds-radius-lg);
  padding: 24px;
  box-shadow: var(--eds-shadow-sm);
  transition: all var(--eds-transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--eds-border-light);
}

.eds-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.eds-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eds-shadow-md);
  border-color: rgba(220, 20, 60, 0.15);
}

.eds-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.eds-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--eds-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.eds-stat-icon.primary { background: rgba(13, 27, 42, 0.1); color: var(--eds-primary); }
.eds-stat-icon.accent { background: rgba(220, 20, 60, 0.1); color: var(--eds-accent); }
.eds-stat-icon.success { background: rgba(16, 185, 129, 0.1); color: var(--eds-success); }
.eds-stat-icon.warning { background: rgba(245, 158, 11, 0.1); color: var(--eds-warning); }

.eds-stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--eds-radius-full);
}

.eds-stat-trend.up { background: rgba(16, 185, 129, 0.1); color: var(--eds-success); }
.eds-stat-trend.down { background: rgba(220, 20, 60, 0.1); color: var(--eds-accent); }

.eds-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--eds-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.eds-stat-label {
  font-size: 0.8rem;
  color: var(--eds-text-light);
  font-weight: 500;
}

/* ===== CARD COMPONENT ===== */
.eds-card {
  background: var(--eds-white);
  border-radius: var(--eds-radius-lg);
  border: 1px solid var(--eds-border-light);
  box-shadow: var(--eds-shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
  transition: all var(--eds-transition-normal);
}

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

.eds-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--eds-border-light);
}

.eds-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eds-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eds-card-actions {
  display: flex;
  gap: 8px;
}

.eds-card-body {
  color: var(--eds-text);
}

/* ===== BUTTONS ===== */
.eds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--eds-radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--eds-transition-fast);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--eds-font-family);
  line-height: 1.4;
}

.eds-btn-primary {
  background: var(--eds-accent-gradient);
  color: var(--eds-white);
  border-color: var(--eds-accent);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.25);
}

.eds-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--eds-shadow-accent);
  color: var(--eds-white);
}

.eds-btn-primary:active {
  transform: translateY(0);
}

.eds-btn-secondary {
  background: var(--eds-white);
  color: var(--eds-primary);
  border-color: var(--eds-border);
}

.eds-btn-secondary:hover {
  background: var(--eds-blue-bg);
  border-color: var(--eds-primary-light);
  transform: translateY(-2px);
}

.eds-btn-outline-accent {
  background: transparent;
  color: var(--eds-accent);
  border-color: var(--eds-accent);
}

.eds-btn-outline-accent:hover {
  background: var(--eds-accent);
  color: var(--eds-white);
  transform: translateY(-2px);
  box-shadow: var(--eds-shadow-accent);
}

.eds-btn-dark {
  background: var(--eds-primary);
  color: var(--eds-white);
  border-color: var(--eds-primary);
}

.eds-btn-dark:hover {
  background: var(--eds-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--eds-shadow-md);
}

.eds-btn-danger {
  background: var(--eds-accent);
  color: var(--eds-white);
  border-color: var(--eds-accent);
}

.eds-btn-danger:hover {
  background: var(--eds-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--eds-shadow-accent);
  color: var(--eds-white);
}

.eds-btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.eds-btn-lg {
  padding: 14px 30px;
  font-size: 0.95rem;
}

.eds-btn-full {
  width: 100%;
}

.eds-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--eds-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Legacy button support - map old names to new */
.btn-primary {
  background: var(--eds-accent-gradient) !important;
  color: var(--eds-white) !important;
  border: 2px solid var(--eds-accent) !important;
  border-radius: var(--eds-radius-md) !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  transition: all var(--eds-transition-fast) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--eds-shadow-accent) !important;
  color: var(--eds-white) !important;
}

/* ===== TABS COMPONENT ===== */
.eds-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--eds-border-light);
  margin-bottom: 24px;
  padding-bottom: 0;
}

.eds-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--eds-text-light);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--eds-transition-fast);
  border-radius: var(--eds-radius-md) var(--eds-radius-md) 0 0;
  position: relative;
  font-family: var(--eds-font-family);
}

.eds-tab:hover {
  color: var(--eds-primary);
  background: var(--eds-blue-bg);
}

.eds-tab.active {
  color: var(--eds-accent);
  background: rgba(220, 20, 60, 0.06);
}

.eds-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--eds-accent);
}

.eds-tab-content {
  animation: edsFadeIn 0.3s ease;
}

/* ===== FORM COMPONENTS ===== */
.eds-form-group {
  margin-bottom: 1.25rem;
}

.eds-form-label {
  display: block;
  font-weight: 600;
  color: var(--eds-primary);
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.eds-form-input,
.eds-form-select,
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--eds-border);
  border-radius: var(--eds-radius-md);
  font-size: 0.88rem;
  font-family: var(--eds-font-family);
  transition: all var(--eds-transition-fast);
  background: var(--eds-white);
  color: var(--eds-text);
}

.eds-form-input:focus,
.eds-form-select:focus,
.form-control:focus {
  outline: none;
  border-color: var(--eds-accent);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.12);
}

.eds-form-input::placeholder {
  color: var(--eds-text-muted);
  opacity: 0.6;
}

/* ===== TABLE COMPONENT ===== */
.eds-table-container {
  overflow-x: auto;
  border-radius: var(--eds-radius-md);
  border: 1px solid var(--eds-border-light);
}

.eds-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--eds-white);
  font-size: 0.85rem;
}

.eds-table th {
  background: var(--eds-primary);
  color: var(--eds-white);
  font-weight: 600;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.eds-table td {
  padding: 10px 16px;
  color: var(--eds-text);
  border-bottom: 1px solid var(--eds-border-light);
  text-align: center;
  vertical-align: middle;
}

.eds-table tr:last-child td {
  border-bottom: none;
}

.eds-table tr:hover td {
  background: rgba(220, 20, 60, 0.03);
}

/* Legacy table-theme support */
.table-theme {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--eds-white);
  border-radius: var(--eds-radius-md);
  overflow: hidden;
  box-shadow: var(--eds-shadow-sm);
  font-size: 0.85rem;
}

.table-theme th {
  background: var(--eds-primary) !important;
  color: var(--eds-white) !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
  text-align: center !important;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-theme td {
  padding: 10px 16px !important;
  color: var(--eds-text) !important;
  border-bottom: 1px solid var(--eds-border-light) !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.table-theme tr:hover td {
  background: rgba(220, 20, 60, 0.03) !important;
}

/* DataTables inside containers - full width */
.dataTables_wrapper {
  width: 100% !important;
}

.dataTables_wrapper .dataTables_scrollHead,
.dataTables_wrapper .dataTables_scrollBody {
  width: 100% !important;
}

table.dataTable {
  width: 100% !important;
}

/* ===== BADGE ===== */
.eds-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--eds-radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.eds-badge-primary { background: var(--eds-primary); color: var(--eds-white); }
.eds-badge-accent { background: var(--eds-accent); color: var(--eds-white); }
.eds-badge-success { background: var(--eds-success); color: var(--eds-white); }
.eds-badge-warning { background: var(--eds-warning); color: var(--eds-white); }
.eds-badge-danger { background: var(--eds-accent); color: var(--eds-white); }

/* ===== MODAL ===== */
.modal-content {
  border: none !important;
  border-radius: var(--eds-radius-lg) !important;
  box-shadow: var(--eds-shadow-xl) !important;
  overflow: hidden;
}

.modal-header {
  background: var(--eds-primary) !important;
  color: var(--eds-white) !important;
  padding: 18px 24px !important;
  border-bottom: none !important;
}

.modal-header .modal-title {
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: var(--eds-white) !important;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modal-body {
  padding: 24px !important;
}

.modal-footer {
  padding: 16px 24px !important;
  border-top: 1px solid var(--eds-border-light) !important;
  gap: 10px;
}

/* ===== TOAST ===== */
.eds-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--eds-radius-md);
  color: var(--eds-white);
  font-weight: 600;
  z-index: var(--eds-z-overlay);
  animation: edsSlideIn 0.3s ease;
  box-shadow: var(--eds-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.eds-toast-success { background: var(--eds-success); }
.eds-toast-error { background: var(--eds-accent); }
.eds-toast-info { background: var(--eds-primary); }
.eds-toast-warning { background: var(--eds-warning); color: var(--eds-white); }

/* ===== LOADING OVERLAY ===== */
.eds-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: var(--eds-z-overlay);
  font-family: var(--eds-font-family);
}

.eds-loader-logo {
  color: var(--eds-white);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.eds-loader-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 30px;
}

.eds-loader-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.eds-loader-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--eds-accent-gradient);
  animation: edsLoad 3s ease-in-out infinite;
  border-radius: 2px;
}

.eds-loader-grid {
  display: grid;
  grid-template-columns: repeat(4, 16px);
  gap: 8px;
  margin-top: 24px;
}

.eds-loader-grid-item {
  width: 16px;
  height: 16px;
  background: rgba(220, 20, 60, 0.2);
  animation: edsPulse 1.5s ease-in-out infinite;
  border-radius: 2px;
}

.eds-loader-grid-item:nth-child(1) { animation-delay: 0s; }
.eds-loader-grid-item:nth-child(2) { animation-delay: 0.2s; }
.eds-loader-grid-item:nth-child(3) { animation-delay: 0.4s; }
.eds-loader-grid-item:nth-child(4) { animation-delay: 0.6s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--eds-light);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--eds-text-light);
}

/* ===== ANIMATIONS ===== */
@keyframes edsFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes edsLoad {
  0% { width: 0%; left: 0; }
  50% { width: 100%; left: 0; }
  100% { width: 0%; left: 100%; }
}

@keyframes edsPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.2); opacity: 1; background: var(--eds-accent); }
}

.eds-fade-in {
  animation: edsFadeIn 0.3s ease;
}

.eds-slide-up {
  animation: edsSlideUp 0.3s ease;
}

/* ===== DIVIDER ===== */
.eds-divider {
  height: 1px;
  background: var(--eds-border-light);
  margin: 24px 0;
}

/* ===== EMPTY STATE ===== */
.eds-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--eds-text-light);
}

.eds-empty-state-icon {
  font-size: 3rem;
  color: var(--eds-border);
  margin-bottom: 16px;
}

.eds-empty-state-text {
  font-size: 1rem;
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .eds-page-content {
    padding: 20px;
  }
  
  .eds-quick-actions {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .eds-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }

  .eds-navbar-center {
    display: none;
  }
}

@media (max-width: 768px) {
  .eds-page-content {
    padding: 16px;
  }
  
  .eds-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .eds-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .eds-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .eds-navbar-top {
    padding: 0 16px;
  }
  
  .eds-navbar-brand {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .eds-quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .eds-quick-action {
    padding: 12px 10px;
  }
  
  .eds-quick-action-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  
  .eds-quick-action-label {
    font-size: 0.68rem;
  }
}

/* ===== PROFILE DROPDOWN ===== */
.eds-profile-dropdown {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--eds-radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 8px 10px -6px rgba(0,0,0,0.1);
  padding: 8px;
  min-width: 220px;
  margin-top: 8px !important;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.eds-profile-dropdown .dropdown-item {
  border-radius: var(--eds-radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--eds-transition-fast);
}

.eds-profile-dropdown .dropdown-item i {
  font-size: 1.15rem;
  color: #94a3b8;
  width: 20px;
  text-align: center;
  transition: all var(--eds-transition-fast);
}

.eds-profile-dropdown .dropdown-item:hover {
  background: rgba(220, 20, 60, 0.15);
  color: var(--eds-white);
}

.eds-profile-dropdown .dropdown-item:hover i {
  color: var(--eds-accent);
}

.eds-profile-dropdown .eds-logout-item {
  color: #f87171;
}

.eds-profile-dropdown .eds-logout-item i {
  color: #f87171;
}

.eds-profile-dropdown .eds-logout-item:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.eds-profile-dropdown .eds-logout-item:hover i {
  color: #fca5a5;
}

.eds-profile-dropdown .dropdown-divider {
  margin: 6px 0;
  opacity: 0.15;
  border-color: rgba(255,255,255,0.1);
}

/* Profile header inside dropdown */
.eds-profile-dropdown-header {
  padding: 8px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 6px;
}

.eds-profile-dropdown-header .name {
  font-weight: 600;
  color: var(--eds-white);
  font-size: 0.95rem;
}

.eds-profile-dropdown-header .role {
  font-size: 0.75rem;
  color: var(--eds-text-light);
  margin-top: 2px;
}

/* Fix dropdown toggle caret - bigger & bolder */
.eds-navbar-profile.dropdown-toggle::after {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  content: "";
  border-top: 6px solid var(--eds-accent);
  border-right: 5px solid transparent;
  border-bottom: 0;
  border-left: 5px solid transparent;
  transition: transform 0.2s ease;
}

.eds-navbar-profile.dropdown-toggle.show::after {
  transform: rotate(180deg);
}

/* ===== SWITCH VIEW DROPDOWN (navbar) ===== */
.eds-switch-view-dropdown {
  margin-right: 12px;
}

.eds-switch-view-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--eds-radius-md);
  background: var(--eds-blue-bg);
  border: 1px solid var(--eds-border-light);
  cursor: pointer;
  transition: all var(--eds-transition-fast);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--eds-primary);
}

.eds-switch-view-trigger:hover {
  background: var(--eds-border);
  border-color: var(--eds-border);
}

.eds-switch-view-trigger i {
  font-size: 0.9rem;
  color: var(--eds-accent);
}

.eds-switch-view-trigger::after {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  content: "";
  border-top: 5px solid var(--eds-accent);
  border-right: 4px solid transparent;
  border-bottom: 0;
  border-left: 4px solid transparent;
  transition: transform 0.2s ease;
}

.eds-switch-view-trigger.dropdown-toggle.show::after {
  transform: rotate(180deg);
}

.eds-switch-view-menu {
  border: 1px solid var(--eds-border);
  border-radius: var(--eds-radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.08);
  padding: 8px;
  min-width: 200px;
  margin-top: 8px !important;
  background: var(--eds-white);
}

.eds-switch-view-menu .dropdown-item {
  border-radius: var(--eds-radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--eds-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--eds-transition-fast);
}

.eds-switch-view-menu .dropdown-item i {
  font-size: 1.2rem;
  color: var(--eds-text-light);
  width: 22px;
  text-align: center;
  transition: all var(--eds-transition-fast);
}

.eds-switch-view-menu .dropdown-item:hover {
  background: var(--eds-blue-bg);
  color: var(--eds-accent);
}

.eds-switch-view-menu .dropdown-item:hover i {
  color: var(--eds-accent);
}

.eds-switch-view-menu .dropdown-item.active {
  background: var(--eds-accent-gradient);
  color: var(--eds-white);
  font-weight: 600;
}

.eds-switch-view-menu .dropdown-item.active i {
  color: var(--eds-white);
}

/* Active indicator dot */
.eds-switch-view-menu .dropdown-item.active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eds-white);
  margin-left: auto;
}

/* ===== LANDING PAGE SPECIFIC ===== */

/* Hero Section */
.eds-hero {
  background: linear-gradient(135deg, var(--eds-darker) 0%, var(--eds-primary) 50%, var(--eds-primary-light) 100%);
  color: var(--eds-white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.eds-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(220,20,60,0.05)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}

.eds-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220,20,60,0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  z-index: 0;
}

.eds-hero-content {
  position: relative;
  z-index: 1;
}

.eds-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 20, 60, 0.15);
  color: var(--eds-accent);
  padding: 6px 16px;
  border-radius: var(--eds-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(220, 20, 60, 0.2);
}

.eds-hero h1 {
  font-size: 3.2rem;
  margin-bottom: 16px;
  color: var(--eds-white);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eds-hero h1 .highlight {
  background: var(--eds-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eds-hero p {
  font-size: 1.1rem;
  max-width: 540px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.eds-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.eds-hero-btn-primary {
  background: var(--eds-accent-gradient);
  color: var(--eds-white);
  border: none;
  padding: 14px 32px;
  border-radius: var(--eds-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--eds-transition-normal);
  box-shadow: var(--eds-shadow-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--eds-font-family);
}

.eds-hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
  color: var(--eds-white);
}

.eds-hero-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--eds-white);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 32px;
  border-radius: var(--eds-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--eds-transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--eds-font-family);
}

.eds-hero-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  color: var(--eds-white);
}

/* Landing Features */
.eds-features {
  padding: 80px 0;
  background: var(--eds-white);
}

.eds-features-dark {
  padding: 80px 0;
  background: var(--eds-primary);
  color: var(--eds-white);
}

.eds-features h2, .eds-features-dark h2 {
  text-align: center;
  margin-bottom: 16px;
}

.eds-features-dark h2 {
  color: var(--eds-white);
}

.eds-section-desc {
  text-align: center;
  color: var(--eds-text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

.eds-features-dark .eds-section-desc {
  color: rgba(255,255,255,0.6);
}

.eds-feature-card {
  padding: 32px 24px;
  border-radius: var(--eds-radius-lg);
  transition: all var(--eds-transition-normal);
  background: var(--eds-white);
  border: 1px solid var(--eds-border-light);
  height: 100%;
  text-align: center;
}

.eds-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--eds-shadow-lg);
  border-color: rgba(220, 20, 60, 0.15);
}

.eds-feature-card-dark {
  padding: 32px 24px;
  border-radius: var(--eds-radius-lg);
  transition: all var(--eds-transition-normal);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  height: 100%;
  text-align: center;
}

.eds-feature-card-dark:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(220, 20, 60, 0.3);
}

.eds-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--eds-radius-md);
  background: linear-gradient(135deg, rgba(220,20,60,0.1), rgba(220,20,60,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--eds-accent);
  margin: 0 auto 16px;
}

.eds-feature-card-dark .eds-feature-icon {
  background: rgba(220,20,60,0.15);
}

.eds-feature-card h4, .eds-feature-card-dark h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.eds-feature-card-dark h4 {
  color: var(--eds-white);
}

.eds-feature-card p, .eds-feature-card-dark p {
  font-size: 0.88rem;
  color: var(--eds-text-light);
  line-height: 1.6;
  margin: 0;
}

.eds-feature-card-dark p {
  color: rgba(255,255,255,0.6);
}

/* Landing CTA */
.eds-cta {
  background: linear-gradient(135deg, var(--eds-primary), var(--eds-primary-light));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.eds-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.05;
  z-index: 0;
}

.eds-cta-content {
  position: relative;
  z-index: 1;
}

.eds-cta h2 {
  color: var(--eds-white);
  font-size: 2rem;
  margin-bottom: 12px;
}

.eds-cta p {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

/* Landing Footer */
.eds-landing-footer {
  background: var(--eds-darker);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 24px;
}

.eds-landing-footer h5 {
  color: var(--eds-white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.eds-landing-footer a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: all var(--eds-transition-fast);
}

.eds-landing-footer a:hover {
  color: var(--eds-accent);
  padding-left: 2px;
}

.eds-landing-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eds-landing-footer ul li {
  margin-bottom: 8px;
}

.eds-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.82rem;
}
