@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #e6f4ea;
  --bg-gradient: linear-gradient(135deg, #f4f7f5 0%, #e8efe9 100%);
  --sidebar-bg: #1e293b;
  --card-bg: rgba(255, 255, 255, 0.9);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --priority-high: #f43f5e;
  --priority-medium: #fbbf24;
  --priority-low: #3b82f6;
  
  --todo-color: #f1f5f9;
  --todo-border: #cbd5e1;
  --progress-color: #eff6ff;
  --progress-border: #93c5fd;
  --done-color: #ecfdf5;
  --done-border: #6ee7b7;
  
  --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.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

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

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

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

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.brand-name h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-name p {
  font-size: 0.75rem;
  color: #a7f3d0;
  font-weight: 500;
}

.nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 600;
}

.role-switcher {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.role-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.role-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.role-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.role-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.category-select-container {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: none; /* Only visible when Team view is active */
}

.category-select-container.visible {
  display: block;
}

.category-select-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition-fast);
}

.cat-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
}

.cat-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #10b981;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.backup-btns {
  display: flex;
  gap: 8px;
}

.btn-utility {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.btn-utility:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Main Content Area Styling */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

/* Main Header */
.main-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 16px 36px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-title h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.header-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-widgets {
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-widget {
  background: var(--primary-light);
  color: var(--primary-hover);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* View Sections Containers */
.view-section {
  display: none;
  padding: 36px;
  animation: fadeIn var(--transition-normal);
}

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

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

/* Executive Dashboard view */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-info h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-info p {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.total { background: #eff6ff; color: #3b82f6; }
.stat-icon.progress { background: #fef3c7; color: #d97706; }
.stat-icon.done { background: #ecfdf5; color: #10b981; }
.stat-icon.overdue { background: #fdf2f2; color: #ef4444; }

.stat-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Dashboard detail rows */
.dashboard-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.dashboard-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

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

.panel-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.categories-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.progress-chart-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(248, 250, 252, 0.5);
}

.svg-chart-container {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.svg-chart-container svg {
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 8;
}

.circle-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.chart-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.chart-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Activity feed timeline */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
}

.activity-item {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.activity-content {
  display: flex;
  flex-direction: column;
}

.activity-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* HR Overview Section styling */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  background: var(--card-bg);
  padding: 16px 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.search-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.input-search {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  width: 250px;
  outline: none;
  transition: var(--transition-fast);
}

.input-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.select-filter {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  background-color: #fff;
  outline: none;
  cursor: pointer;
  max-width: 200px;
}

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

.view-toggle-group {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  gap: 2px;
}

.toggle-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.toggle-btn.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* HR Grid View / Table View styles */
.hr-tasks-container {
  min-height: 300px;
}

.hr-tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card layout specifically for HR Overview grid */
.hr-category-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.hr-category-card h3 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hr-category-card h3 span {
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.hr-mini-task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.hr-mini-task {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hr-mini-task:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  background: #fff;
}

.hr-mini-task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.hr-mini-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Table layout styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.hr-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.hr-table th, .hr-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.hr-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-muted);
}

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

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

/* Kanban Board Section */
.kanban-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.category-badge-title {
  background: var(--primary-light);
  color: var(--primary-hover);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

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

.btn-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.kanban-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.kanban-column {
  background: rgba(226, 232, 240, 0.4);
  border-radius: var(--border-radius);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 240px);
  min-height: 500px;
}

.kanban-column-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.kanban-column.todo-col .kanban-column-header { background: #f8fafc; border-top: 4px solid var(--todo-border); }
.kanban-column.progress-col .kanban-column-header { background: #f0f7ff; border-top: 4px solid var(--progress-border); }
.kanban-column.done-col .kanban-column-header { background: #ecfdf5; border-top: 4px solid var(--done-border); }

.column-count {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.kanban-cards {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 400px;
  transition: background-color var(--transition-fast);
}

.kanban-cards.drag-over {
  background: rgba(16, 185, 129, 0.05);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Kanban Task Card */
.task-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

.task-card.dragging {
  opacity: 0.4;
  border: 2px dashed var(--primary);
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

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

.badge-priority {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge-priority.high { background: #ffe4e6; color: var(--priority-high); }
.badge-priority.medium { background: #fef3c7; color: #d97706; }
.badge-priority.low { background: #eff6ff; color: var(--priority-low); }

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

.card-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-action-btn:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.card-action-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.card-action-btn.delete:hover {
  color: var(--priority-high);
  background: #ffe4e6;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.7rem;
}

.card-deadline {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-deadline.overdue {
  color: var(--priority-high);
  font-weight: 600;
}

.card-deadline svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.card-assignee {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge Status styling */
.badge-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

.badge-status.todo { background: #f1f5f9; color: #475569; }
.badge-status.in_progress { background: #e0f2fe; color: #0369a1; }
.badge-status.done { background: #d1fae5; color: #047857; }

/* Modals Styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #fff;
  border-radius: var(--border-radius);
  width: 500px;
  max-width: 90%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-backdrop.visible .modal-container {
  transform: scale(1);
}

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

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.modal-body {
  padding: 24px;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

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

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  background: #f8fafc;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

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

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

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

/* Modal details view styling */
.detail-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-hover);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  white-space: pre-wrap;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-meta-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.detail-meta-value {
  color: var(--text-main);
  font-weight: 500;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  animation: slideUp 0.3s forwards, fadeOut 0.3s 2.7s forwards;
}

@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-details {
    grid-template-columns: 1fr;
  }
  .hr-tasks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban-columns {
    grid-template-columns: 1fr;
  }
  .kanban-column {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .category-select-container {
    padding-top: 8px;
    margin-top: 8px;
  }
  .main-header {
    padding: 16px 20px;
  }
  .view-section {
    padding: 20px;
  }
  .categories-progress-grid {
    grid-template-columns: 1fr;
  }
  .hr-tasks-grid {
    grid-template-columns: 1fr;
  }
  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  .input-search, .select-filter {
    width: 100%;
    max-width: none;
  }
}
