/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* 🎨 ORANGE-BROWN THEME */
  --color-primary: #F25C2A; /* Vibrant Orange */
  --color-primary-hover: #D94E1F;
  --color-primary-soft: #FFF4EF;

  --color-tech: #451A03; /* Deep Brown / Mocha */
  --color-tech-soft: #78350F;

  --color-secondary: #1E3A5F; /* Navy Blue */
  --color-secondary-soft: #F1F5F9;

  --color-accent: #10B981; /* Green */
  --color-accent-2: #D97706; /* Brownish Orange */

  /* ✅ STATE */
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-warning: #F59E0B;

  /* 🧠 TEXT REFINEMENT */
  --color-text-main: #1E293B; 
  --color-text-muted: #64748B;
  --color-text-accent: #F25C2A;
  --color-text-inverse: #FFFFFF;

  /* 🌤 BACKGROUND REFINEMENT */
  --color-bg-body: #FDFCFB; /* Very light warm tint */
  --color-bg-soft: #F9F5F2;
  --color-bg-card: #FFFFFF;
  --color-bg-accent: #FFF4EF;
  --color-bg-light: #FFFFFF;

  /* 🧱 BORDER REFINEMENT */
  --color-border: #E5E1DE;
  --color-border-strong: #D1C9C2;

  /* 📌 SIDEBAR REFINEMENT (BROWN) */
  --color-sidebar-bg: #451A03;
  --color-sidebar-text: #FDE6D2;
  --color-sidebar-hover: rgba(255, 255, 255, 0.05);
  --color-sidebar-active: rgba(242, 92, 42, 0.2);

  /* ✨ EFFECTS */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);

  --radius-md: 8px;
  --radius-lg: 12px;
}

[data-theme="dark"] {
  --color-bg-body: #0b1220;
  --color-bg-card: #111827;
  --color-bg-light: #1f2937;

  --color-text-main: #f9fafb;
  --color-text-muted: #9ca3af;

  --color-border: #1f2937;

  --color-primary: #ff6b4a;
  --color-secondary: #4EB09B;

  --color-accent-yellow: #ffd166;
  --color-accent-blue: #3b82f6;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background: var(--color-bg-body);
  color: var(--color-text-main);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--color-tech);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.75rem; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; }
h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }

p { margin-bottom: 1.25rem; }

.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

input,
button,
select,
textarea {
  font-family: 'Inter', sans-serif;
}

.employee-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Layout Evolution */
.layout-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  padding: 24px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  transition: 0.3s ease;
  z-index: 100;
  flex-shrink: 0;
  overflow-y: auto;
}

.main-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-bg-body);
  overflow-y: auto;
}

.page-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Glassmorphism & Cards */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.glass {
  background: rgba(15, 23, 42, 0.85);
  /* rgba equivalent of #0f172a */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sidebar Premium styling */
.sidebar-header {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-sidebar-text);
  margin-bottom: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  flex: 1 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  color: #94a3b8;
  /* Muted slate for sidebar */
  text-decoration: none;
  margin-bottom: 6px;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--color-sidebar-hover);
  color: var(--color-sidebar-text);
}

.nav-item.active {
  background: rgba(79, 70, 229, 0.15); /* Indigo-based active state */
  color: var(--color-primary);
}

/* Top Bar */
.top-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--color-sidebar-bg);
  /* Use Dark theme for header */
  color: var(--color-sidebar-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Elements */
.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  color: var(--color-text-main);
  font-size: 0.95rem;
  transition: 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  font-size: 0.95rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
}

.btn-success:hover {
  background: #059669; /* Slightly darker green */
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  background: var(--color-bg-light);
  color: var(--color-text-main);
}

[data-theme="dark"] .btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.2s ease-out forwards;
  will-change: opacity, transform;
}

/* Notification Popup */
.popup-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-primary);
  padding: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 300px;
  animation: fadeIn 0.3s ease-out forwards;
}

/* Drawer / Slide-over from right */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  width: 520px;
  max-width: 90vw;
  height: 100vh;
  max-height: 100vh;
  background: var(--color-bg-card);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.drawer-scroll-area {
  flex: 1 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-overlay.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.drawer-header h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0;
}

.drawer-close {
  color: var(--color-text-muted);
  font-size: 1.5rem;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.drawer-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-danger);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  transition: all 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
  background-color: var(--color-bg-card);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
}

/* Icon buttons for table actions */
.icon-btn {
  padding: 6px;
  border-radius: 6px;
  color: var(--color-text-muted);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-primary);
}

.icon-btn-danger:hover {
  background: rgba(234, 105, 105, 0.1);
  color: var(--color-danger);
}

[data-theme="dark"] .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .icon-btn-danger:hover {
  background: rgba(234, 105, 105, 0.15);
}

/* Org row hover */
.org-row-hover:hover {
  background: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .org-row-hover:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ========== Hamburger button (hidden on desktop) ========== */
.hamburger-btn {
  display: none;
  font-size: 1.5rem;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--color-text-main);
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: 0.2s;
}

