/* ==========================================================================
   AKBRD Design System & Dashboard Styles
   ========================================================================== */

:root {
  /* Core HSL Palette */
  --bg-main: hsl(222, 47%, 7%);
  --bg-sidebar: hsl(222, 44%, 10%);
  --bg-card: hsl(220, 39%, 13%);
  --bg-card-hover: hsl(220, 39%, 16%);
  --bg-input: hsl(222, 40%, 10%);
  --border-color: hsl(217, 28%, 20%);
  --border-subtle: hsl(217, 28%, 15%);
  --border-focus: hsl(212, 100%, 50%);

  /* Text colors */
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 70%);
  --text-muted: hsl(215, 16%, 50%);

  /* Brand Accents */
  --accent-primary: hsl(212, 100%, 50%);
  --accent-primary-hover: hsl(212, 100%, 42%);
  --accent-cyan: hsl(186, 100%, 48%);
  --accent-emerald: hsl(152, 69%, 45%);
  --accent-amber: hsl(38, 92%, 50%);
  --accent-rose: hsl(350, 89%, 60%);
  --accent-purple: hsl(250, 78%, 65%);

  /* Glassmorphism & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

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

/* Sidebar */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 16px;
  z-index: 100;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, hsl(212, 100%, 50%), hsl(186, 100%, 48%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
}

.logo-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.1;
}

.logo-text .subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.nav-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.nav-item:hover i {
  color: var(--accent-cyan);
}

.nav-item.active {
  background-color: hsl(212, 100%, 50%, 0.12);
  color: var(--accent-primary);
  font-weight: 700;
}

.nav-item.active i {
  color: var(--accent-primary);
}

.nav-badge {
  margin-left: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Sidebar Footer / VM Card */
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
}

.vm-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.vm-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  position: relative;
}

.vm-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vm-specs {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 32px 64px 32px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.topbar-search {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.topbar-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.topbar-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 40px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.topbar-search input:focus {
  border-color: var(--border-focus);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.15);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 119, 255, 0.3);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

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

.btn-link {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-danger-sm {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-danger-sm:hover {
  background: rgba(244, 63, 94, 0.15);
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
  display: block;
}

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

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.pane-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pane-header .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

.quick-stats-row {
  display: flex;
  gap: 10px;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.pill-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.pill-value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: hsl(217, 30%, 30%);
}

.metric-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.icon-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.icon-blue { background: rgba(0, 119, 255, 0.15); color: var(--accent-primary); }
.icon-green { background: rgba(34, 197, 94, 0.15); color: var(--accent-emerald); }
.icon-orange { background: rgba(249, 115, 22, 0.15); color: var(--accent-amber); }

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.metric-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 2px 0;
}

.metric-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dashboard Split */
.dashboard-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.panel-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Compact Projects List */
.projects-list-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.project-row:hover {
  border-color: var(--border-color);
  background: var(--bg-card-hover);
}

.project-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proj-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.proj-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.proj-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--accent-emerald); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.badge-info { background: rgba(0, 119, 255, 0.15); color: var(--accent-cyan); }
.badge-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
.badge-online { color: var(--accent-emerald); font-weight: 700; }

/* Infra List */
.infra-status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.infra-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.infra-icon {
  font-size: 1.3rem;
  width: 32px;
  text-align: center;
}

.infra-details h4 {
  font-size: 0.88rem;
  font-weight: 700;
}

.infra-details p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.quick-terminal-box {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.term-header {
  background: #0e1422;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.term-body {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.term-body code {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow-x: auto;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.btn-copy:hover {
  color: var(--text-primary);
}

/* Projects Grid (Full tab) */
.projects-grid, .servers-grid, .bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card, .server-card, .bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.project-card:hover, .server-card:hover, .bot-card:hover {
  transform: translateY(-3px);
  border-color: hsl(217, 30%, 32%);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-title-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.card-category {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.45;
  flex: 1;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.8rem;
}

.card-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-link-item:hover {
  color: var(--accent-primary);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

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

/* Filters */
.filter-group {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius-md);
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-primary);
  color: #fff;
}

/* Server Cards */
.server-specs-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.server-specs-box div {
  display: flex;
  justify-content: space-between;
}

.server-specs-box span:first-child {
  color: var(--text-muted);
}

/* VM Guide Banner */
.vm-guide-banner {
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(0, 119, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.guide-icon {
  font-size: 1.6rem;
  color: var(--accent-amber);
}

.guide-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Command Generator */
.command-generator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.cmd-preset-card {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.cmd-preset-card h4 {
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.code-snippet {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.code-snippet pre {
  margin: 0;
  overflow-x: auto;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.btn-copy-code {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.btn-copy-code:hover {
  color: #fff;
}

/* Telegram Bot Tester */
.bot-tester-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.input-row input:focus {
  border-color: var(--border-focus);
}

.bot-test-result {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

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

.kanban-col {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

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

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

.col-title h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

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

.dot-todo { background: var(--accent-amber); }
.dot-in-progress { background: var(--accent-primary); }
.dot-done { background: var(--accent-emerald); }

.col-count {
  background: var(--bg-main);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.task-card {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
  transition: all var(--transition-fast);
}

.task-card:hover {
  border-color: var(--border-color);
  transform: translateY(-2px);
}

.task-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.task-priority-high { color: var(--accent-rose); font-weight: 700; }
.task-priority-medium { color: var(--accent-amber); font-weight: 700; }
.task-priority-low { color: var(--accent-emerald); font-weight: 700; }

/* Deploy Steps */
.deploy-steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deploy-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-badge {
  background: var(--accent-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step-list {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.link-external {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

.link-external:hover {
  text-decoration: underline;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

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

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

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

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

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

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input, select, textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Helpers */
.hidden { display: none !important; }
.mt-6 { margin-top: 24px; }
.mb-6 { margin-bottom: 24px; }
.text-success { color: var(--accent-emerald); }
.text-warning { color: var(--accent-amber); }
.text-danger { color: var(--accent-rose); }
.text-primary { color: var(--accent-primary); }
.text-orange { color: var(--accent-amber); }
.text-purple { color: var(--accent-purple); }

/* Responsive */
@media (max-width: 992px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .dashboard-split {
    grid-template-columns: 1fr;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 16px;
  }
}
