/* Global Design Tokens & Variables */
:root {
  --bg-app: #f4f6f8;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --border-color: #eaedf1;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  
  /* Brand color scheme matching Softech green */
  --brand: #10b981;
  --brand-hover: #059669;
  --brand-light: #e6f4ea;
  
  /* Status Colors */
  --color-new: #3b82f6;      /* Blue */
  --color-contacted: #f59e0b;/* Gold/Orange */
  --color-closed: #10b981;   /* Green */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 20px 40px rgba(16, 24, 40, 0.04);
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Core Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  background: var(--bg-app);
  font-family: 'Inter', sans-serif;
  display: flex;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Sidebar Styling */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 24px 16px;
}

.sidebar-header {
  padding: 8px 12px 24px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--brand);
}

.brand-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  margin-top: 8px;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
  scrollbar-width: thin;
}

.side-nav::-webkit-scrollbar {
  width: 4px;
}
.side-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-group-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 6px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 550;
  transition: var(--transition);
  cursor: pointer;
}

.nav-item i {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
  color: #9ca3af;
  transition: var(--transition);
}

.nav-item span {
  flex: 1;
}

.nav-item .chevron {
  width: 14px;
  height: 14px;
  color: #9ca3af;
}

.nav-item:hover {
  background: #f9fafb;
  color: var(--text-main);
}

.nav-item:hover i {
  color: var(--text-main);
}

.nav-item.active {
  background: var(--brand-light);
  color: var(--brand-hover);
}

.nav-item.active i {
  color: var(--brand-hover);
}

/* Sidebar Footer */
.side-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 10px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  position: relative;
}

.status-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  background: #f3f4f6;
  color: var(--text-main);
}

.footer-links i {
  width: 14px;
  height: 14px;
}

