/* =========================================================
   EasyOffice — Main Stylesheet
   Design: Refined Corporate, Navy/White, Outfit font
   ========================================================= */
:root {
  --eo-primary: #1e3a5f;
  --eo-primary-light: #274d7c;
  --eo-accent: #2196f3;
  --eo-accent-hover: #1976d2;
  --eo-sidebar-w: 260px;
  --eo-topbar-h: 60px;
  --eo-bg: #f4f6fa;
  --eo-surface: #ffffff;
  --eo-border: #e2e8f0;
  --eo-text: #1e293b;
  --eo-text-muted: #64748b;
  --eo-text-light: #94a3b8;
  --eo-success: #10b981;
  --eo-warning: #f59e0b;
  --eo-danger: #ef4444;
  --eo-info: #3b82f6;
  --eo-radius: 12px;
  --eo-radius-sm: 8px;
  --eo-shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.06);
  --eo-shadow-md: 0 4px 20px rgba(0,0,0,.1);
  --eo-font: 'Outfit', system-ui, sans-serif;
  --eo-mono: 'JetBrains Mono', monospace;
  --eo-transition: .18s ease;

  /* New layout helpers */
  --eo-page-pad-x: 28px;
  --eo-page-pad-y: 28px;
  --eo-content-max: none;
}

[data-bs-theme="dark"] {
  --eo-primary: #1e3a5f;
  --eo-bg: #0f172a;
  --eo-surface: #1e293b;
  --eo-border: #334155;
  --eo-text: #f1f5f9;
  --eo-text-muted: #94a3b8;
}

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

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: var(--eo-font);
  background: var(--eo-bg);
  color: var(--eo-text);
  margin: 0;
}

.eo-body {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

/* ===================== SIDEBAR ===================== */
.eo-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--eo-sidebar-w);
  min-width: var(--eo-sidebar-w);
  max-width: var(--eo-sidebar-w);
  background: var(--eo-primary);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform var(--eo-transition);
  overflow: hidden;
}
.eo-sidebar.collapsed { transform: translateX(calc(-1 * var(--eo-sidebar-w))); }

.eo-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.eo-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.eo-brand-name {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.eo-brand-tagline {
  display: block;
  font-size: .65rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.eo-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}
.eo-nav::-webkit-scrollbar { width: 4px; }
.eo-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }

.eo-nav-section { margin-bottom: 8px; }
.eo-nav-label {
  display: block;
  padding: 8px 20px 4px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
}
.eo-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 450;
  transition: all var(--eo-transition);
  position: relative;
  border-radius: 0;
}
.eo-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.eo-nav-link.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  font-weight: 600;
}
.eo-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--eo-accent);
  border-radius: 0 3px 3px 0;
}
.eo-nav-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.eo-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eo-badge-danger { background: var(--eo-danger); }
.eo-badge-warning { background: var(--eo-warning); color: #000; }

.eo-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.eo-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--eo-radius-sm);
  text-decoration: none;
  transition: background var(--eo-transition);
}
.eo-user-pill:hover { background: rgba(255,255,255,.08); }
.eo-user-name {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
}
.eo-user-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  color: rgba(255,255,255,.5);
}
.eo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.eo-user-status.online .eo-dot { background: var(--eo-success); }
.eo-user-info { min-width: 0; }

/* ===================== TOPBAR ===================== */
.eo-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--eo-sidebar-w);
  height: var(--eo-topbar-h);
  background: var(--eo-surface);
  border-bottom: 1px solid var(--eo-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1030;
  transition: left var(--eo-transition), width var(--eo-transition);
  width: calc(100% - var(--eo-sidebar-w));
}
.eo-topbar.expanded {
  left: 0;
  width: 100%;
}
.eo-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.eo-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.eo-sidebar-toggle {
  background: none;
  border: none;
  padding: 6px 8px;
  font-size: 1.3rem;
  color: var(--eo-text-muted);
  cursor: pointer;
  border-radius: var(--eo-radius-sm);
  transition: all var(--eo-transition);
}
.eo-sidebar-toggle:hover { background: var(--eo-bg); color: var(--eo-text); }