.hamburger-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ========== Sidebar overlay (hidden on desktop) ========== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-overlay.overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-overlay {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 260px;
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
  }

  .layout-container {
    flex-direction: column;
  }

  .main-content {
    width: 100%;
  }

  .top-bar {
    padding: 0 16px;
    height: 56px;
  }
 
  .page-container {
    padding: 16px !important;
  }
 
  h1 { font-size: 1.6rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.2rem !important; }
  h4 { font-size: 1.05rem !important; }
 
  body { font-size: 15px; }

  /* Dashboard grid: stack vertically */
  .page-container > div > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px !important;
  }

  .nav-btns {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-gap: 8px;
    gap: 8px;
  }

  .mode-switch {
    width: 100%;
    margin-top: 12px;
  }

  /* Organization page: stack columns */
  .page-container div[style*="gridTemplateColumns"] {
    grid-template-columns: 1fr !important;
  }

  /* Form row: stack */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* ========== TABLE → CARD LAYOUT ON MOBILE ========== */
  .card table {
    display: block;
    overflow-x: visible;
  }

  .card table thead {
    display: none;
  }

  .card table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .card table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-light);
    border-radius: 12px !important;
    padding: 16px;
    border: 1px solid var(--color-border) !important;
    gap: 8px;
    transition: 0.2s;
  }

  .card table tbody tr:hover {
    box-shadow: var(--shadow-md);
  }

  .card table tbody tr td {
    padding: 4px 0 !important;
    border: none !important;
    text-align: left !important;
  }

  .card table tbody tr td:last-child {
    margin-top: 8px;
    padding-top: 12px !important;
    border-top: 1px solid var(--color-border) !important;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  /* Task cards in reports/lists on mobile */
  .task-item {
    padding: 12px !important;
    border-radius: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .task-item > div:last-child {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
  }

  /* Bigger touch targets */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
    padding: 14px 16px !important;
  }

  .btn {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }

  /* Drawer: full width on mobile */
  .drawer-content {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .drawer-scroll-area {
    padding: 16px 20px;
  }

  /* Search bar */
  .search-bar {
    padding: 8px 12px !important;
    font-size: 0.85rem;
  }

  /* h1 smaller on mobile */
  h1 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  /* ========== CALENDAR MOBILE: Week View Priority ========== */
  .calendar-header {
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
  }

  .header-left {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .header-left h2 {
    font-size: 1.1rem !important;
    text-align: left;
    margin: 0;
  }

  .nav-btns {
    justify-content: flex-end;
  }

  .mode-switch {
    width: 100%;
    justify-content: center;
  }

  .mode-switch button {
    flex: 1 1;
    text-align: center;
    justify-content: center;
  }

  /* Month view: compact on mobile */
  .calendar-grid.month {
    min-height: auto;
  }

  .calendar-day {
    min-height: 70px !important;
    padding: 4px !important;
  }

  .day-number {
    font-size: 0.75rem !important;
  }

  .task-pill {
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
  }

  /* Week view: VERTICAL layout on mobile (list style, not horizontal) */
  .calendar-grid.week {
    grid-template-columns: 1fr !important;
    gap: 0;
    background: transparent;
  }

  .calendar-column {
    border-bottom: 1px solid var(--color-border);
  }

  .column-header {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-bg-light);
  }

  .day-name {
    font-size: 0.8rem !important;
  }

  .day-number-large {
    font-size: 1.2rem !important;
  }

  .column-content {
    padding: 8px 16px 16px;
  }

  .task-card {
    padding: 12px !important;
  }

  .task-card-title {
    font-size: 0.9rem !important;
  }

  /* Year view: 2 columns on mobile */
  .year-view {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .month-mini {
    padding: 14px !important;
  }

  /* ========== KANBAN BOARD MOBILE ========== */
  .board-container {
    flex-direction: column !important;
    overflow-x: visible !important;
    gap: 16px;
  }

  .board-column {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-height: none !important;
  }

  .column-cards {
    padding: 8px;
    max-height: 400px;
  }

  /* Task cards: enhanced card design on mobile */
  .task-card {
    border-radius: 12px !important;
    padding: 16px !important;
  }

  .task-card:hover {
    transform: none !important;
  }

  /* ========== TIMELINE MOBILE ========== */
  .timeline-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .timeline-grid-header {
    min-width: 900px;
  }

  .timeline-row {
    min-width: 900px;
  }

  /* ========== VIEW SWITCHER MOBILE ========== */
  .view-switcher {
    width: 100%;
  }

  .view-btn {
    flex: 1 1;
    text-align: center;
    justify-content: center;
    padding: 10px 8px !important;
    font-size: 0.8rem !important;
  }

  /* Search + filter row */
  .search-container {
    max-width: 100% !important;
  }

  /* ========== ORGANIZATION CARD LAYOUT MOBILE ========== */
  .org-row-hover {
    border-radius: 8px;
  }

  /* Dashboard cards: enhanced for mobile */
  .card {
    border-radius: 12px !important;
  }

  /* Form grids stack on mobile */
  div[style*="gridTemplateColumns: \"1fr 1fr\""],
  div[style*="gridTemplateColumns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ========== TABLET (between 769 and 1024) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }

  .page-container {
    padding: 24px !important;
  }

  /* Calendar week view: still horizontal but tighter */
  .calendar-day {
    min-height: 90px;
  }

  /* Year view: 3 columns on tablet */
  .year-view {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Board: allow horizontal scroll but smaller columns */
  .board-column {
    flex: 0 0 280px;
  }
}

/* ========== KANBAN BOARD STYLES ========== */
.board-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 24px;
  min-height: calc(100vh - 250px);
  align-items: flex-start;
}

.board-column {
  flex: 0 0 320px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  /* Distinct column background */
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 280px);
}

.column-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.column-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-count {
  background: var(--color-bg-light);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.column-cards {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1 1;
}

.task-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(var(--transition-timing));
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  border-left-width: 4px;
}

.task-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.task-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.4;
  flex: 1 1;
}

.task-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: capitalize;
}