/* Main Content Area */
.dashboard {
  margin-left: 260px;
  flex: 1;
  padding: 32px 40px;
  max-width: calc(100vw - 260px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Topbar Layout */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.crumb-link {
  font-weight: 550;
}

.crumb-active {
  color: var(--text-main);
  font-weight: 600;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}

.total-count-badge {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  background: #eef1f6;
  padding: 2px 10px;
  border-radius: 99px;
}

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

/* Buttons and Controls */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.action-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.action-btn i {
  width: 16px;
  height: 16px;
  color: #4b5563;
}

.action-btn .chevron-mini {
  width: 14px;
  height: 14px;
  color: #9ca3af;
}

.icon-only-btn {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.view-toggles {
  display: flex;
  background: #eef1f6;
  padding: 4px;
  border-radius: 10px;
}

.toggle-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn i {
  width: 16px;
  height: 16px;
}

.toggle-btn:hover {
  color: var(--text-main);
}

.toggle-btn.active {
  background: #ffffff;
  color: var(--brand-hover);
  box-shadow: var(--shadow-sm);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  background: var(--brand);
  color: var(--text-inverse);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.primary-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.primary-btn i {
  width: 16px;
  height: 16px;
}

/* Toolbar Filters */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.filter-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.filter-dropdown-btn:hover {
  background: #f9fafb;
}

.filter-dropdown-btn i {
  width: 14px;
  height: 14px;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
}

.search-container input {
  width: 100%;
  height: 38px;
  padding: 0 16px 0 38px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-main);
  background: #f9fafb;
  transition: var(--transition);
}

.search-container input:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.filter-select-wrapper {
  position: relative;
}

.filter-select-wrapper select {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-main);
  background: #ffffff;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select-wrapper select:hover {
  border-color: #d1d5db;
}

.filter-select-wrapper::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #6b7280;
  pointer-events: none;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.summary-card {
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.summary-card.total::before { background: #9ca3af; }
.summary-card.new::before { background: var(--color-new); }
.summary-card.contacted::before { background: var(--color-contacted); }
.summary-card.closed::before { background: var(--color-closed); }

.card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-card.total .icon-wrap { background: #f3f4f6; color: #4b5563; }
.summary-card.new .icon-wrap { background: #eff6ff; color: var(--color-new); }
.summary-card.contacted .icon-wrap { background: #fffbeb; color: var(--color-contacted); }
.summary-card.closed .icon-wrap { background: #ecfdf5; color: var(--color-closed); }

.icon-wrap i {
  width: 20px;
  height: 20px;
}

.card-left p {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-left strong {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

/* Views Panel & Content Toggling */
.view-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* Kanban Board Columns */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.kanban-column {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 16px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 12px;
  border-bottom: 1px dashed #cbd5e1;
}

.column-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-new { background: var(--color-new); }
.dot-contacted { background: var(--color-contacted); }
.dot-closed { background: var(--color-closed); }

.column-header-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.column-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 1px 6px;
  border-radius: 99px;
}

.column-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-amount {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.column-menu-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.column-menu-btn:hover {
  color: #475569;
}

.column-menu-btn i {
  width: 16px;
  height: 16px;
}

/* Kanban Column Drop Zone Styling */
.column-cards-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 450px;
  transition: var(--transition);
  border-radius: var(--radius-lg);
  padding: 2px;
}

.column-cards-container.drag-over {
  background: rgba(16, 185, 129, 0.04);
  outline: 2px dashed rgba(16, 185, 129, 0.3);
  outline-offset: 4px;
}

/* Kanban Cards Styling */
.lead-card {
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  cursor: grab;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease;
  user-select: none;
}

.lead-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(16, 24, 40, 0.08), 0 4px 12px -5px rgba(16, 24, 40, 0.03);
  border-color: #cbd5e1;
}

.lead-card:active {
  cursor: grabbing;
}

.lead-card.dragging {
  opacity: 0.4;
  transform: scale(0.96);
  border-color: var(--brand);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.card-title-wrap {
  flex: 1;
  min-width: 0;
}

.card-title-wrap h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-service-badge {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-more-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.card-more-btn:hover {
  color: #475569;
}

.card-more-btn i {
  width: 14px;
  height: 14px;
}

/* Card details grid (2x2 layout) */
.card-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-bottom: 14px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  min-width: 0;
}

.detail-item i {
  width: 13px;
  height: 13px;
  color: #94a3b8;
  flex-shrink: 0;
}

.detail-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-item.value-indicator {
  font-weight: 700;
  color: #0f172a;
}

/* Owner & Progress bar styling */
.card-progress-owner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.owner-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.owner-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #475569;
}

.owner-name {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.progress-track {
  width: 50px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
}

.progress-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-hover);
  background: var(--brand-light);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Card footer row */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
}

.card-date i {
  width: 12px;
  height: 12px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-action-link {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.card-action-link:hover {
  background: var(--brand-light);
  color: var(--brand-hover);
}

.card-action-link i {
  width: 12px;
  height: 12px;
}

/* Empty State column card */
.empty-col-message {
  padding: 30px 15px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.4);
}

/* List View (Table Mode) Styling */
.table-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leads-table th {
  background: #f8fafc;
  padding: 14px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid var(--border-color);
}

.leads-table td {
  padding: 14px 20px;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

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

.leads-table tr:hover td {
  background: #f8fafc;
}

.table-client-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-client-cell h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.table-client-cell p {
  font-size: 11px;
  color: var(--text-muted);
}

.table-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: capitalize;
}

.table-status-badge.status-new {
  background: #eff6ff;
  color: var(--color-new);
}

.table-status-badge.status-contacted {
  background: #fffbeb;
  color: var(--color-contacted);
}

.table-status-badge.status-closed {
  background: #ecfdf5;
  color: var(--color-closed);
}

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

.actions-col {
  width: 100px;
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

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

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.close-modal-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.close-modal-btn:hover {
  color: #475569;
}

.close-modal-btn i {
  width: 20px;
  height: 20px;
}

/* Form Styles inside Modals */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-grid-inner {
  display: flex;
  gap: 14px;
}

.flex-row {
  flex-direction: row;
}

.flex-1 {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.form-group input,
.form-group select,
.form-group textarea {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-main);
  background: #f8fafc;
  transition: var(--transition);
}

.form-group textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.modal-actions-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.modal-actions-edit .right-actions {
  display: flex;
  gap: 10px;
}

.delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.delete-btn i {
  width: 14px;
  height: 14px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.ghost-btn:hover {
  background: #f9fafb;
  color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kanban-column {
    min-height: auto;
  }
  .column-cards-container {
    min-height: 150px;
  }
}

@media (max-width: 1024px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none; /* In a production app, we would add a mobile menu toggle, but let's focus on the desktop UI dashboard match first */
  }
  .dashboard {
    margin-left: 0;
    max-width: 100vw;
    padding: 20px;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-left {
    width: 100%;
  }
  .search-container {
    max-width: none;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-inner {
    flex-direction: column;
    gap: 14px;
  }
}