.eo-breadcrumb {
  font-size: .83rem;
  color: var(--eo-text-muted);
  min-width: 0;
}

.eo-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--eo-bg);
  border: 1px solid var(--eo-border);
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color var(--eo-transition);
  min-width: 240px;
  width: clamp(240px, 26vw, 380px);
}
.eo-search-wrap:focus-within { border-color: var(--eo-accent); }
.eo-search-wrap i { color: var(--eo-text-light); font-size: .9rem; }
.eo-search-input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--eo-font);
  font-size: .85rem;
  color: var(--eo-text);
  width: 100%;
}

.eo-icon-btn {
  position: relative;
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eo-text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--eo-transition);
}
.eo-icon-btn:hover { background: var(--eo-bg); color: var(--eo-text); }

.eo-notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--eo-danger);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eo-user-btn {
  display: flex;
  align-items: center;
  background: none;
  border: 1px solid var(--eo-border);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--eo-transition);
}
.eo-user-btn:hover { border-color: var(--eo-accent); }

/* ===================== AVATARS ===================== */
.eo-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.eo-avatar-initials-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--eo-accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.eo-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--eo-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eo-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.eo-avatar-initials-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--eo-primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== MAIN CONTENT ===================== */
.eo-main {
  margin-left: var(--eo-sidebar-w);
  margin-top: var(--eo-topbar-h);
  min-height: calc(100vh - var(--eo-topbar-h));
  width: calc(100% - var(--eo-sidebar-w));
  max-width: none;
  padding: var(--eo-page-pad-y) var(--eo-page-pad-x);
  transition: margin-left var(--eo-transition), width var(--eo-transition);
}
.eo-main.expanded {
  margin-left: 0;
  width: 100%;
}

/* make sure inner bootstrap wrappers do not stay too narrow */
.eo-main > .container,
.eo-main > .container-fluid,
.eo-main .container,
.eo-main .container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* better use of wide screens */
.eo-main .row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

/* ===================== CARDS ===================== */
.eo-card {
  background: var(--eo-surface);
  border: 1px solid var(--eo-border);
  border-radius: var(--eo-radius);
  padding: 24px;
  box-shadow: var(--eo-shadow);
  width: 100%;
}
.eo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--eo-border);
}
.eo-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--eo-text);
  margin: 0;
}
.eo-card-subtitle {
  font-size: .8rem;
  color: var(--eo-text-muted);
  margin: 4px 0 0;
}

/* Stat cards */
.eo-stat {
  background: var(--eo-surface);
  border: 1px solid var(--eo-border);
  border-radius: var(--eo-radius);
  padding: 20px 24px;
  box-shadow: var(--eo-shadow);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 132px;
}
.eo-stat::after {
  content: '';
  position: absolute;
  right: -16px;
  top: -16px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: currentColor;
  opacity: .06;
}
.eo-stat-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--eo-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.eo-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0 4px;
}
.eo-stat-change {
  font-size: .78rem;
  color: var(--eo-text-muted);
}
.eo-stat-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  opacity: .15;
}
.eo-stat-primary { color: var(--eo-primary); border-left: 4px solid var(--eo-primary); }
.eo-stat-success { color: var(--eo-success); border-left: 4px solid var(--eo-success); }
.eo-stat-warning { color: var(--eo-warning); border-left: 4px solid var(--eo-warning); }
.eo-stat-danger { color: var(--eo-danger); border-left: 4px solid var(--eo-danger); }
.eo-stat-info { color: var(--eo-info); border-left: 4px solid var(--eo-info); }

