/* Valpo Agency CRM Design System */
:root {
  --valpo-green: #006C3C;
  --valpo-green-light: #00A858;
  --valpo-green-dark: #004D2A;
  
  --status-onboarding: #3B82F6;  /* Blue */
  --status-active: #10B981;      /* Green */
  --status-vip: #F59E0B;         /* Gold */
  --status-attention: #EF4444;   /* Red */
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --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);
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Layout */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .nav-item span {
  display: none;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.2s ease-out;
}

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

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

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

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

.modal-body {
  padding: 24px;
}

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

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--valpo-green);
  box-shadow: 0 0 0 3px rgba(0, 108, 60, 0.1);
}

.form-control:hover {
  border-color: var(--border-medium);
}

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

/* Column Title Input */
.column-title-input {
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  color: var(--text-primary);
}

.column-title-input:focus {
  outline: none;
  border-color: var(--valpo-green);
  box-shadow: 0 0 0 2px rgba(0, 108, 60, 0.1);
}

/* Drag and Drop States */
.client-column.drag-over {
  border-color: var(--valpo-green);
  background-color: rgba(0, 108, 60, 0.05);
}

.client-card.drag-over {
  border-color: var(--valpo-green);
  background-color: rgba(0, 108, 60, 0.05);
}

/* Dashboard Search Section */
.dashboard-search-section {
  margin-bottom: 30px;
}

.search-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  background-color: var(--bg-primary);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.search-input, .filter-select {
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.search-input {
  flex: 1;
  min-width: 200px;
}

.search-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--valpo-green);
  box-shadow: 0 0 0 3px rgba(0, 108, 60, 0.1);
}

.filter-select {
  min-width: 150px;
}

/* SEO Dashboard Styles */
.seo-dashboard {
  padding: 20px;
}

.seo-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.seo-metric-card {
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.seo-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.seo-metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.seo-metric-change {
  font-size: 12px;
  font-weight: 600;
}

.seo-metric-change.positive {
  color: var(--status-active);
}

.seo-metric-change.negative {
  color: var(--status-attention);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.seo-table th,
.seo-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.seo-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

.seo-ranking {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}

.seo-ranking.good {
  background: #ecfdf5;
  color: #065f46;
}

.seo-ranking.average {
  background: #fef3c7;
  color: #92400e;
}

.seo-ranking.poor {
  background: #fef2f2;
  color: #991b1b;
}

.seo-change.positive {
  color: var(--status-active);
}

.seo-change.negative {
  color: var(--status-attention);
}

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success {
  background: #ecfdf5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-secondary {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.seo-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.seo-health-section h4 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.seo-health-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.seo-health-item.good {
  color: var(--status-active);
}

.seo-health-item.warning {
  color: var(--status-vip);
}

.seo-health-item.error {
  color: var(--status-attention);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--valpo-green);
  transition: width 0.3s ease;
}

.seo-health-score {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.seo-health-score.good {
  background: #ecfdf5;
  color: #065f46;
}

.seo-health-score.warning {
  background: #fef3c7;
  color: #92400e;
}

.seo-health-score.error {
  background: #fef2f2;
  color: #991b1b;
}

.seo-alerts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}

.seo-alert.error {
  background: #fef2f2;
  border-left: 4px solid var(--status-attention);
}

.seo-alert.warning {
  background: #fef3c7;
  border-left: 4px solid var(--status-vip);
}

.seo-alert.info {
  background: #eff6ff;
  border-left: 4px solid var(--status-onboarding);
}

.seo-update-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.seo-update-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.seo-update-content {
  flex: 1;
}

/* Task Board Styles */
.task-board {
  padding: 20px;
}

.task-board-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  min-height: 600px;
}

.task-column {
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.task-column-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  border-top: 3px solid var(--valpo-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-column-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.task-count {
  background: var(--bg-primary);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.task-column-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 400px;
}

.task-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.task-card.critical {
  border-left: 4px solid var(--status-attention);
}

.task-card.high {
  border-left: 4px solid var(--status-vip);
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.task-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
  margin-right: 8px;
}

.task-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.task-card:hover .task-actions {
  opacity: 1;
}

.task-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
}

.task-action-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.task-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.task-priority {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-critical {
  background: #fef2f2;
  color: #991b1b;
}

.priority-high {
  background: #fef3c7;
  color: #92400e;
}

.priority-medium {
  background: #eff6ff;
  color: #1e40af;
}

.priority-low {
  background: #f0fdf4;
  color: #065f46;
}

.task-due-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-due-date.overdue {
  color: var(--status-attention);
}

.avatar-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--valpo-green);
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  border: 2px dashed var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.empty-column i {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Responsive Design for Columns */
@media (max-width: 1200px) {
  .client-columns-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .task-board-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .client-columns-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .column-content {
    min-height: 300px;
  }
  
  .search-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input, .filter-select {
    width: 100%;
  }
  
  .task-board-columns {
    grid-template-columns: 1fr;
  }
  
  .seo-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .seo-health-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar.collapsed .global-search {
  display: none;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-area {
  flex: 1;
  padding: 24px;
  padding-top: 80px; /* Account for top toolbar */
  overflow-y: auto;
}

/* Top Toolbar */
.top-toolbar {
  position: fixed;
  top: 0;
  left: 250px;
  right: 0;
  height: 60px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.toolbar-left {
  display: flex;
  gap: 12px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toolbar-btn {
  white-space: nowrap;
}

/* User Profile Dropdown */
.user-profile-dropdown {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background-color: var(--bg-tertiary);
}

.user-name {
  font-size: 14px;
  font-weight: 500;
}

.user-profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.profile-menu-item:hover {
  background-color: var(--bg-tertiary);
}

.profile-menu-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 4px 0;
}

.admin-only {
  display: none;
}

body.user-admin .admin-only {
  display: flex;
}

/* Staff Dashboard */
.staff-overview {
  margin-bottom: 30px;
}

.time-tracking-chart {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.chart-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px dashed var(--border-medium);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 24px;
  padding: 8px;
}

.staff-tile {
  background-color: var(--bg-primary);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.staff-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.staff-tile.caution {
  border-color: var(--status-attention);
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

.staff-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.staff-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.staff-department {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.staff-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.metric-item {
  text-align: center;
  padding: 12px 8px;
  background-color: var(--bg-tertiary);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.metric-item:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-1px);
}

.metric-number {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.time-tracking-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.productivity-score {
  font-weight: 600;
}

.productivity-high { color: var(--status-active); }
.productivity-medium { color: var(--status-vip); }
.productivity-low { color: var(--status-attention); }

.caution-section {
  margin-bottom: 30px;
}

.caution-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--status-attention);
  font-weight: 600;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Sidebar Navigation */
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--valpo-green);
}

.nav-menu {
  padding: 20px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

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

.nav-item.active {
  background-color: var(--valpo-green);
  color: white;
}

.nav-item i {
  width: 20px;
  margin-right: 12px;
  font-size: 16px;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-onboarding {
  background-color: var(--status-onboarding);
  color: white;
}

.status-active {
  background-color: var(--status-active);
  color: white;
}

.status-vip {
  background-color: var(--status-vip);
  color: white;
}

.status-attention {
  background-color: var(--status-attention);
  color: white;
}

/* Cards */
.card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 20px;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Client Columns Board */
.client-columns-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  min-height: 600px;
}

.client-column {
  background-color: var(--bg-tertiary);
  border-radius: 12px;
  padding: 0;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  cursor: grab;
  display: flex;
  flex-direction: column;
}

.client-column:active {
  cursor: grabbing;
}

.client-column.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.client-column:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.column-header {
  background-color: var(--bg-primary);
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.column-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.column-count {
  font-size: 24px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.column-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.edit-column-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.edit-column-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

.column-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 400px;
}

.add-client-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: none;
  border: 2px dashed var(--border-medium);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  margin-top: auto;
}

.add-client-btn:hover {
  border-color: var(--valpo-green);
  color: var(--valpo-green);
  background-color: rgba(0, 108, 60, 0.05);
}

/* Client Cards in Columns */
.client-card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.client-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.client-card.dragging {
  opacity: 0.6;
  transform: rotate(3deg);
}

.client-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.client-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.client-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.edit-client-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 11px;
  transition: all 0.2s ease;
  opacity: 0;
}

.client-card:hover .edit-client-btn {
  opacity: 1;
}

.edit-client-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

.client-card-blurb {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.client-card-tags {
  margin-bottom: 10px;
}

.client-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.staff-avatars {
  display: flex;
  gap: 4px;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--valpo-green);
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.temperature-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  cursor: pointer;
}

.temp-hot { background-color: var(--status-attention); }
.temp-warm { background-color: var(--status-vip); }
.temp-cool { background-color: var(--status-active); }
.temp-cold { background-color: var(--status-onboarding); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--valpo-green);
  color: white;
}

.btn-primary:hover {
  background-color: var(--valpo-green-dark);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--border-medium);
}

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

/* Search & Filters */
.search-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background-color: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 14px;
}

.filter-select {
  padding: 10px 16px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--bg-primary);
}

/* Global Search */
.global-search {
  position: relative;
  margin-bottom: 20px;
}

.global-search-input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border: 2px solid var(--border-light);
  border-radius: 25px;
  font-size: 14px;
  background-color: var(--bg-primary);
  transition: all 0.2s ease;
}

.global-search-input:focus {
  outline: none;
  border-color: var(--valpo-green);
  box-shadow: 0 0 0 3px rgba(0, 108, 60, 0.1);
}

.global-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: var(--bg-tertiary);
}

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

.search-result-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.search-result-title {
  font-weight: 600;
  margin: 4px 0;
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb-item {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item:hover {
  color: var(--valpo-green);
}

.breadcrumb-item.current {
  color: var(--text-primary);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--border-medium);
}



/* Notification Center */
.notification-center {
  position: relative;
}

.notification-bell {
  position: relative;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--status-attention);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.notification-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
}

.notification-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

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

