/* ==========================================================================
   PautaFlow - Design System & Modern Responsive Styles
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-app: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --bg-glass: rgba(30, 41, 59, 0.75);
  --bg-input: #0f172a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.2);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Brand Accents */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  
  --secondary: #0ea5e9;
  --secondary-light: rgba(14, 165, 233, 0.15);

  /* Status Colors */
  --color-backlog: #8b5cf6;
  --color-in-progress: #3b82f6;
  --color-review: #f59e0b;
  --color-done: #10b981;

  --color-urgente: #ef4444;
  --color-alta: #f97316;
  --color-media: #3b82f6;
  --color-baixa: #64748b;

  /* UI Elements */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #f8fafc;
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1700px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem 1.5rem;
}

/* Header Hero Banner with Image */
.header-hero-banner {
  position: relative;
  width: 100%;
  height: 150px;
  max-height: 150px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  contain: paint;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7) contrast(1.1);
  transition: transform 0.5s ease;
  display: block;
}

.header-hero-banner:hover .hero-banner-img {
  transform: scale(1.02);
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.6) 55%, rgba(15, 23, 42, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 2rem;
  color: #fff;
  z-index: 2;
}

[data-theme="light"] .hero-banner-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(15, 23, 42, 0.1) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 0.4rem;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  color: #fff;
}

.hero-banner-overlay h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 0.25rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner-overlay p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  line-height: 1.4;
}

/* Header & Metrics Bar */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Metrics Bar */
.metrics-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 95px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-card.warning .metric-value { color: var(--color-in-progress); }
.metric-card.danger .metric-value { color: var(--color-urgente); }
.metric-card.success .metric-value { color: var(--color-done); }

/* Buttons & Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
  color: var(--color-urgente);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-icon-sm:hover {
  background: var(--bg-card-hover);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.view-switchers {
  display: flex;
  background: var(--bg-card);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.view-btn:hover:not(.active) {
  color: var(--text-main);
}

/* Date Navigator */
.date-navigator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.current-date-title {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 140px;
  text-align: center;
}

/* Search & Filters */
.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  color: var(--text-dim);
  font-size: 1rem;
}

.search-box input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 2rem 0.5rem 2.25rem;
  color: var(--text-main);
  font-size: 0.85rem;
  width: 200px;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  width: 250px;
}

.btn-clear {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}

.select-filter {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.select-filter:focus {
  border-color: var(--primary);
}

/* View Panels */
.main-content {
  flex: 1;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   1. CALENDAR VIEW
   ========================================================================== */
.calendar-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 0.75rem 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(130px, auto);
}

.calendar-day-cell {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-card);
  transition: background-color var(--transition-fast);
  min-height: 130px;
}

.calendar-day-cell:nth-child(7n) {
  border-right: none;
}

.calendar-day-cell.other-month {
  opacity: 0.35;
  background: rgba(0, 0, 0, 0.05);
}

.calendar-day-cell.today {
  background: var(--primary-light);
}

.calendar-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.day-number {
  font-weight: 700;
  font-size: 0.9rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.calendar-day-cell.today .day-number {
  background: var(--primary);
  color: #fff;
}

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

.calendar-day-cell:hover .btn-add-day-pauta {
  opacity: 1;
}

.btn-add-day-pauta:hover {
  color: var(--primary);
}

.pauta-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-app);
  border-left: 3px solid var(--primary);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pauta-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pauta-pill.done {
  opacity: 0.6;
  text-decoration: line-through;
}

.pauta-pill-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pauta-pill-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   2. KANBAN BOARD VIEW (Trello Style)
   ========================================================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.kanban-column {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
  box-shadow: var(--shadow-sm);
}

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

.column-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

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

.status-dot.backlog { background: var(--color-backlog); }
.status-dot.in_progress { background: var(--color-in-progress); }
.status-dot.review { background: var(--color-review); }
.status-dot.done { background: var(--color-done); }

.column-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.kanban-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  min-height: 120px;
  flex: 1;
}

/* Kanban Pauta Card */
.kanban-card {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

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

.kanban-card-top-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-card-delete {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.kanban-card:hover .btn-card-delete {
  opacity: 1;
}

.btn-card-delete:hover {
  color: var(--color-urgente);
  background: rgba(239, 68, 68, 0.12);
}

.pauta-pill-delete {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.pauta-pill:hover .pauta-pill-delete {
  opacity: 1;
}

.pauta-pill-delete:hover {
  color: var(--color-urgente);
}

.tag-category {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}

.tag-priority {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.tag-priority.urgente { background: rgba(239, 68, 68, 0.15); color: var(--color-urgente); }
.tag-priority.alta { background: rgba(249, 115, 22, 0.15); color: var(--color-alta); }
.tag-priority.media { background: rgba(59, 130, 246, 0.15); color: var(--color-media); }
.tag-priority.baixa { background: rgba(100, 116, 139, 0.15); color: var(--color-baixa); }

.kanban-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  color: var(--text-main);
}

.kanban-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.5rem;
}

.card-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-assignee {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-add-card {
  margin-top: 0.85rem;
  width: 100%;
  padding: 0.6rem;
  background: transparent;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-add-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   3. AGENDA VIEW
   ========================================================================== */
.agenda-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.agenda-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.agenda-date-picker h3 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.agenda-date-picker input {
  width: 100%;
  padding: 0.65rem;
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 1.25rem;
}

.agenda-day-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.agenda-timeline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-height: 450px;
  box-shadow: var(--shadow-sm);
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.timeline-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.timeline-title:hover {
  color: var(--primary);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

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

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

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

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

label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);

}

input[type="text"],
input[type="date"],
input[type="time"],
select,
textarea {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

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

.subtasks-builder {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.subtask-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.subtask-input-row input {
  flex: 1;
}

.modal-subtask-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-subtask-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

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

.modal-actions-right {
  display: flex;
  gap: 0.75rem;
}

/* Detail Modal Specifics */
.detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  background: var(--bg-app);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-value {
  font-size: 0.88rem;
  font-weight: 700;
}

.description-box {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.detail-section {
  margin-bottom: 1.25rem;
}

.detail-section h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.subtask-progress-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: var(--bg-app);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.checklist-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  background: var(--bg-app);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.checklist-item.checked {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-hero-banner {
    height: 110px;
    max-height: 110px;
  }
  .hero-banner-overlay {
    padding: 0.85rem 1.25rem;
  }
  .hero-banner-overlay h2 {
    font-size: 1.1rem;
  }
  .hero-banner-overlay p {
    display: none;
  }
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .metrics-bar {
    width: 100%;
    overflow-x: auto;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .agenda-container {
    grid-template-columns: 1fr;
  }
}