/* ===================== PAGE HEADER ===================== */
.eo-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  width: 100%;
}
.eo-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--eo-text);
  margin: 0;
}
.eo-page-subtitle {
  font-size: .85rem;
  color: var(--eo-text-muted);
  margin: 4px 0 0;
  max-width: 900px;
}

/* ===================== ALERTS ===================== */
.eo-alerts { margin-bottom: 20px; }
.eo-alert {
  border-radius: var(--eo-radius-sm);
  border: none;
  font-size: .88rem;
}

/* ===================== BADGES / STATUS ===================== */
.eo-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.eo-status-todo { background: #f1f5f9; color: var(--eo-text-muted); }
.eo-status-in_progress { background: #dbeafe; color: #1d4ed8; }
.eo-status-review { background: #fef3c7; color: #92400e; }
.eo-status-done { background: #d1fae5; color: #065f46; }
.eo-status-cancelled { background: #fee2e2; color: #991b1b; }
.eo-status-on_hold { background: #f3f4f6; color: #6b7280; }
.eo-status-planning { background: #e0e7ff; color: #3730a3; }
.eo-status-active { background: #d1fae5; color: #065f46; }
.eo-status-completed { background: #dbeafe; color: #1e40af; }
.eo-status-blocked { background: #fee2e2; color: #991b1b; }

.eo-priority {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 600;
}
.eo-priority-low { color: var(--eo-text-muted); }
.eo-priority-medium { color: #f59e0b; }
.eo-priority-high { color: #ef4444; }
.eo-priority-urgent { color: #dc2626; }
.eo-priority-critical { color: #991b1b; }

/* ===================== TASK CARD ===================== */
.eo-task-card {
  background: var(--eo-surface);
  border: 1px solid var(--eo-border);
  border-radius: var(--eo-radius-sm);
  padding: 16px;
  transition: all var(--eo-transition);
  cursor: pointer;
  position: relative;
  width: 100%;
}
.eo-task-card:hover {
  border-color: var(--eo-accent);
  box-shadow: var(--eo-shadow-md);
  transform: translateY(-1px);
}
.eo-task-card.overdue { border-left: 3px solid var(--eo-danger); }
.eo-task-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--eo-text);
  margin-bottom: 6px;
}
.eo-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.eo-task-due {
  font-size: .75rem;
  color: var(--eo-text-muted);
}
.eo-task-due.overdue {
  color: var(--eo-danger);
  font-weight: 600;
}

/* ===================== PROGRESS BAR ===================== */
.eo-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--eo-border);
  overflow: hidden;
  width: 100%;
}
.eo-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--eo-accent);
  transition: width .5s ease;
}
.eo-progress-bar.success { background: var(--eo-success); }
.eo-progress-bar.warning { background: var(--eo-warning); }
.eo-progress-bar.danger { background: var(--eo-danger); }

/* ===================== NOTIFICATIONS DROPDOWN ===================== */
.eo-notif-dropdown {
  width: 360px;
  max-width: min(92vw, 360px);
  padding: 0;
  border: 1px solid var(--eo-border);
  border-radius: var(--eo-radius);
}
.eo-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--eo-border);
  font-size: .88rem;
  font-weight: 600;
}
.eo-notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--eo-text);
  transition: background var(--eo-transition);
}
.eo-notif-item:hover { background: var(--eo-bg); }
.eo-notif-item.unread { background: #eff6ff; }
.eo-notif-item.unread:hover { background: #dbeafe; }
.eo-notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}
.eo-notif-task { background: #dbeafe; color: #1d4ed8; }
.eo-notif-project { background: #d1fae5; color: #065f46; }
.eo-notif-message { background: #ede9fe; color: #6d28d9; }
.eo-notif-it { background: #fef3c7; color: #92400e; }
.eo-notif-system { background: #f3f4f6; color: #374151; }
.eo-notif-title { font-size: .82rem; font-weight: 600; margin: 0; }
.eo-notif-msg { font-size: .78rem; color: var(--eo-text-muted); margin: 2px 0 0; }
.eo-notif-time { font-size: .68rem; color: var(--eo-text-light); }
.eo-notif-empty {
  text-align: center;
  padding: 24px;
  color: var(--eo-text-muted);
  font-size: .85rem;
}
.eo-notif-empty i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 8px;
}
.eo-notif-footer {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: .82rem;
  color: var(--eo-accent);
  text-decoration: none;
  border-top: 1px solid var(--eo-border);
}
.eo-notif-footer:hover { background: var(--eo-bg); }

/* ===================== FORMS ===================== */
.eo-form-group { margin-bottom: 20px; }
.eo-form-label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--eo-text);
  margin-bottom: 6px;
  display: block;
}
.eo-form-control, .eo-form-select {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--eo-border);
  border-radius: var(--eo-radius-sm);
  font-family: var(--eo-font);
  font-size: .88rem;
  color: var(--eo-text);
  background: var(--eo-surface);
  transition: border-color var(--eo-transition);
  outline: none;
}
.eo-form-control:focus, .eo-form-select:focus {
  border-color: var(--eo-accent);
  box-shadow: 0 0 0 3px rgba(33,150,243,.12);
}
.eo-form-hint {
  font-size: .75rem;
  color: var(--eo-text-muted);
  margin-top: 4px;
}

/* ===================== BUTTONS ===================== */
.eo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--eo-radius-sm);
  font-family: var(--eo-font);
  font-size: .87rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--eo-transition);
  line-height: 1.4;
}
.eo-btn-primary { background: var(--eo-accent); color: #fff; }
.eo-btn-primary:hover { background: var(--eo-accent-hover); color: #fff; }
.eo-btn-secondary {
  background: var(--eo-bg);
  color: var(--eo-text);
  border: 1px solid var(--eo-border);
}
.eo-btn-secondary:hover {
  border-color: var(--eo-accent);
  color: var(--eo-accent);
}
.eo-btn-danger { background: var(--eo-danger); color: #fff; }
.eo-btn-success { background: var(--eo-success); color: #fff; }
.eo-btn-sm {
  padding: 5px 12px;
  font-size: .8rem;
}
.eo-btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: var(--eo-radius-sm);
}
.eo-btn[disabled], .eo-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ===================== TABLE ===================== */
.eo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}
.eo-table th {
  padding: 10px 14px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--eo-text-muted);
  border-bottom: 2px solid var(--eo-border);
  text-align: left;
}
.eo-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--eo-border);
  vertical-align: middle;
}
.eo-table tbody tr {
  transition: background var(--eo-transition);
}
.eo-table tbody tr:hover { background: var(--eo-bg); }
.eo-table tbody tr:last-child td { border-bottom: none; }

/* ===================== TIMELINE ===================== */
.eo-timeline {
  position: relative;
  padding-left: 28px;
}
.eo-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--eo-border);
}
.eo-timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.eo-timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--eo-accent);
  border: 2px solid var(--eo-surface);
}
.eo-timeline-body {
  background: var(--eo-bg);
  border-radius: var(--eo-radius-sm);
  padding: 12px 16px;
}
.eo-timeline-time {
  font-size: .72rem;
  color: var(--eo-text-light);
  margin-bottom: 4px;
}