.notification-item.unread {
  background-color: rgba(0, 108, 60, 0.05);
  border-left: 3px solid var(--valpo-green);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  justify-content: space-between;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  margin-top: 4px;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-sub-item {
  padding: 8px 20px 8px 40px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-sub-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-sub-item.active {
  background-color: var(--valpo-green-light);
  color: white;
}

/* Toggle Views */
.view-toggle {
  display: flex;
  background-color: var(--bg-tertiary);
  border-radius: 6px;
  padding: 2px;
}

.view-toggle-btn {
  padding: 6px 12px;
  border: none;
  background: none;
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}

.view-toggle-btn.active {
  background-color: var(--valpo-green);
  color: white;
}

/* ========== FULL-SCREEN CENTERED MODALS ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(2px);
  }
}

.modal-content {
  background-color: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.95);
  animation: modalSlideIn 0.3s ease-out forwards;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Legacy modal-overlay class (for backward compatibility) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal-header {
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px 16px 0 0;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: scale(1.1);
}

.modal-body {
  padding: 32px;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
}

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

.form-group {
  margin-bottom: 20px;
}

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--valpo-green);
}

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

.color-inputs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-input {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  cursor: pointer;
}

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

.seo-metric-card {
  background-color: var(--bg-primary);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  text-align: center;
}

.seo-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--valpo-green);
  margin-bottom: 4px;
}

.seo-metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.seo-table th,
.seo-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.seo-table th {
  font-weight: 600;
  background-color: var(--bg-tertiary);
}

.seo-ranking {
  font-weight: 600;
}

.seo-ranking.good {
  color: var(--status-active);
}

.seo-ranking.average {
  color: var(--status-vip);
}

.seo-ranking.poor {
  color: var(--status-attention);
}

.ml-auto { margin-left: auto; }

/* Priority Colors */
.priority-critical {
  background-color: var(--status-attention);
  color: white;
}

.priority-high {
  background-color: #f59e0b;
  color: white;
}

.priority-medium {
  background-color: #3b82f6;
  color: white;
}

.priority-low {
  background-color: #64748b;
  color: white;
}

/* Critical Overview Styles */
.critical-overview {
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
  border-left: 4px solid var(--status-attention);
}

/* Staff Dashboard Styles */
.staff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--bg-primary);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Recurring Tasks Section */
.recurring-section {
  margin-bottom: 24px;
}

.recurring-tasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.recurring-task {
  background-color: var(--bg-tertiary);
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.recurring-task.completed {
  background-color: #f0fdf4;
  border-color: var(--status-active);
}

.recurring-checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-medium);
  border-radius: 3px;
  cursor: pointer;
}

.recurring-checkbox.checked {
  background-color: var(--status-active);
  border-color: var(--status-active);
}

/* Navigation Tabs */
.nav-tab {
  padding: 8px 16px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-primary);
}

.nav-tab.active {
  color: var(--valpo-green);
  border-bottom-color: var(--valpo-green);
  font-weight: 600;
}