.badge-low {
  background: #fee2e2;
  color: #ef4444;
}

.badge-medium {
  background: #ffedd5;
  color: #f97316;
}

.badge-high {
  background: #ccfbf1;
  color: #0d9488;
}

.badge-track {
  background: #fef9c3;
  color: #ca8a04;
}

.badge-risk {
  background: #fee2e2;
  color: #dc2626;
}

.task-card-description {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.task-card-avatars {
  display: flex;
  align-items: center;
}

.avatar-stack {
  display: flex;
  margin-left: 4px;
}

.avatar-stack>* {
  margin-left: -8px;
  border: 2px solid var(--color-bg-card);
  transition: transform 0.2s;
}

.avatar-stack>*:first-child {
  margin-left: 0;
}

.avatar-stack>*:hover {
  transform: translateY(-4px);
  z-index: 10;
}

.task-card-stats {
  display: flex;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-card-image {
  width: calc(100% + 32px);
  margin: -16px -16px 0 -16px;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

/* View Switcher */
.view-switcher {
  display: flex;
  background: var(--color-bg-light);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.view-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
}

.view-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.search-container {
  position: relative;
  flex: 1 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

/* Premium Styles Fixes */

/* Buttons: completely borderless */
.btn-primary,
.btn-secondary,
.btn-ghost,
.icon-btn,
.view-btn,
.nav-btns button,
.mode-switch button,
.hamburger-btn,
.drawer-close,
button[class*="btn"] {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Form inputs & cards: subtle bottom accent */
.form-input,
.form-select,
.form-textarea {
  border: 1.5px solid var(--color-border) !important;
  box-shadow: none !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15) !important;
}

.card {
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-sm) !important;
}

.task-card {
  border-left-width: 4px !important;
}

.btn-primary {
  background: var(--color-primary) !important;
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--color-primary-dark) !important;
}

.report-btn,
.comment-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(var(--color-primary-rgb, 224, 122, 95), 0.1);
  color: var(--color-primary);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none !important;
}

.report-btn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.report-btn:hover {
  background: #f59e0b;
  color: #fff;
}

.comment-btn {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.comment-btn:hover {
  background: #6366f1;
  color: #fff;
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

/* Premium Timeline */
.timeline-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.timeline-header-premium {
  border-bottom: 1px solid var(--color-border);
}

.timeline-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--color-bg-light);
}

.timeline-grid-header {
  display: grid;
  grid-template-columns: 240px repeat(14, 1fr);
  border-top: 1px solid var(--color-border);
}

.timeline-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  border-left: 1px solid var(--color-border);
  font-size: 0.75rem;
}

.timeline-day-header.today {
  background: rgba(224, 122, 95, 0.05);
  color: var(--color-primary);
  font-weight: 700;
}

.day-name {
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-body-premium {
  max-height: 600px;
  overflow-y: auto;
}

.timeline-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--color-border);
  min-height: 72px;
}

.timeline-task-info {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg-card);
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 10;
}

.timeline-task-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-task-assignee {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.timeline-grid-row {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  position: relative;
}

.timeline-grid-cell {
  border-left: 1px solid var(--color-border);
  height: 100%;
}

.timeline-bar {
  position: absolute;
  top: 14px;
  bottom: 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.timeline-bar:hover {
  transform: translateY(-2px) scale(1.02);
  z-index: 10;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.timeline-bar.task-todo {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.timeline-bar.task-in_progress {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.timeline-bar.task-done {
  background: linear-gradient(135deg, #10b981, #059669);
}

.timeline-bar.task-overdue {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.bar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Layout Density */
.main-content .page-container {
  padding: 24px 16px !important;
  max-width: 1600px !important;
}