/* ===================== LOGIN PAGE ===================== */
.eo-login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, var(--eo-primary) 0%, #0f2d52 50%, #1a1a2e 100%);
}
.eo-login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.eo-login-right {
  width: 440px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
}
.eo-login-logo {
  text-align: center;
  margin-bottom: 40px;
}
.eo-login-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--eo-primary);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.eo-login-logo-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--eo-primary);
}
.eo-login-form { width: 100%; }
.eo-login-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--eo-text);
  margin-bottom: 6px;
}
.eo-login-subtitle {
  font-size: .87rem;
  color: var(--eo-text-muted);
  margin-bottom: 28px;
}
.eo-login-hero-text { position: relative; z-index: 1; }
.eo-login-hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.eo-login-hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}
.eo-login-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eo-login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}
.eo-login-feature i {
  font-size: 1.1rem;
  color: #64b5f6;
}
.eo-grid-bg {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ===================== CHAT ===================== */
.eo-chat-layout {
  display: flex;
  height: calc(100vh - var(--eo-topbar-h) - 56px);
  gap: 0;
  overflow: hidden;
  background: var(--eo-surface);
  border-radius: var(--eo-radius);
  border: 1px solid var(--eo-border);
}
.eo-chat-sidebar {
  width: 280px;
  border-right: 1px solid var(--eo-border);
  display: flex;
  flex-direction: column;
}
.eo-chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--eo-border);
}
.eo-chat-list {
  flex: 1;
  overflow-y: auto;
}
.eo-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--eo-transition);
  text-decoration: none;
  color: var(--eo-text);
}
.eo-chat-item:hover,
.eo-chat-item.active { background: var(--eo-bg); }
.eo-chat-item-name { font-size: .87rem; font-weight: 600; }
.eo-chat-item-preview { font-size: .77rem; color: var(--eo-text-muted); }
.eo-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.eo-chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--eo-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eo-chat-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.eo-chat-bubble.own { flex-direction: row-reverse; }
.eo-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .87rem;
  line-height: 1.5;
}
.eo-bubble-in {
  background: var(--eo-bg);
  color: var(--eo-text);
  border-bottom-left-radius: 4px;
}
.eo-bubble-out {
  background: var(--eo-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.eo-bubble-time {
  font-size: .65rem;
  color: var(--eo-text-light);
  margin-top: 4px;
}
.eo-chat-input-area {
  padding: 14px 20px;
  border-top: 1px solid var(--eo-border);
  display: flex;
  gap: 10px;
  align-items: center;
}
.eo-chat-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--eo-border);
  border-radius: 24px;
  font-family: var(--eo-font);
  font-size: .88rem;
  outline: none;
  resize: none;
}
.eo-chat-input:focus { border-color: var(--eo-accent); }
.eo-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--eo-accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--eo-transition);
}
.eo-chat-send:hover {
  background: var(--eo-accent-hover);
  transform: scale(1.05);
}