/* Alerts */
.alert {
  padding: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

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

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

.alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Form Elements */
.w-full { width: 100%; }

textarea, input[type="text"], input[type="email"] {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}

/* Color Utilities */
.text-red-600 { color: #dc2626; }
.text-green-600 { color: #16a34a; }
.text-blue-600 { color: #2563eb; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.bg-gray-50 { background-color: #f9fafb; }

/* Utility Classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.border { border: 1px solid var(--border-light); }
.border-gray-200 { border: 1px solid #e5e7eb; }
.border-gray-300 { border: 1px solid #d1d5db; }
.rounded { border-radius: 6px; }

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  
  .status-buckets {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .client-tiles {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  
  .status-buckets {
    grid-template-columns: 1fr;
  }
  
  .client-tiles {
    grid-template-columns: 1fr;
  }
  
  .search-filters {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Enhanced Task Management Styles */
.task-categories {
  padding: 12px 0;
}

.task-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  color: var(--text-primary);
  border-radius: 8px;
  margin: 2px 8px;
  transition: all 0.2s;
}

.task-nav-item:hover {
  background: var(--hover-light);
}

.task-nav-item.active {
  background: var(--valpo-green);
  color: white;
}

.task-count {
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.task-nav-item.active .task-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Time-based Task Board Styles */
.category-tag {
  background: var(--valpo-green);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-indicator {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-todo { background: #e5e7eb; color: #374151; }
.status-in-progress { background: #dbeafe; color: #1e40af; }
.status-blocked { background: #fee2e2; color: #dc2626; }
.status-completed { background: #d1fae5; color: #059669; }

/* Urgency-based styling for time columns */
.border-red-200 { border-color: #fecaca !important; }
.border-yellow-200 { border-color: #fde68a !important; }
.border-blue-200 { border-color: #bfdbfe !important; }

.text-red-600 { color: #dc2626 !important; }
.text-yellow-600 { color: #d97706 !important; }
.text-blue-600 { color: #2563eb !important; }

.bg-red-50 { background-color: #fef2f2; }
.bg-yellow-50 { background-color: #fffbeb; }
.bg-blue-50 { background-color: #eff6ff; }

/* Client Task Navigation */
.client-task-nav {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.task-board-container {
  flex: 1;
  background: white;
  overflow: hidden;
}

.task-board-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  background: white;
}

.task-board-content {
  padding: 20px;
  height: calc(100vh - 140px);
  overflow: hidden;
}

/* Full Screen Task View */
.full-screen-task-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 1000;
  display: none;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .logo {
  font-size: 18px;
  font-weight: bold;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.sidebar.collapsed .nav-item span {
  display: none;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.2s ease-out;
}

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

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

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

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

.modal-body {
  padding: 24px;
}

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

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--valpo-green);
  box-shadow: 0 0 0 3px rgba(0, 108, 60, 0.1);
}

.form-control:hover {
  border-color: var(--border-medium);
}

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

/* Column Title Input */
.column-title-input {
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  color: var(--text-primary);
}

.column-title-input:focus {
  outline: none;
  border-color: var(--valpo-green);
  box-shadow: 0 0 0 2px rgba(0, 108, 60, 0.1);
}

/* Drag and Drop States */
.client-column.drag-over {
  border-color: var(--valpo-green);
  background-color: rgba(0, 108, 60, 0.05);
}

.client-card.drag-over {
  border-color: var(--valpo-green);
  background-color: rgba(0, 108, 60, 0.05);
}

/* Dashboard Search Section */
.dashboard-search-section {
  margin-bottom: 30px;
}

.search-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  background-color: var(--bg-primary);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.search-input, .filter-select {
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.search-input {
  flex: 1;
  min-width: 200px;
}

.search-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--valpo-green);
  box-shadow: 0 0 0 3px rgba(0, 108, 60, 0.1);
}

.filter-select {
  min-width: 150px;
}

/* SEO Dashboard Styles */
.seo-dashboard {
  padding: 20px;
}

.seo-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.seo-metric-card {
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.seo-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.seo-metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.seo-metric-change {
  font-size: 12px;
  font-weight: 600;
}

.seo-metric-change.positive {
  color: var(--status-active);
}

.seo-metric-change.negative {
  color: var(--status-attention);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.seo-table th,
.seo-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.seo-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

.seo-ranking {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}

.seo-ranking.good {
  background: #ecfdf5;
  color: #065f46;
}

.seo-ranking.average {
  background: #fef3c7;
  color: #92400e;
}

.seo-ranking.poor {
  background: #fef2f2;
  color: #991b1b;
}

.seo-change.positive {
  color: var(--status-active);
}

.seo-change.negative {
  color: var(--status-attention);
}

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success {
  background: #ecfdf5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-secondary {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.seo-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.seo-health-section h4 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.seo-health-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.seo-health-item.good {
  color: var(--status-active);
}

.seo-health-item.warning {
  color: var(--status-vip);
}

.seo-health-item.error {
  color: var(--status-attention);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--valpo-green);
  transition: width 0.3s ease;
}

.seo-health-score {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.seo-health-score.good {
  background: #ecfdf5;
  color: #065f46;
}

.seo-health-score.warning {
  background: #fef3c7;
  color: #92400e;
}

.seo-health-score.error {
  background: #fef2f2;
  color: #991b1b;
}

.seo-alerts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}

.seo-alert.error {
  background: #fef2f2;
  border-left: 4px solid var(--status-attention);
}

.seo-alert.warning {
  background: #fef3c7;
  border-left: 4px solid var(--status-vip);
}

.seo-alert.info {
  background: #eff6ff;
  border-left: 4px solid var(--status-onboarding);
}

.seo-update-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.seo-update-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.seo-update-content {
  flex: 1;
}

/* Task Board Styles */
.task-board {
  padding: 20px;
}

.task-board-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  min-height: 600px;
}

.task-column {
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.task-column-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  border-top: 3px solid var(--valpo-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-column-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.task-count {
  background: var(--bg-primary);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.task-column-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 400px;
}

.task-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.task-card.critical {
  border-left: 4px solid var(--status-attention);
}

.task-card.high {
  border-left: 4px solid var(--status-vip);
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.task-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
  margin-right: 8px;
}

.task-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.task-card:hover .task-actions {
  opacity: 1;
}

.task-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
}

.task-action-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.task-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.task-priority {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-critical {
  background: #fef2f2;
  color: #991b1b;
}

.priority-high {
  background: #fef3c7;
  color: #92400e;
}

.priority-medium {
  background: #eff6ff;
  color: #1e40af;
}

.priority-low {
  background: #f0fdf4;
  color: #065f46;
}

.task-due-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-due-date.overdue {
  color: var(--status-attention);
}

.avatar-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--valpo-green);
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  border: 2px dashed var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.empty-column i {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Responsive Design for Columns */
@media (max-width: 1200px) {
  .client-columns-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .task-board-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .client-columns-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .column-content {
    min-height: 300px;
  }
  
  .search-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input, .filter-select {
    width: 100%;
  }
  
  .task-board-columns {
    grid-template-columns: 1fr;
  }
  
  .seo-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .seo-health-grid {
    grid-template-columns: 1fr;
  }
}
/* Template Bank Styles */
.template-bank {
  padding: 20px;
}

.template-bank-header {
  margin-bottom: 30px;
}

.template-bank-header h2 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.template-workflow-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.template-workflow-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 200px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.workflow-step.active .step-number {
  background: var(--valpo-green);
  border-color: var(--valpo-green);
  color: white;
}

.workflow-step.completed .step-number {
  background: var(--status-active);
  border-color: var(--status-active);
  color: white;
}

.step-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.workflow-step.active .step-title {
  color: var(--text-primary);
  font-weight: 600;
}

/* Template Categories */
.template-categories h3 {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-card:hover {
  border-color: var(--valpo-green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 108, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.category-info {
  flex: 1;
}

.category-info h4 {
  margin: 0 0 4px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.category-info p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.category-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.template-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
}

.category-arrow {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.category-card:hover .category-arrow {
  color: var(--valpo-green);
}

/* Template Configuration */
.template-configuration {
  max-width: 1000px;
  margin: 0 auto;
}

.config-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.btn-back {
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}

.config-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin-bottom: 30px;
}

.template-selection h4,
.template-config-options h4 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.template-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.template-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.template-item.selected {
  border-color: var(--valpo-green);
  background: rgba(0, 108, 60, 0.02);
}

.template-checkbox {
  position: relative;
  margin-top: 2px;
}

.template-checkbox input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.template-checkbox label {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-medium);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-checkbox input[type="radio"]:checked + label {
  border-color: var(--valpo-green);
  background: var(--valpo-green);
}

.template-checkbox input[type="radio"]:checked + label::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
}

.template-details {
  flex: 1;
}

.template-details h5 {
  margin: 0 0 4px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.template-details p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.template-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.template-config-options {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
}

.config-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.config-footer .btn {
  min-width: 140px;
}

/* Template Preview */
.template-preview {
  max-width: 800px;
  margin: 0 auto;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.preview-summary {
  margin-bottom: 30px;
}

.summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
}

.summary-card h4 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.summary-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.summary-item .label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-item .value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.preview-tasks h4 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.task-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.task-preview-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 16px;
}

.task-preview-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--valpo-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.task-preview-content {
  flex: 1;
}

.task-preview-content h5 {
  margin: 0 0 4px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.task-preview-content p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.task-preview-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.task-preview-meta .priority {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.task-preview-meta .category {
  padding: 2px 8px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: 4px;
  font-size: 11px;
}

.task-preview-meta .due-offset {
  font-size: 11px;
  color: var(--text-muted);
}

.preview-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* Responsive Template Bank */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .config-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .template-config-options {
    order: -1;
  }
  
  .summary-details {
    grid-template-columns: 1fr;
  }
  
  .preview-footer {
    flex-direction: column;
  }
  
  .template-workflow-steps {
    flex-direction: row;
    gap: 20px;
  }
  
  .template-workflow-steps::before {
    display: none;
  }
}

/* Add Task Modal Styles */
.add-task-modal {
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.add-task-modal .modal-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label.required::after {
  content: ' *';
  color: var(--status-attention);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label-sm {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.checkbox-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
}

.recurrence-options {
  background: var(--bg-tertiary);
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.recurrence-config {
  margin-top: 8px;
}

.add-task-modal .modal-footer {
  justify-content: space-between;
}

.add-task-modal .btn {
  min-width: 100px;
}

/* Responsive Add Task Modal */
@media (max-width: 768px) {
  .add-task-modal {
    width: 95vw;
    margin: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .checkbox-group {
    gap: 8px;
  }
}

/* Staff Task Board Styles */
.staff-task-board {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.staff-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.staff-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.staff-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.staff-role {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Stats Row */
.staff-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.stat-item:hover {
  box-shadow: var(--shadow-sm);
}

.stat-item.overdue {
  border-left: 4px solid #ef4444;
}

.stat-item.due-today {
  border-left: 4px solid #f59e0b;
}

.stat-item.total {
  border-left: 4px solid #10b981;
}

.stat-icon {
  font-size: 18px;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Focus Today Panel */
.focus-today-panel {
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  padding: 20px;
  margin-bottom: 24px;
}

.focus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.focus-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.focus-tasks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focus-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.focus-task:hover {
  border-color: var(--valpo-green);
  box-shadow: var(--shadow-sm);
}

.focus-task-content {
  flex: 1;
}

.focus-task-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.focus-task-client {
  font-size: 12px;
  color: var(--text-muted);
}

.focus-task-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.focus-task:hover .focus-task-actions {
  opacity: 1;
}

.focus-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}

.focus-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.focus-empty-text {
  font-size: 14px;
}

/* Routines Accordion */
.routines-accordion {
  margin-bottom: 24px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

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

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background: var(--bg-tertiary);
}

.accordion-header i {
  transition: transform 0.2s ease;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 20px 16px 20px;
}

.accordion-content.active {
  display: block;
}

.routine-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.routine-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  transition: all 0.2s ease;
}

.routine-item.completed {
  opacity: 0.6;
}

.routine-item.completed .routine-text {
  text-decoration: line-through;
}

.routine-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-medium);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.routine-checkbox:hover {
  border-color: var(--valpo-green);
}

.routine-checkbox.checked {
  background: var(--valpo-green);
  border-color: var(--valpo-green);
  color: white;
}

.routine-text {
  font-size: 14px;
  color: var(--text-primary);
}

/* Staff Kanban Board */
.staff-kanban-board {
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  padding: 20px;
}

.kanban-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  min-height: 500px;
}

.kanban-column {
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
  border-radius: 8px 8px 0 0;
}

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

.kanban-column-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Staff Task Cards */
.staff-task-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.staff-task-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.staff-task-card.critical {
  border-left: 4px solid var(--status-attention);
}

.staff-task-card.high {
  border-left: 4px solid var(--status-vip);
}

.staff-task-card.medium {
  border-left: 4px solid var(--status-onboarding);
}

.staff-task-card.low {
  border-left: 4px solid var(--status-active);
}

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

.task-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
  margin-right: 8px;
  line-height: 1.3;
}

.task-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.staff-task-card:hover .task-actions {
  opacity: 1;
}

.task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.task-due-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.task-due-date.overdue {
  background: #fef2f2;
  color: #991b1b;
}

.task-due-date.due-today {
  background: #fef3c7;
  color: #92400e;
}

.task-due-date.upcoming {
  background: #f0fdf4;
  color: #065f46;
}

.task-priority-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-critical {
  background: #fef2f2;
  color: #991b1b;
}

.priority-high {
  background: #fef3c7;
  color: #92400e;
}

.priority-medium {
  background: #eff6ff;
  color: #1e40af;
}

.priority-low {
  background: #f0fdf4;
  color: #065f46;
}

.task-client {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--valpo-green);
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.client-name {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.btn-icon .fa-thumbtack.pinned {
  color: var(--valpo-green);
}

/* Responsive Staff Board */
@media (max-width: 1200px) {
  .kanban-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .staff-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .staff-task-board {
    padding: 16px;
  }
  
  .staff-board-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: center;
  }
  
  .staff-info {
    justify-content: center;
  }
  
  .staff-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .kanban-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .focus-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Client Card Reordering Drag Styles */
.client-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.client-card.drag-over-reorder {
  border: 2px dashed var(--valpo-green);
  background-color: rgba(0, 108, 60, 0.05);
}

.client-card.insert-before {
  border-top: 3px solid var(--valpo-green);
  margin-top: 8px;
}

.client-card.insert-after {
  border-bottom: 3px solid var(--valpo-green);
  margin-bottom: 8px;
}

/* Enhanced drag feedback */
.client-column.drag-over {
  background-color: rgba(0, 108, 60, 0.02);
  border: 2px dashed var(--valpo-green);
}

/* Smooth transitions for reordering */
.client-card {
  transition: all 0.2s ease;
}

.client-card:not(.dragging) {
  transform: translateZ(0);
}

/* Visual feedback for drag state */
.client-card.dragging * {
  pointer-events: none;
}

/* Drag handle visual cue */
.client-card:hover .client-card-header {
  cursor: grab;
}

.client-card.dragging .client-card-header {
  cursor: grabbing;
}

/* Quick Overview Section */
.quick-overview-section {
  margin: 24px 0;
}

.overview-section {
  padding: 0;
}

.overview-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.overview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item {
  text-align: center;
  padding: 12px 8px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.stat-item:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-1px);
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.overview-actions {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 16px 20px;
}

.overview-actions .btn {
  font-size: 12px;
  padding: 8px 12px;
}

.text-green-600 { color: #10b981; }
.text-blue-600 { color: #3b82f6; }
.text-red-600 { color: #ef4444; }
.text-orange-600 { color: #f59e0b; }
.text-yellow-600 { color: #eab308; }
.text-gray-500 { color: #6b7280; }

/* Clickable Overview Sections */
.overview-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 16px;
  margin: -8px;
}

.overview-clickable:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.overview-clickable .overview-section-title {
  margin-bottom: 20px;
}

/* Summary Modal Styles */
.performance-detail-section,
.seo-detail-section {
  background-color: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.detail-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.detail-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.detail-stat-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Flags Summary Styles */
.flag-summary-stat {
  text-align: center;
  padding: 12px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
}

.flag-count {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.flag-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.flags-section {
  border-left: 3px solid var(--border-medium);
  padding-left: 16px;
}

.flag-item {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--border-light);
}

.flag-item.critical {
  border-left-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

.flag-item.high {
  border-left-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.05);
}

.flag-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 4px;
}

.flag-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.flag-client {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.flag-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.flag-meta {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--text-muted);
}

/* SEO Summary Styles */
.keyword-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.keyword-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background-color: var(--bg-primary);
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.keyword-name {
  font-size: 11px;
  color: var(--text-secondary);
}

.keyword-ranking {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.keyword-change {
  font-size: 10px;
  margin-left: 4px;
}

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

.issue-item {
  padding: 8px;
  background-color: var(--bg-primary);
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.issue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.issue-type {
  font-size: 11px;
  color: var(--text-secondary);
}

.issue-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.issue-severity {
  font-size: 10px;
}

.issue-severity.high { color: #ef4444; }
.issue-severity.medium { color: #f59e0b; }
.issue-severity.low { color: #10b981; }

.client-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.client-seo-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-light);
}

.client-seo-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.client-seo-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-seo-stat {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.client-seo-stat .label {
  color: var(--text-muted);
}

.client-seo-stat .value {
  color: var(--text-primary);
  font-weight: 500;
}

/* Looker Studio T&T Performance Dashboard */
.looker-studio-dashboard {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 24px;
  min-height: 500px;
}

.dashboard-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.dashboard-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.dashboard-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--border-light);
  transition: all 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-card.primary { border-left-color: var(--valpo-green); }
.metric-card.success { border-left-color: #10b981; }
.metric-card.warning { border-left-color: #f59e0b; }
.metric-card.info { border-left-color: #3b82f6; }

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.metric-card.primary .metric-icon { background: var(--valpo-green); }
.metric-card.success .metric-icon { background: #10b981; }
.metric-card.warning .metric-icon { background: #f59e0b; }
.metric-card.info .metric-icon { background: #3b82f6; }

.metric-content {
  flex: 1;
}

.metric-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.metric-trend {
  font-size: 11px;
  margin-top: 4px;
  font-weight: 500;
}

.metric-trend.positive { color: #10b981; }
.metric-trend.negative { color: #ef4444; }
.metric-trend.neutral { color: var(--text-muted); }

/* Charts Row */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-container {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-legend {
  display: flex;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.legend-item.completed .fas { color: var(--valpo-green); }
.legend-item.hours .fas { color: #3b82f6; }

.chart-visualization {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 120px;
  padding: 0 8px;
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chart-bars {
  display: flex;
  gap: 2px;
  align-items: end;
  height: 100px;
}

.chart-bar {
  width: 12px;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

.chart-bar.completed { background: var(--valpo-green); }
.chart-bar.hours { background: #3b82f6; }

.chart-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Category Performance */
.category-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.category-stats {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.category-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  width: 80px;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--valpo-green);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 32px;
}

/* Analytics Row */
.analytics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.analytics-section {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.time-breakdown,
.task-insights,
.recommendations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.time-label {
  font-size: 12px;
  color: var(--text-muted);
}

.time-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.time-percent {
  font-size: 11px;
  color: var(--text-muted);
}

.time-percent.trend-up {
  color: #10b981;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.insight-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

.insight-icon.success { background: #10b981; }
.insight-icon.warning { background: #f59e0b; }
.insight-icon.info { background: #3b82f6; }

.insight-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.insight-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.recommendation-item .fas {
  color: var(--valpo-green);
}

/* Dashboard Actions */
.dashboard-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.action-btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.action-btn.primary {
  background: var(--valpo-green);
  color: white;
}

.action-btn.primary:hover {
  background: var(--valpo-green-dark);
  transform: translateY(-1px);
}

.action-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.action-btn.secondary:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

/* Account Management Header */
.account-mgmt-header {
  border-left: 4px solid var(--valpo-green);
}

.mgmt-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.row-section {
  min-width: 0; /* Prevent overflow */
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Team & Ownership */
.owner-info {
  display: flex;
  gap: 12px;
}

.owner-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--valpo-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.owner-details {
  display: flex;
  flex-direction: column;
}

.owner-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.owner-role {
  font-size: 10px;
  color: var(--text-muted);
}

/* Status & Temperature */
.status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  background: #10b981;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.temperature-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Contact Cadence */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 10px;
  color: var(--text-muted);
}

.contact-value {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 500;
}

/* SLA & Preferences */
.sla-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sla-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}

.response-time {
  font-size: 10px;
  color: var(--text-muted);
}

.preferences {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pref-channels, .office-hours {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Active Services */
.services-toggles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.service-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
}

.service-toggle.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
}

.service-toggle.inactive {
  background: rgba(107, 114, 128, 0.1);
  border-color: #6b7280;
  color: #6b7280;
}

/* Contract & Renewals */
.contract-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contract-dates {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date-item {
  font-size: 11px;
  color: var(--text-secondary);
}

.renewal-reminder {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
}

.renewal-reminder.normal {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.renewal-reminder.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.renewal-reminder.urgent {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Ad Spend & Pacing */
.spend-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spend-approved {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 600;
}

.spend-pacing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pacing-bar {
  width: 80px;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.pacing-fill {
  height: 100%;
  background: var(--valpo-green);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.pacing-text {
  font-size: 10px;
  color: var(--text-muted);
}

/* Geo & Links */
.geo-links-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geo-approval {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-primary);
}

.geo-date {
  font-size: 10px;
  color: var(--text-muted);
}

.quick-links {
  display: flex;
  gap: 6px;
}

.quick-link {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-link:hover {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
}

/* Quick Actions Row */
.quick-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn-sm {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.action-btn-sm.primary {
  background: var(--valpo-green);
  color: white;
}

.action-btn-sm.primary:hover {
  background: var(--valpo-green-dark);
}

.action-btn-sm.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.action-btn-sm.secondary:hover {
  background: var(--bg-tertiary);
}

/* ========== VALUE SCORECARD SYSTEM ========== */

.value-scorecard-section {
  margin-top: 32px;
}

.value-scorecard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.scorecard-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
}

.scorecard-section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

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

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

/* Performance Impact Section */
.performance-impact .metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-card {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.metric-card:hover {
  background: var(--bg-tertiary);
}

.metric-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-change {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 12px;
}

.metric-change.positive {
  color: #059669;
  background: #ecfdf5;
}

.metric-change.negative {
  color: #dc2626;
  background: #fef2f2;
}

/* Score Indicators */
.impact-score, .risk-indicator, .momentum-score, .health-score {
  font-size: 18px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  min-width: 60px;
}

.score-excellent, .health-excellent {
  background: #ecfdf5;
  color: #059669;
}

.score-good, .health-good {
  background: #f0f9ff;
  color: #0284c7;
}

.score-average, .health-fair {
  background: #fffbeb;
  color: #d97706;
}

.score-needs-improvement, .health-poor {
  background: #fef2f2;
  color: #dc2626;
}

.risk-indicator.low {
  background: #ecfdf5;
  color: #059669;
}

.risk-indicator.medium {
  background: #fffbeb;
  color: #d97706;
}

.risk-indicator.high {
  background: #fef2f2;
  color: #dc2626;
}

/* Highlights & Risks Section */
.highlights-risks-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.subsection-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.highlight-list, .risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-item, .risk-item {
  display: flex;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 4px;
  background: var(--bg-secondary);
}

.highlight-item.positive {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
}

.risk-item.high {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
}

.risk-item.medium {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
}

.risk-item.low {
  background: #f0f9ff;
  border-left: 3px solid #3b82f6;
}

/* Workstream Momentum Section */
.momentum-score.momentum-strong {
  background: #ecfdf5;
  color: #059669;
}

.momentum-score.momentum-good {
  background: #f0f9ff;
  color: #0284c7;
}

.momentum-score.momentum-moderate {
  background: #fffbeb;
  color: #d97706;
}

.momentum-score.momentum-weak {
  background: #fef2f2;
  color: #dc2626;
}

.workstream-progress {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workstream-item {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 12px;
}

.workstream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.workstream-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.workstream-progress-percent {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.progress-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

.workstream-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.status-indicator {
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-indicator.on-track {
  background: #f0f9ff;
  color: #0284c7;
}

.status-indicator.ahead {
  background: #ecfdf5;
  color: #059669;
}

.status-indicator.behind {
  background: #fffbeb;
  color: #d97706;
}

.next-milestone {
  color: var(--text-muted);
  font-style: italic;
}

/* Governance & Health Section */
.governance-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.governance-item {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.governance-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.governance-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.governance-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.health-indicators {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-item {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
}

.health-item.excellent {
  background: #ecfdf5;
  color: #059669;
}

.health-item.good {
  background: #f0f9ff;
  color: #0284c7;
}

.health-item.fair {
  background: #fffbeb;
  color: #d97706;
}

.health-item.poor {
  background: #fef2f2;
  color: #dc2626;
}

/* Scorecard Footer */
.scorecard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  padding: 12px;
  border-radius: 6px;
  margin-top: 20px;
}

/* ========== AI REPORT BUILDER MODAL ========== */

.ai-report-builder .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.report-section {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.report-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Report Type Selection */
.report-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.report-type-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-type-card:hover {
  border-color: var(--valpo-green);
  background: var(--bg-tertiary);
}

.report-type-card.active {
  border-color: var(--valpo-green);
  background: #f0fdf4;
}

.report-type-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.report-type-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.report-type-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Report Sections Checkboxes */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.section-checkbox {
  display: flex;
  align-items: center;
}

.section-checkbox input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.section-checkbox label {
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Tone Selector */
.tone-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tone-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tone-option:hover {
  border-color: var(--valpo-green);
}

.tone-option.active {
  border-color: var(--valpo-green);
  background: #f0fdf4;
}

.tone-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tone-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Period Selector */
.period-dropdown {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
}

/* Enhancement Options */
.enhancement-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.enhancement-checkbox {
  display: flex;
  align-items: center;
}

.enhancement-checkbox input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.enhancement-checkbox label {
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Report Preview */
.report-preview-section {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 16px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.estimated-time {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.report-preview-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
}

.preview-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.preview-sections {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.preview-section {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  border-left: 3px solid var(--valpo-green);
  padding-left: 8px;
}

.preview-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.preview-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Button Loading State */
.btn-loading {
  display: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Report Success Result */
.report-success-content {
  text-align: left;
}

.report-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.report-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.report-insights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-insights li {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.report-insights li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--valpo-green);
  font-size: 10px;
}

.next-steps {
  margin-top: 16px;
}

.next-steps h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.next-steps ol {
  margin: 0;
  padding-left: 16px;
}

.next-steps li {
  margin-bottom: 4px;
  line-height: 1.4;
}

/* Dropdown for Approved Areas */
.approved-areas-dropdown {
  position: relative;
}

.dropdown-trigger {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.dropdown-trigger:hover {
  background: var(--bg-tertiary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  min-width: 200px;
}

.dropdown-item {
  font-size: 12px;
  color: var(--text-primary);
  padding: 4px 0;
  line-height: 1.3;
}

.dropdown-footer {
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Responsive Design for Value Scorecard */
@media (max-width: 1024px) {
  .value-scorecard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .performance-impact .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .highlights-risks-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .governance-grid {
    grid-template-columns: 1fr;
  }
  
  .report-type-grid {
    grid-template-columns: 1fr;
  }
  
  .tone-selector {
    grid-template-columns: 1fr;
  }
}

/* ========== ALL TASKS CONSOLIDATED VIEW ========== */

.all-tasks-consolidated {
  padding: 20px 0;
}

.consolidated-header {
  text-align: center;
  margin-bottom: 24px;
}

.task-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.task-category-section {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-light);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.category-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.task-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 12px;
}

.category-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-card-compact {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.task-card-compact:hover {
  border-color: var(--valpo-green);
  box-shadow: var(--shadow-sm);
}

.task-card-compact.critical {
  border-left: 4px solid #ef4444;
}

.task-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.task-meta {
  display: flex;
  gap: 6px;
}

.priority-badge, .status-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.task-due-date {
  color: var(--text-muted);
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 4px;
}

.avatar-xs {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--valpo-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
}

.assignee-name {
  color: var(--text-secondary);
  font-size: 10px;
}

.consolidated-actions {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.consolidated-actions .btn {
  margin: 0 4px;
}

/* Navigation Tab Styles */
.nav-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-tab.active {
  background: var(--valpo-green);
  color: white;
}

@media (max-width: 768px) {
  .task-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== FUNCTIONAL MODALS STYLING ========== */

.form-section {
  margin-bottom: 16px;
}

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

/* Contact Method Selection */
.contact-method-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.contact-method-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--valpo-green);
}

.contact-method-btn.active {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
}

/* Meeting Notes Styles */
.attendees-section {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 12px;
}

.attendees-list {
  margin-bottom: 8px;
}

.attendee-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.attendee-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  font-size: 12px;
}

.action-items-section {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 12px;
}

.action-item {
  background: var(--bg-primary);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
}

/* Ads Change Request */
.platform-options {
  display: flex;
  gap: 16px;
}

.platform-checkbox {
  display: flex;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
}

.platform-checkbox input {
  margin-right: 6px;
}

.budget-info {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 12px;
}

/* Creative Approval Queue */
.creative-queue-stats {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--valpo-green);
}

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

.creative-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.creative-item {
  display: flex;
  gap: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid var(--border-light);
}

.creative-item.pending {
  border-left-color: #f59e0b;
}

.creative-item.review {
  border-left-color: #3b82f6;
}

.creative-item.approved {
  border-left-color: #10b981;
}

.creative-preview {
  width: 80px;
  height: 80px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.placeholder-image {
  text-align: center;
}

.creative-details {
  flex: 1;
}

.creative-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.creative-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.creative-type, .creative-size {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  color: var(--text-muted);
}

.creative-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 600;
}

.creative-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.creative-status.review {
  background: #dbeafe;
  color: #1e40af;
}

.creative-status.approved {
  background: #d1fae5;
  color: #065f46;
}

.creative-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.creative-feedback {
  background: var(--bg-primary);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
}

.feedback-item {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.creative-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.upload-new-creative {
  transition: all 0.2s ease;
}

.upload-new-creative:hover {
  border-color: var(--valpo-green);
  background: var(--bg-secondary);
}

/* ========== TASK MANAGEMENT MODALS ========== */

.priority-options {
  display: flex;
  gap: 8px;
}

.priority-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.priority-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--valpo-green);
}

.priority-btn.active {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
}

.task-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-option-checkbox {
  display: flex;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
}

.task-option-checkbox input {
  margin-right: 8px;
}

/* Bulk Actions */
.bulk-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bulk-action-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
}

.bulk-action-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--valpo-green);
}

.bulk-action-btn i {
  font-size: 16px;
  color: var(--valpo-green);
  margin-right: 12px;
  width: 20px;
}

.action-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.action-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Report Scheduling */
.recipients-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 12px;
}

.recipient-checkbox {
  display: flex;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
}

.recipient-checkbox input {
  margin-right: 8px;
}

/* ========== FLAGS SYSTEM TILES ========== */

.flags-system {
  padding: 20px 0;
}

.flag-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.flag-filters select {
  padding: 6px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 12px;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.flag-tile {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.flag-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.flag-tile.severity-critical {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, var(--bg-primary) 100%);
}

.flag-tile.severity-high {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, var(--bg-primary) 100%);
}

.flag-tile.severity-medium {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, #f0f9ff 0%, var(--bg-primary) 100%);
}

.flag-tile.severity-low {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, var(--bg-primary) 100%);
}

.flag-tile.status-resolved {
  opacity: 0.7;
}

.flag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flag-severity-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flag-severity-badge.severity-critical {
  background: #ef4444;
  color: white;
}

.flag-severity-badge.severity-high {
  background: #f59e0b;
  color: white;
}

.flag-severity-badge.severity-medium {
  background: #3b82f6;
  color: white;
}

.flag-severity-badge.severity-low {
  background: #10b981;
  color: white;
}

.flag-actions {
  display: flex;
  gap: 4px;
}

.flag-action-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.2s ease;
}

.flag-action-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.flag-content {
  margin-bottom: 16px;
}

.flag-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.flag-description {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.flag-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flag-category, .flag-date {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted);
}

.flag-category i, .flag-date i {
  margin-right: 4px;
}

.flag-assignee {
  margin-bottom: 12px;
}

.flag-assignee label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flag-assignee-select {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 11px;
}

.flag-status-section {
  margin-bottom: 12px;
}

.flag-status-section label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flag-status-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.flag-status-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flag-status-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--valpo-green);
}

.flag-status-btn.active {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
}

.flag-comments {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 8px;
  margin-top: 8px;
}

.flag-comments-header {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flag-comment {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.flag-comment-author {
  font-weight: 600;
  color: var(--text-primary);
}

.flag-comment-date {
  color: var(--text-muted);
  font-size: 10px;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .flags-grid {
    grid-template-columns: 1fr;
  }
  
  .flag-filters {
    flex-direction: column;
    gap: 8px;
  }
}

/* Flag Creation Modal */
.severity-options {
  display: flex;
  gap: 8px;
}

.severity-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.severity-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--valpo-green);
}

.severity-btn.active {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
}

/* ========== BASIC CLIENT OVERVIEW ========== */

.basic-client-overview {
  padding: 20px 0;
}

.client-overview-nav {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.nav-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.category-nav-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--valpo-green);
}

.category-nav-btn.active {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
}

.category-content-area {
  min-height: 400px;
}

.category-content {
  display: none;
}

.category-content.active {
  display: block;
}

/* Quick Links Enhancements */
.quick-links-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quick-links-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.quick-links {
  display: flex;
  gap: 12px;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.quick-link-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== CLIENT OVERVIEW NAVIGATION ===== */
.basic-client-overview {
  margin-top: 20px;
}

.client-info-header {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.client-info-header .card {
  margin-bottom: 0;
  height: 100%;
}

.client-info-header .card-content {
  padding: 16px;
}

.avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: var(--valpo-green);
  color: white;
  font-weight: 500;
}

.client-overview-nav {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.nav-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-nav-btn {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.category-nav-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.category-nav-btn.active {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
  box-shadow: var(--shadow-sm);
}

.category-nav-btn.active:hover {
  background: var(--valpo-green-hover);
  transform: translateY(-1px);
}

.category-nav-btn i {
  margin-right: 6px;
  font-size: 13px;
}

.category-content-area {
  min-height: 400px;
}

.category-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.category-content.active {
  display: block;
}

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

/* Task Board Columns for Categories */
.task-board-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.task-column {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-light);
  min-height: 200px;
}

.task-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-bottom-color: var(--border-light);
}

.task-column-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.task-count {
  background: var(--valpo-green);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

.task-column-content {
  min-height: 150px;
  padding: 8px;
  border-radius: 8px;
  border: 2px dashed transparent;
  transition: all 0.2s ease;
}

.task-column-content.drag-over {
  border-color: var(--valpo-green);
  background: rgba(0, 108, 60, 0.05);
}

/* Compact Task Cards for Overview */
.task-card-compact {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-card-compact:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  border-color: var(--valpo-green);
}

.task-card-compact.critical {
  border-left: 4px solid #ef4444;
}

.task-card-compact .task-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.task-card-compact .task-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.priority-badge,
.status-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid;
  text-transform: capitalize;
}

.task-card-compact .task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 4px;
}

.avatar-xs {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: var(--valpo-green);
  color: white;
  font-weight: 500;
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
  .nav-categories {
    gap: 6px;
  }
  
  .category-nav-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .category-nav-btn i {
    margin-right: 4px;
    font-size: 12px;
  }
  
  .task-board-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== PERFORMANCE DASHBOARD STYLING ===== */
.performance-dashboard {
  padding: 20px;
}

.performance-nav-header {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.performance-selector {
  min-width: 250px;
  font-size: 14px;
  font-weight: 500;
}

.analytics-overview-report {
  animation: fadeIn 0.3s ease;
}

/* Urgency Badges */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.urgency-excellent {
  background: #dcfce7;
  color: #166534;
}

.urgency-good {
  background: #dbeafe;  
  color: #1e40af;
}

.urgency-attention {
  background: #fed7aa;
  color: #c2410c;
}

.urgency-critical {
  background: #fecaca;
  color: #dc2626;
}

/* Insights Section */
.insight-item {
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border-left: 4px solid var(--valpo-green);
}

.insight-metric {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.insight-explanation {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Next Steps Section */
.next-step-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border-left: 4px solid;
}

.next-step-item.priority-high {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.next-step-item.priority-medium {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.next-step-item.priority-low {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.step-priority {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  min-width: 80px;
  flex-shrink: 0;
}

.step-action {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Performance Metrics Cards Enhancement */
.card-content .grid .text-center {
  transition: all 0.2s ease;
}

.card-content .grid .text-center:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive Performance Dashboard */
@media (max-width: 768px) {
  .performance-nav-header {
    padding: 16px;
  }
  
  .performance-nav-header .flex {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .performance-selector {
    min-width: 200px;
  }
  
  .card-content .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .next-step-item {
    flex-direction: column;
    gap: 8px;
  }
  
  .step-priority {
    min-width: auto;
  }
}

/* ===== ACTION BUTTON MODALS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-wide {
  max-width: 700px;
}

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

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
  border-radius: 0 0 12px 12px;
}

/* Form Styling */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--valpo-green);
  box-shadow: 0 0 0 3px rgba(0, 108, 60, 0.1);
}

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

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Action Buttons */
.action-btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 8px;
}

.action-btn-sm.primary {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
}

.action-btn-sm.primary:hover {
  background: var(--valpo-green-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.action-btn-sm.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.action-btn-sm.secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--valpo-green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Campaign Overview */
.campaign-overview-header {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.kpi-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.kpi-tile {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.kpi-tile:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.kpi-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* Brand Voice Guide Modal */
.modal-xl {
  align-items: flex-start;
  padding: 20px;
}

.brand-voice-modal {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
}

.brand-voice-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.draft {
  background: #fef3c7;
  color: #92400e;
}

.brand-voice-body {
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
}

.brand-section {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}

.brand-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-item input,
.radio-item input {
  width: auto;
  margin: 0;
}

/* Tone Sliders */
.tone-sliders {
  margin-bottom: 20px;
}

.slider-group {
  margin-bottom: 16px;
}

.slider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.slider-label span {
  min-width: 80px;
  font-weight: 500;
}

.tone-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
  cursor: pointer;
}

.tone-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--valpo-green);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tone-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--valpo-green);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Color System */
.color-system {
  margin-bottom: 24px;
}

.color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.color-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.hex-input {
  flex: 1;
  font-family: monospace;
  text-transform: uppercase;
}

.color-picker {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

/* Color Preview */
.color-preview {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.color-preview h5 {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.preview-elements {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.preview-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-heading {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.preview-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* WCAG Compliance */
.wcag-compliance {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.wcag-compliance h5 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.compliance-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compliance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.compliance-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.compliance-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.compliance-badge.pass {
  background: #dcfce7;
  color: #166534;
}

.compliance-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.fix-btn {
  background: var(--valpo-green);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 8px;
}

/* Brand Voice Footer */
.brand-voice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.footer-left {
  display: flex;
  align-items: center;
}

.sync-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.sync-toggle input {
  width: auto;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 12px;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-wide {
    max-width: 95%;
  }
  
  .modal-xl {
    padding: 10px;
  }
  
  .brand-voice-modal {
    width: 100%;
    max-height: 95vh;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .color-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .checkbox-group,
  .radio-group {
    grid-template-columns: 1fr;
  }
  
  .kpi-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }
  
  .brand-section {
    padding: 16px;
  }
  
  .brand-voice-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .footer-right {
    justify-content: center;
  }
}

/* ========== CLIENT SUMMARY STYLING ========== */
.client-summary-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
}

.client-summary-content .summary-display {
  transition: background-color 0.2s ease;
  border-radius: 4px;
  padding: 4px;
}

.client-summary-content .summary-display:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.client-summary-content .summary-edit textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 60px;
}

.client-summary-content .summary-edit textarea:focus {
  outline: none;
  border-color: var(--valpo-green);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 500;
}

.hidden {
  display: none !important;
}

/* ========== QUICK OVERVIEW DROPDOWN ========== */
.quick-overview-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.quick-overview-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

#quick-overview-chevron {
  transition: transform 0.3s ease;
  font-size: 12px;
  opacity: 0.7;
}

.quick-overview-header:hover #quick-overview-chevron {
  opacity: 1;
}

/* ========== CLIENT SNAPSHOT DROPDOWN ========== */
.client-snapshot-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.client-snapshot-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

.client-snapshot-section [id^="snapshot-chevron-"] {
  transition: transform 0.3s ease;
  font-size: 12px;
  opacity: 0.7;
}

.client-snapshot-header:hover [id^="snapshot-chevron-"] {
  opacity: 1;
}

/* ========== CRITICAL ALERTS ANIMATION ========== */
@keyframes criticalPulse {
  0% { 
    transform: scale(1);
    color: #ef4444;
  }
  25% { 
    transform: scale(1.1) rotate(-5deg);
    color: #dc2626;
  }
  50% { 
    transform: scale(1.15) rotate(5deg);
    color: #ef4444;
  }
  75% { 
    transform: scale(1.1) rotate(-3deg);
    color: #dc2626;
  }
  100% { 
    transform: scale(1);
    color: #ef4444;
  }
}

@keyframes criticalWiggle {
  0%, 7% { transform: rotateZ(0); }
  15% { transform: rotateZ(-15deg); }
  20% { transform: rotateZ(10deg); }
  25% { transform: rotateZ(-10deg); }
  30% { transform: rotateZ(6deg); }
  35% { transform: rotateZ(-4deg); }
  40%, 100% { transform: rotateZ(0); }
}

.notification-bell.critical {
  animation: criticalPulse 2s infinite ease-in-out;
}

.notification-bell.critical i {
  animation: criticalWiggle 3s infinite;
  color: #ef4444 !important;
}

.notification-badge.critical {
  background: #ef4444;
  animation: criticalPulse 1.5s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ========== TASK HISTORY TOOLTIP ========== */
.task-history-tooltip {
  position: fixed;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  width: 280px;
  font-size: 13px;
  pointer-events: none;
}

.tooltip-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border-radius: 8px 8px 0 0;
}

.tooltip-content {
  padding: 8px 0;
  max-height: 200px;
  overflow-y: auto;
}

.history-item {
  padding: 8px 16px;
  border-bottom: 1px solid #f1f5f9;
}

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

.history-date {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.history-action {
  font-size: 12px;
  color: #374151;
  margin-bottom: 2px;
}

.history-person {
  font-size: 11px;
  color: #6b7280;
  font-style: italic;
}

/* ========== TASK EDITING ENHANCEMENTS ========== */
.task-card {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.task-history-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.task-card:hover .task-history-icon {
  opacity: 1;
}

.task-history-icon:hover {
  background: #e5e7eb;
}

.task-history-icon i {
  font-size: 10px;
  color: #6b7280;
}

/* ========== CLIENT SNAPSHOT COLLAPSIBLE ========== */
.client-snapshot-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: background-color 0.2s ease;
}

.client-snapshot-header:hover {
  background: #f1f5f9;
}

.client-snapshot-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.client-snapshot-toggle {
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.client-snapshot-toggle.collapsed {
  transform: rotate(-90deg);
}

.client-snapshot-content {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 500px;
  opacity: 1;
}

.client-snapshot-content.collapsed {
  max-height: 0;
  opacity: 0;
}

/* ========== TASK CATEGORIES HIDDEN BY DEFAULT ========== */
.all-tasks-category {
  display: none;
}

.all-tasks-category.visible {
  display: block;
}

/* ========== FLAGS COMMENT ENHANCEMENTS ========== */
.add-comment-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-comment-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.add-comment-btn i {
  font-size: 11px;
  color: #6b7280;
}

/* ========== FORM ROW STYLING ========== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* ========== CHECKBOX LABEL STYLING ========== */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}

/* ========== IMPORTANT DAYS VIEW ========== */
.important-days-view {
  padding: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.event-item:hover {
  border-color: var(--valpo-green-light);
  box-shadow: var(--shadow-sm);
}

.event-item.federal {
  border-left: 4px solid #3b82f6;
}

.event-item.anniversary {
  border-left: 4px solid #8b5cf6;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  text-align: center;
}

.date-day {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--text-primary);
}

.date-month {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
}

.event-details {
  flex: 1;
}

.event-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.event-type {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.category-section {
  margin-bottom: 24px;
}

.category-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.category-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 14px;
}

.mini-event-item.federal {
  border-left: 3px solid #3b82f6;
}

.mini-event-item.anniversary {
  border-left: 3px solid #8b5cf6;
}

.event-date-mini {
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 80px;
}

.event-name-mini {
  color: var(--text-primary);
}

/* ========== STAFF CALENDAR VIEW ========== */
.staff-calendar-view {
  padding: 0;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.month-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-dropdown {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: white;
  font-size: 14px;
  min-width: 160px;
}

.calendar-legend {
  display: flex;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.vacation {
  background: #10b981;
}

.legend-color.sick {
  background: #ef4444;
}

.legend-color.personal {
  background: #f59e0b;
}

.calendar-container {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 32px;
}

.calendar-month {
  padding: 20px;
}

.calendar-header {
  text-align: center;
  margin-bottom: 20px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 1px;
}

.weekday {
  padding: 12px;
  background: var(--bg-tertiary);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: var(--text-secondary);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-light);
}

.calendar-day {
  min-height: 80px;
  background: white;
  padding: 8px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calendar-day:hover {
  background: var(--bg-secondary);
}

.calendar-day.today {
  background: #dbeafe;
  border: 2px solid #3b82f6;
}

.calendar-day.empty {
  background: var(--bg-tertiary);
  cursor: default;
}

.day-number {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.day-timeoff {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.timeoff-indicator {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  color: white;
  font-weight: 600;
  display: inline-block;
}

.timeoff-indicator.vacation {
  background: #10b981;
}

.timeoff-indicator.sick {
  background: #ef4444;
}

.timeoff-indicator.personal {
  background: #f59e0b;
}

.time-off-summary {
  margin-top: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.staff-time-off-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.staff-timeoff-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
}

.staff-timeoff-card .staff-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.timeoff-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.timeoff-stats .stat {
  text-align: center;
}

.timeoff-stats .stat-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--valpo-green);
}

.timeoff-stats .stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.upcoming-timeoff {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.timeoff-item {
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeoff-item.vacation {
  background: #dcfce7;
  border-left: 3px solid #10b981;
}

.timeoff-item.sick {
  background: #fee2e2;
  border-left: 3px solid #ef4444;
}

.timeoff-item.personal {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
}

.timeoff-dates {
  font-weight: 500;
  font-size: 14px;
}

.timeoff-reason {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================
   STAFF PLATFORM STYLES
   ===================================*/

/* Staff Platform Layout */
.staff-platform {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.staff-platform .sidebar .logo::after {
  content: ' - Staff Hub';
  font-size: 12px;
  color: var(--valpo-green-light);
  font-weight: normal;
}

/* Staff Toolbar */
.staff-toolbar {
  background: var(--bg-primary);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.staff-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-identity .avatar {
  width: 48px;
  height: 48px;
  background: var(--valpo-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.staff-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.role-badge {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.role-badge.admin {
  color: var(--valpo-green);
}

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

.productivity-stats {
  display: flex;
  gap: 20px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* Staff Dashboard */
.staff-dashboard {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.dashboard-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Productivity Overview */
.productivity-overview {
  margin-bottom: 32px;
}

.productivity-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: center;
}

.productivity-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.stat-item.critical {
  background: #fee2e2;
  border-color: #fecaca;
}

.stat-item.today {
  background: #dbeafe;
  border-color: #bfdbfe;
}

.stat-item.upcoming {
  background: #d1fae5;
  border-color: #a7f3d0;
}

.stat-item.clients {
  background: #fef3c7;
  border-color: #fde68a;
}

.stat-item .stat-number {
  font-size: 24px;
  font-weight: 800;
}

.stat-item.critical .stat-number {
  color: #dc2626;
}

.stat-item.today .stat-number {
  color: #2563eb;
}

.stat-item.upcoming .stat-number {
  color: #059669;
}

.stat-item.clients .stat-number {
  color: #d97706;
}

.productivity-chart h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.dashboard-section {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.dashboard-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* Priority Tasks */
.priority-tasks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.priority-task {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid var(--border-medium);
}

.priority-task.high {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.priority-task.critical {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.priority-task.medium {
  border-left-color: #3b82f6;
  background: #eff6ff;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.task-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.priority-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.priority-badge.high {
  background: #fed7aa;
  color: #9a3412;
}

.priority-badge.critical {
  background: #fecaca;
  color: #991b1b;
}

.priority-badge.medium {
  background: #bfdbfe;
  color: #1e40af;
}

.task-client {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.no-tasks {
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
  font-style: italic;
}

/* Attention Items */
.attention-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attention-item {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #ef4444;
}

.attention-item.client-attention {
  border-left-color: #f59e0b;
}

.attention-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.attention-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.overdue-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #fecaca;
  color: #991b1b;
  text-transform: uppercase;
  font-weight: 600;
}

.attention-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #fed7aa;
  color: #9a3412;
  text-transform: uppercase;
  font-weight: 600;
}

.overdue-info {
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}

.attention-reason {
  font-size: 13px;
  color: var(--text-muted);
}

/* Quick Stats */
.quick-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--valpo-green);
  color: white;
  font-size: 20px;
}

.stat-info .stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-info .stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Communications */
.recent-communications {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.communication-item {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 16px;
}

.comm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comm-header strong {
  font-size: 14px;
  color: var(--text-primary);
}

.comm-time {
  font-size: 12px;
  color: var(--text-muted);
}

.comm-preview {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.comm-type {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.comm-type.email {
  background: #dbeafe;
  color: #1e40af;
}

.comm-type.call {
  background: #dcfce7;
  color: #166534;
}

.comm-type.meeting {
  background: #fef3c7;
  color: #92400e;
}

/* My Clients View */
.my-clients-view {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.view-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.client-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: var(--bg-secondary);
}

.filter-btn.active {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.client-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--border-medium);
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.client-card.active {
  border-top-color: var(--status-active);
}

.client-card.onboarding {
  border-top-color: var(--status-onboarding);
}

.client-card.vip {
  border-top-color: var(--status-vip);
}

.client-card.attention {
  border-top-color: var(--status-attention);
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.client-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.status-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.status-badge.onboarding {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.vip {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.attention {
  background: #fee2e2;
  color: #991b1b;
}

.client-info {
  margin-bottom: 16px;
}

.client-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.client-info i {
  width: 16px;
  color: var(--text-muted);
}

.client-tasks-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.task-count, .last-contact {
  text-align: center;
}

.task-count .count, .last-contact .date {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.task-count .label, .last-contact .label {
  font-size: 12px;
  color: var(--text-muted);
}

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

/* Staff Kanban */
.staff-kanban {
  padding: 24px;
  height: calc(100vh - 140px);
  overflow: hidden;
}

.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.kanban-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.kanban-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-options {
  display: flex;
  gap: 4px;
}

.view-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-medium);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn:hover {
  background: var(--bg-secondary);
}

.view-btn.active {
  background: var(--valpo-green);
  color: white;
  border-color: var(--valpo-green);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  height: calc(100% - 80px);
}

.kanban-column {
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.column-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.task-count {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

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

.column-content.drag-over {
  background: #f0fdf4;
  border: 2px dashed var(--valpo-green);
}

/* Kanban Tasks */
.kanban-task {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.kanban-task:hover {
  border-color: var(--valpo-green);
  box-shadow: var(--shadow-md);
}

.kanban-task.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.kanban-task.overdue {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

.kanban-task.high {
  border-left: 4px solid #f59e0b;
}

.kanban-task.critical {
  border-left: 4px solid #ef4444;
}

.kanban-task.medium {
  border-left: 4px solid #3b82f6;
}

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

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.priority-dot.high {
  background: #f59e0b;
}

.priority-dot.critical {
  background: #ef4444;
}

.priority-dot.medium {
  background: #3b82f6;
}

.priority-dot.low {
  background: #10b981;
}

.kanban-task h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.kanban-task .task-client {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.task-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.task-category {
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.task-due {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.task-due.overdue {
  color: #dc2626;
  font-weight: 600;
}

.task-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.kanban-task:hover .task-actions {
  opacity: 1;
}

.task-action-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.task-action-btn:hover {
  background: var(--valpo-green);
  color: white;
}

/* Profile Menu Section */
.profile-menu-section {
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}

.profile-menu-section-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0 16px 8px;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s;
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #10b981;
}

.notification.error {
  border-left: 4px solid #ef4444;
}

.notification.info {
  border-left: 4px solid #3b82f6;
}

/* Loading States */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  color: var(--text-muted);
  font-size: 16px;
}

.error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  color: #dc2626;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .productivity-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .staff-dashboard,
  .my-clients-view,
  .staff-kanban {
    padding: 16px;
  }
  
  .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .client-filters {
    flex-wrap: wrap;
  }
  
  .clients-grid {
    grid-template-columns: 1fr;
  }
  
  .kanban-board {
    grid-template-columns: 1fr;
  }
  
  .staff-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .productivity-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   MESSAGES AND NOTES COMPONENTS
   ===================================*/

/* Tab Container for Messages/Notes on Dashboard */
.messages-notes-container {
  grid-column: span 2;
}

.tab-container {
  width: 100%;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.tab-btn {
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--valpo-green);
  border-bottom-color: var(--valpo-green);
}

.tab-content {
  min-height: 300px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Messages Components */
.messages-list, .messages-list-full {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-item {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px;
  border-left: 3px solid var(--border-light);
  transition: all 0.2s;
}

.message-item.unread {
  border-left-color: var(--valpo-green);
  background: #f0fdf4;
}

.message-item:hover {
  background: var(--bg-tertiary);
}

.message-item-full {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-item-full:hover {
  border-color: var(--valpo-green);
  box-shadow: var(--shadow-md);
}

.message-item-full.unread {
  border-left: 4px solid var(--valpo-green);
  background: #fafffe;
}

.message-header, .message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.message-from {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.message-time {
  font-size: 12px;
  color: var(--text-muted);
}

.unread-indicator {
  color: var(--valpo-green);
  font-size: 18px;
  line-height: 1;
}

.message-subject {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 8px 0;
}

.message-preview, .message-preview-full {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.message-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.message-item:hover .message-actions,
.message-item-full:hover .message-actions {
  opacity: 1;
}

/* Messages View */
.messages-view, .notes-view {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.messages-container {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.message-filters, .note-filters {
  display: flex;
  gap: 8px;
}

/* Notes Components */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-item {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px;
  border-left: 3px solid var(--valpo-green-light);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.note-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.note-date {
  font-size: 12px;
  color: var(--text-muted);
}

.note-content {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.note-actions {
  display: flex;
  gap: 4px;
}

.add-note-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 2px dashed var(--border-medium);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}

.add-note-btn:hover {
  border-color: var(--valpo-green);
  color: var(--valpo-green);
  background: var(--bg-secondary);
}

/* Notes View */
.notes-container {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.note-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.note-card:hover {
  border-color: var(--valpo-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.note-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.note-content-preview {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.note-client {
  font-size: 12px;
  color: var(--valpo-green);
  font-weight: 500;
  margin-bottom: 12px;
}

.note-card-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.note-card:hover .note-card-actions {
  opacity: 1;
}

.add-note-card {
  border: 2px dashed var(--border-medium);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.add-note-card:hover {
  border-color: var(--valpo-green);
  background: var(--bg-tertiary);
}

.add-note-content {
  text-align: center;
  color: var(--text-muted);
}

.add-note-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

.add-note-content p {
  font-size: 14px;
  margin: 0;
}

/* Calendar View */
.staff-calendar-view {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.calendar-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.calendar-container {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-top: 24px;
}

.coming-soon {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* Button Styles */
.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
}

.btn-danger {
  background: #ef4444;
  color: white;
  border: 1px solid #ef4444;
}

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

/* Task Completion Styles */
.task-completion-info h4 {
  color: var(--text-primary);
  margin-bottom: 16px;
}

.quality-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option:hover {
  background: var(--bg-secondary);
  border-color: var(--valpo-green);
}

.radio-option input[type="radio"] {
  margin: 0;
}

.completion-signature {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--valpo-green);
}

.signature-block {
  margin-top: 8px;
}

.signature-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.signature-role {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0;
}

.signature-timestamp {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

/* Time Tracker Styles */
.time-tracker-display {
  text-align: center;
  margin-bottom: 24px;
}

.current-time {
  font-size: 48px;
  font-weight: 700;
  color: var(--valpo-green);
  margin-bottom: 24px;
  font-family: monospace;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

/* Quick Task & Contact Log Styles */
.checkbox-group {
  margin-top: 8px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
  margin: 0;
}

/* Modal Enhancements */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

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

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

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-label.required::after {
  content: ' *';
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--valpo-green);
}

.message-details hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--border-light);
}

.message-content {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
}

/* Responsive Design for Messages/Notes */
@media (max-width: 768px) {
  .messages-notes-container {
    grid-column: span 1;
  }
  
  .notes-grid {
    grid-template-columns: 1fr;
  }
  
  .message-filters, .note-filters {
    flex-wrap: wrap;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .modal-content {
    margin: 10px;
    max-width: none;
  }
  
  .current-time {
    font-size: 36px;
  }
}

/* ===================================
   WEEKLY GOALS SYSTEM
   ================================== */

.weekly-goals-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 24px 0;
  border: 1px solid #e5e7eb;
}

.goals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.goals-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.goals-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.progress-bar {
  width: 120px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--valpo-green);
  transition: width 0.3s ease;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.goal-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.goal-card:hover {
  border-color: var(--valpo-green);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.goal-card.completed {
  background: #f0f9f4;
  border-color: var(--valpo-green);
  cursor: default;
}

.goal-card.completed:hover {
  box-shadow: none;
}

.goal-icon {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  color: var(--valpo-green);
  margin-bottom: 12px;
}

.completed-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--valpo-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.goal-content h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.goal-content p {
  margin: 0 0 16px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.goal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.goal-points {
  background: var(--valpo-green);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.completed-time {
  color: var(--valpo-green);
  font-size: 0.8rem;
  font-weight: 600;
}

.action-hint {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: italic;
}

.goals-placeholder {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  margin: 20px 0;
}

.all-goals-completed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
}

/* Goal Setting Modal */
.goal-setting-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.goal-setting-modal .modal {
  max-width: 900px;
  width: 95vw;
  max-height: 90vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.goal-modal-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.goal-modal-title i {
  font-size: 2rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.goal-modal-title h2 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.goal-modal-title p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.4;
}

.goal-setting-modal .modal-header {
  padding: 32px 32px 24px 32px;
  border-bottom: 2px solid #f3f4f6;
  background: linear-gradient(135deg, #f0f9f4 0%, #ecfdf5 100%);
}

.goal-setting-modal .modal-footer {
  padding: 24px 32px 32px 32px;
  border-top: 2px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fafafa;
}

.goal-selection-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  min-height: 0;
}

.goal-selection-body::-webkit-scrollbar {
  width: 8px;
}

.goal-selection-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.goal-selection-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.goal-selection-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.goal-instructions {
  background: #f0f9f4;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid var(--valpo-green);
}

.goals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

.goals-grid .goal-option {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.goal-option:hover {
  border-color: var(--valpo-green);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.goal-option.selected {
  border-color: var(--valpo-green);
  background: #f0f9f4;
}

.goal-option .goal-icon {
  font-size: 1.8rem;
  color: var(--valpo-green);
  margin: 0;
  flex-shrink: 0;
}

.goal-option .goal-content {
  flex: 1;
}

.goal-option .goal-content h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.goal-option .goal-content p {
  margin: 0 0 12px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.goal-checkbox {
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--valpo-green);
  font-size: 1.2rem;
}

.goal-option.selected .goal-checkbox {
  opacity: 1;
}

.selected-goals-counter {
  text-align: center;
  margin-top: 32px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.selected-goals-counter #selected-count {
  font-weight: 700;
  color: var(--valpo-green);
  font-size: 1.4rem;
}

/* Goal Completion Modal */
.goal-completion-modal .modal {
  max-width: 600px;
}

.goal-completion-form .form-group {
  margin-bottom: 24px;
}

.goal-completion-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.goal-completion-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px;
}

.goal-completion-form textarea:focus {
  outline: none;
  border-color: var(--valpo-green);
}

.impact-rating {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.impact-btn {
  flex: 1;
  min-width: 140px;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.impact-btn:hover {
  border-color: var(--valpo-green);
  background: #f0f9f4;
}

.impact-btn.selected {
  border-color: var(--valpo-green);
  background: var(--valpo-green);
  color: white;
}

.impact-btn i {
  margin-right: 8px;
}

/* Success Notifications */
.goal-success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--valpo-green);
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.goal-success-notification.show {
  transform: translateX(0);
}

.success-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-icon {
  font-size: 1.2rem;
}

.success-content h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
}

.success-content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Achievement Badge */
.achievement-badge {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 10001;
  text-align: center;
  transition: transform 0.5s ease;
}

.achievement-badge.show {
  transform: translate(-50%, -50%) scale(1);
}

.badge-content i {
  display: block;
  margin-bottom: 16px;
}

.badge-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.badge-content p {
  margin: 0;
  color: var(--text-secondary);
}

/* Confetti Animation */
.confetti-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #ff6b6b;
  z-index: 9999;
  animation: confetti-fall linear;
  pointer-events: none;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Message Tab UI Fixes */
.tab-container .tab-header {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: #f9fafb;
}

.tab-btn.active {
  color: var(--valpo-green);
  border-bottom-color: var(--valpo-green);
  background: #f0f9f4;
}

.tab-content {
  background: white;
  border-radius: 0 0 12px 12px;
  padding: 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Fix for message actions to prevent half-button issue */
.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.message-actions .btn {
  flex-shrink: 0; /* Prevent button shrinking */
  min-width: auto;
}

.message-item {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

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

/* Responsive adjustments for goals */
@media (max-width: 768px) {
  .goals-grid {
    grid-template-columns: 1fr;
  }
  
  .goal-option {
    flex-direction: column;
    text-align: center;
  }
  
  .impact-rating {
    flex-direction: column;
  }
  
  .impact-btn {
    min-width: auto;
  }
  
  .achievement-badge {
    padding: 20px;
    margin: 20px;
  }
  
  .goal-setting-modal .modal {
    margin: 20px;
    width: calc(100vw - 40px);
  }
}

/* ===================================
   ADMIN CONSOLE STYLES
   ================================== */

.admin-console {
  padding: 24px;
  background: #fafafa;
  min-height: calc(100vh - 120px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-title h1 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
}

.admin-title p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.admin-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}

.admin-section h3 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

/* Company Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.metric-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid var(--valpo-green);
}

.metric-card.revenue {
  border-left-color: #10b981;
}

.metric-card.clients {
  border-left-color: #3b82f6;
}

.metric-card.retention {
  border-left-color: #8b5cf6;
}

.metric-card.satisfaction {
  border-left-color: #f59e0b;
}

.metric-icon {
  width: 40px;
  height: 40px;
  background: var(--valpo-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.metric-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.metric-change {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
}

.metric-change.positive {
  color: #10b981;
}

.metric-change.negative {
  color: #ef4444;
}

/* Team Overview */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.team-member-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
}

.member-avatar {
  width: 48px;
  height: 48px;
  background: var(--valpo-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.member-avatar.small {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.member-info {
  flex: 1;
}

.member-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.member-role {
  color: var(--text-secondary);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 8px;
}

.member-stats {
  display: flex;
  gap: 12px;
}

.member-stats .stat {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.member-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.member-status.available {
  background: #dcfce7;
  color: #166534;
}

.member-status.ooo {
  background: #fef3c7;
  color: #92400e;
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.activity-icon.success {
  background: #10b981;
}

.activity-icon.info {
  background: #3b82f6;
}

.activity-icon.warning {
  background: #f59e0b;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.activity-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Staff Table */
.staff-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  color: var(--text-primary);
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
  border-bottom: 1px solid #e5e7eb;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background: #f8fafc;
}

.col {
  padding: 16px 12px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
}

.member-email {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.role-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.role-badge.admin {
  background: #dbeafe;
  color: #1d4ed8;
}

.role-badge.staff {
  background: #f0f9f4;
  color: #166534;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.status-badge.ooo {
  background: #fef3c7;
  color: #92400e;
}

.actions {
  display: flex;
  gap: 8px;
}

/* Permission Cards */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.permission-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

.permission-card h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.permissions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.permissions-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Portfolio Reports */
.chart-container {
  height: 200px;
  margin-bottom: 20px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.revenue-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.breakdown-item .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.breakdown-item .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.breakdown-item .change {
  font-size: 0.8rem;
  font-weight: 600;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.insight-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
}

.insight-card h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
}

.distribution-chart {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.segment.vip {
  background: #8b5cf6;
}

.segment.active {
  background: #10b981;
}

.segment.onboarding {
  background: #3b82f6;
}

.segment.attention {
  background: #f59e0b;
}

.industry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.industry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.performance-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
}

.performance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.performance-header h4 {
  margin: 0;
  color: var(--text-primary);
}

.score {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
}

.score.excellent {
  background: #dcfce7;
  color: #166534;
}

.performance-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.detail-row span:first-child {
  color: var(--text-secondary);
}

.detail-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* Responsive Admin Console */
@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 1fr;
  }
  
  .col {
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .admin-actions {
    justify-content: stretch;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
}
