/* SER Hub - Staff Portal Styles */
/* Clean minimal white design with IEP Momentum amber/teal accents */

:root {
  /* Minimal white palette */
  --hub-sidebar-bg: #ffffff;
  --hub-sidebar-hover: #fdf8f3;
  --hub-sidebar-active: rgba(245, 166, 35, 0.12);
  --hub-sidebar-border: #e8ebe8;

  /* IEP Momentum brand colors */
  --hub-accent: #F5A623;
  --hub-accent-dark: #124C51;
  --hub-accent-light: #ffd27a;
  
  /* Text colors */
  --hub-text-primary: #1a1a1a;
  --hub-text-secondary: #6b7280;
  --hub-text-muted: #9ca3af;
  
  /* Layout colors */
  --hub-content-bg: #fafafa;
  --hub-card-bg: #ffffff;
  --hub-border: #e5e7eb;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, SF Pro Display, Segoe UI, Roboto, sans-serif;
  background: var(--hub-content-bg);
  color: var(--hub-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Sidebar - Clean White */
.hub-sidebar {
  width: 260px;
  background: var(--hub-sidebar-bg);
  border-right: 1px solid var(--hub-sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.hub-logo {
  padding: 20px;
  border-bottom: 1px solid var(--hub-sidebar-border);
}

.hub-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.hub-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--hub-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-logo-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.hub-logo-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hub-accent-dark);
  display: block;
}

.hub-logo-sub {
  font-size: 11px;
  color: var(--hub-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation - Minimal */
.hub-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--hub-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 16px 12px 8px;
  margin-top: 8px;
}

.nav-section-label:first-child {
  margin-top: 0;
  padding-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--hub-text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  margin: 2px 0;
  border-left: 3px solid transparent;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
  stroke: var(--hub-text-secondary);
}

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

.nav-item:hover svg {
  opacity: 0.8;
}

.nav-item.active {
  background: var(--hub-sidebar-active);
  color: var(--hub-accent-dark);
  border-left-color: var(--hub-accent);
  font-weight: 600;
}

.nav-item.active svg {
  opacity: 1;
  stroke: var(--hub-accent);
}

/* Sidebar Footer - Light */
.hub-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--hub-sidebar-border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--hub-sidebar-bg);
}

.hub-user-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.hub-user-card:hover {
  background: var(--hub-sidebar-hover);
}

.hub-avatar {
  width: 36px;
  height: 36px;
  background: var(--hub-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.hub-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.hub-user-role {
  font-size: 11px;
  color: var(--hub-text-muted);
}

.hub-logout {
  padding: 8px;
  border-radius: 6px;
  color: var(--hub-text-muted);
  transition: all 0.15s;
}

.hub-logout:hover {
  background: #fee2e2;
  color: #dc2626;
}

.hub-logout svg {
  width: 20px;
  height: 20px;
}
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.hub-user-card:hover {
  background: var(--hub-sidebar-hover);
}

.hub-avatar {
  width: 36px;
  height: 36px;
  background: var(--hub-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.hub-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.hub-user-role {
  font-size: 11px;
  color: var(--hub-text-muted);
}

.hub-logout {
  padding: 8px;
  color: var(--hub-text-muted);
  border-radius: 6px;
  transition: all 0.15s;
}

.hub-logout:hover {
  background: rgba(239,68,68,0.2);
  color: #f87171;
}

.hub-logout svg {
  width: 20px;
  height: 20px;
}

/* Main Content */
.hub-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hub-topbar {
  background: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--hub-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hub-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #64748b;
  border-radius: 6px;
}

.hub-menu-toggle:hover {
  background: #f1f5f9;
}

.hub-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.hub-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
}

.hub-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-content {
  flex: 1;
  padding: 24px;
}

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

/* Cards */
.card {
  background: var(--hub-card-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--hub-border);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--hub-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--hub-accent-light);
}

.btn-outline {
  background: white;
  border: 1px solid var(--hub-border);
  color: #475569;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hub-border);
}

th {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
}

td {
  font-size: 14px;
  color: #334155;
}

tr:hover {
  background: #f8fafc;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--hub-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--hub-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: #64748b;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--hub-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--hub-border);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

.stat-change {
  font-size: 12px;
  margin-top: 4px;
}

.stat-change.positive { color: #10b981; }
.stat-change.negative { color: #ef4444; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Role Badges */
.role-badge {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: capitalize;
}

.role-badge.role-owner { background: #fef3c7; color: #92400e; }
.role-badge.role-super_admin { background: #ede9fe; color: #5b21b6; }
.role-badge.role-admin { background: #dbeafe; color: #1e40af; }
.role-badge.role-educator { background: #d1fae5; color: #065f46; }
.role-badge.role-tutor { background: #e0f2fe; color: #075985; }
.role-badge.role-member { background: #f1f5f9; color: #475569; }

/* Avatar Circle - for existing templates */
.avatar-circle {
  width: 32px;
  height: 32px;
  background: var(--hub-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .hub-sidebar {
    transform: translateX(-100%);
  }
  
  .hub-sidebar.open {
    transform: translateX(0);
  }
  
  .hub-overlay.show {
    display: block;
  }
  
  .hub-main {
    margin-left: 0;
  }
  
  .hub-menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hub-content {
    padding: 16px;
  }
  
  .hub-topbar {
    padding: 12px 16px;
  }
  
  .hub-page-title {
    font-size: 16px;
  }
}

/* Flash Messages */
.flash-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  animation: slideIn 0.3s ease;
}

.flash-toast.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash-toast.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

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

/* Form Group */
.form-group {
  margin-bottom: 16px;
}

/* Alert boxes */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-info {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* Dashboard specific styles */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--hub-border);
}

.metric-icon {
  width: 40px;
  height: 40px;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--hub-accent);
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0;
}

.metric-delta {
  font-size: 12px;
  font-weight: 500;
}

.metric-delta.up {
  color: #10b981;
}

.metric-delta.down {
  color: #ef4444;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Card styles */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hub-border);
}

.card-body {
  padding: 20px;
}

/* Activity feed */
.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-dot.blue {
  background: #3b82f6;
}

.activity-dot.orange {
  background: #f59e0b;
}

.activity-dot.red {
  background: #ef4444;
}

.activity-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.activity-text strong {
  font-weight: 600;
  color: #0f172a;
}

.activity-time {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Button variants */
.btn-lime {
  background: var(--hub-accent);
  color: white;
}

.btn-lime:hover {
  background: var(--hub-accent-light);
}

.w-full {
  width: 100%;
}

/* Truncate */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Additional utility classes */
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.text-muted { color: #64748b; font-size: 13px; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Filters and search */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search-bar {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.search-bar input {
  padding-left: 36px;
}

.search-bar svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 16px;
  height: 16px;
}

.form-control {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: white;
  min-width: 120px;
}

.form-control:focus {
  outline: none;
  border-color: var(--hub-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Table wrapper */
.table-wrapper {
  overflow-x: auto;
}

/* Badge colors */
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }

/* Topbar subtitle */
.topbar-subtitle {
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
  margin-left: 12px;
}

/* Page header with actions */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header-actions {
  display: flex;
  gap: 12px;
}

/* Community / posts styles */
.post-card {
  background: white;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-content {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

.post-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* Resource cards */
.resource-card {
  background: white;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.resource-icon {
  width: 48px;
  height: 48px;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hub-accent);
  flex-shrink: 0;
}

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

.resource-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.resource-meta {
  font-size: 12px;
  color: #64748b;
}

/* Audit log specific */
.log-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-action {
  font-weight: 600;
  color: #0f172a;
}

.log-details {
  font-size: 13px;
  color: #64748b;
}

.log-time {
  font-size: 12px;
  color: #94a3b8;
  margin-left: auto;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #cbd5e1;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: #64748b;
}

/* Quill Editor Styles */
#quillEditor {
  min-height: 180px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ql-toolbar.ql-snow {
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: var(--gray-50);
}
.ql-container.ql-snow {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  min-height: 150px;
  font-size: 14px;
}
.ql-editor {
  min-height: 150px;
}
.ql-editor.ql-blank::before {
  color: var(--gray-400);
  font-style: normal;
}

/* Fix Quill editor visibility */
#quillEditor .ql-editor {
  min-height: 150px !important;
  background: white !important;
}
#quillEditor .ql-toolbar {
  display: block !important;
  background: #f8faf9 !important;
}
#quillEditor .ql-container {
  display: block !important;
  min-height: 150px !important;
}

/* Updated button styles for minimal design */
.btn-lime {
  background: var(--hub-accent) !important;
  color: white !important;
  border: none !important;
}

.btn-lime:hover {
  background: var(--hub-accent-dark) !important;
}

/* Topbar clean */
.hub-topbar {
  background: white;
  border-bottom: 1px solid var(--hub-border);
}

.hub-page-title {
  color: var(--hub-accent-dark);
}

/* Card styles */
.card, .metric-card {
  background: white;
  border: 1px solid var(--hub-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card-header {
  border-bottom: 1px solid var(--hub-border);
}

.card-title {
  color: var(--hub-accent-dark);
}

/* Logo adjustments */
.hub-logo {
  padding: 16px 20px;
  background: white;
}

.hub-logo img {
  height: 50px !important;
  width: auto !important;
}

/* Bigger logo */
.hub-logo img {
  height: 80px !important;
  width: auto !important;
  margin: 10px auto !important;
  display: block !important;
}

/* Even bigger logo */
.hub-logo img {
  height: 110px !important;
}

.hub-logo {
  padding: 20px !important;
}

/* Larger logo, less padding */
.hub-logo {
  padding: 10px 16px !important;
}

.hub-logo img {
  height: 140px !important;
  margin: 0 auto !important;
}

/* Max size logo, minimal padding */
.hub-logo {
  padding: 5px 12px !important;
}

.hub-logo img {
  height: 180px !important;
  margin: 0 auto !important;
}

/* Zero padding around logo */
.hub-logo {
  padding: 0 !important;
  margin: 0 !important;
}

.hub-logo img {
  margin: 0 auto !important;
  display: block !important;
}

/* Balanced logo size and spacing */
.hub-logo {
  padding: 16px 20px !important;
}

.hub-logo img {
  height: 70px !important;
}

/* Hide section labels */
.nav-section-label {
  display: none !important;
}

/* Tighter nav item spacing */
.nav-item {
  padding: 7px 12px !important;
  margin: 1px 0 !important;
  font-size: 13px !important;
}

.nav-item svg {
  width: 18px !important;
  height: 18px !important;
}

/* Tighter nav container */
.hub-nav {
  padding: 12px 10px !important;
}

/* Collapsible Navigation Sections */
.nav-section {
  margin: 4px 0;
}

.nav-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: var(--hub-text-secondary);
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
  user-select: none;
}

.nav-section-header:hover {
  background: var(--hub-sidebar-hover);
  color: var(--hub-text-primary);
}

.nav-section-header svg:first-child {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.nav-section-header .nav-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0.4;
  transition: transform 0.2s ease;
}

.nav-section.collapsed .nav-arrow {
  transform: rotate(-90deg);
}

.nav-section-items {
  overflow: hidden;
  transition: max-height 0.2s ease;
  max-height: 500px;
}

.nav-section.collapsed .nav-section-items {
  max-height: 0;
}

.nav-item.sub {
  padding-left: 44px !important;
  font-size: 13px !important;
}

.nav-item.sub::before {
  content: none;
}

/* External link style */
.nav-item.external {
  margin-top: 8px;
  border-top: 1px solid var(--hub-sidebar-border);
  padding-top: 12px !important;
}

.nav-item.external:hover .external-icon {
  opacity: 1;
}

/* Show section labels again for headers */
.nav-section-label {
  display: none !important;
}

/* Notification dots */
.nav-item .notification-dot,
.nav-section-header .notification-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.nav-item.sub .notification-dot {
  margin-left: 8px;
}

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

/* Dot on section header when children have notifications */
.nav-section-header .notification-dot {
  margin-left: 8px;
  margin-right: auto;
}

/* Staff Scout Chat Widget */
.scout-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--hub-accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(157, 200, 59, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scout-launcher:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(157, 200, 59, 0.5);
}

.scout-launcher img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.scout-launcher .scout-close {
  display: none;
}

.scout-launcher.open .scout-avatar {
  display: none;
}

.scout-launcher.open .scout-close {
  display: block;
  width: 24px;
  height: 24px;
  stroke: white;
}

/* Scout Chat Panel */
.scout-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.scout-panel.open {
  display: flex;
}

.scout-header {
  background: var(--hub-accent-dark);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.scout-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  padding: 2px;
}

.scout-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.scout-header-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.scout-header-info p {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
}

.scout-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scout-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.scout-message.assistant {
  background: #f3f4f6;
  color: #1f2937;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.scout-message.user {
  background: var(--hub-accent);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.scout-input-area {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
}

.scout-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.scout-input:focus {
  border-color: var(--hub-accent);
}

.scout-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hub-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.scout-send:hover {
  background: var(--hub-accent-dark);
}

.scout-send svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

.scout-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #f3f4f6;
  border-radius: 16px;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.scout-typing span {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.scout-typing span:nth-child(2) { animation-delay: 0.2s; }
.scout-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Darker gray sidebar */
.hub-sidebar {
  background: #f0f0f0 !important;
}

.hub-sidebar-footer {
  background: #f0f0f0 !important;
}

.nav-section-header:hover,
.nav-item:hover {
  background: #e4e4e4 !important;
}

/* Darker sidebar */
.hub-sidebar {
  background: #e5e5e5 !important;
}

.hub-sidebar-footer {
  background: #e5e5e5 !important;
}

.nav-section-header:hover,
.nav-item:hover {
  background: #d9d9d9 !important;
}

/* Even darker sidebar */
.hub-sidebar {
  background: #d4d4d4 !important;
}

.hub-sidebar-footer {
  background: #d4d4d4 !important;
}

.nav-section-header:hover,
.nav-item:hover {
  background: #c7c7c7 !important;
}

/* Logo background matches sidebar */
.hub-logo {
  background: #d4d4d4 !important;
}

/* Darker gray */
.hub-sidebar {
  background: #c4c4c4 !important;
}

.hub-sidebar-footer {
  background: #c4c4c4 !important;
}

.hub-logo {
  background: #c4c4c4 !important;
}

.nav-section-header:hover,
.nav-item:hover {
  background: #b5b5b5 !important;
}

/* Top bar matches sidebar gray */
.hub-topbar {
  background: #c4c4c4 !important;
  border-bottom: 1px solid #b5b5b5 !important;
}

/* Darker text for better contrast */
.nav-item,
.nav-section-header {
  color: #333333 !important;
}

.nav-item svg,
.nav-section-header svg:first-child {
  stroke: #333333 !important;
  opacity: 0.8 !important;
}

.hub-page-title {
  color: #222222 !important;
}

.hub-user-name {
  color: #222222 !important;
}

.hub-user-role {
  color: #555555 !important;
}

/* White background for logo area */
.hub-logo {
  background: #ffffff !important;
}

/* Logo area matches content background */
.hub-logo {
  background: #fafafa !important;
}

/* Scout launcher fix - ensure clickable */
.scout-launcher {
  z-index: 9999 !important;
  pointer-events: auto !important;
}