/* ===================== ORG CHART ===================== */
.eo-dept-card {
  border: 1px solid var(--eo-border);
  border-radius: var(--eo-radius);
  overflow: hidden;
}
.eo-dept-header {
  padding: 14px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.eo-dept-body { padding: 16px; }
.eo-unit-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--eo-bg);
  border-radius: var(--eo-radius-sm);
  font-size: .85rem;
  margin-bottom: 8px;
}

/* ===================== LARGE SCREEN IMPROVEMENTS ===================== */
@media (min-width: 1400px) {
  :root {
    --eo-page-pad-x: 36px;
    --eo-page-pad-y: 30px;
  }

  .eo-page-title { font-size: 1.7rem; }

  .eo-stat-value { font-size: 2.15rem; }

  .eo-card {
    padding: 26px;
  }
}

@media (min-width: 1800px) {
  :root {
    --eo-page-pad-x: 44px;
    --eo-page-pad-y: 34px;
  }

  .eo-search-wrap {
    width: 420px;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  .eo-sidebar {
    transform: translateX(calc(-1 * var(--eo-sidebar-w)));
  }
  .eo-sidebar.mobile-open {
    transform: translateX(0);
  }

  .eo-topbar {
    left: 0;
    width: 100%;
    padding: 0 16px;
  }

  .eo-main {
    margin-left: 0;
    width: 100%;
    padding: 20px 16px 24px;
  }

  .eo-login-left { display: none; }
  .eo-login-right { width: 100%; }
  .eo-search-wrap { display: none; }

  .eo-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .eo-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}