:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-primary-soft: rgba(59, 130, 246, 0.1);
  --color-text: #0f172a;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-soft: #f1f5f9;
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  
  --sidebar-width: 260px;
  --header-height: 72px;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --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-soft: 0 10px 40px rgba(0,0,0,0.03);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  background: transparent;
  transition: all 0.2s ease;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

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

.sidebar {
  width: var(--sidebar-width);
  background: #0f172a;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-nav {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sidebar-nav a.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar-footer {
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-user-info {
  margin-bottom: 12px;
  padding: 0 8px;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 14px;
}

.sidebar-user-role {
  font-size: 12px;
  color: #64748b;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon-btn {
  color: var(--color-text-secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.header-icon-btn:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.page-content {
  flex: 1;
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

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

.page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

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

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.card-body {
  padding: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

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

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

.btn-danger {
  background: #fee2e2;
  color: var(--color-danger);
}

.btn-danger:hover {
  background: var(--color-danger);
  color: #fff;
}

.btn-ghost {
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Search Input */
.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text);
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-input:hover {
  border-color: var(--color-text-muted);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
  outline: none;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination .btn-secondary {
  min-width: 80px;
}

.pagination .btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination .btn-secondary:not(:disabled):hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Tables */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  text-align: left;
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-bg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 16px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text);
}

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

.data-table tr:hover td {
  background: var(--color-border-soft);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

/* SearchableSelect */
.ss-root {
  position: relative;
}

.ss-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
}

.ss-control:hover {
  border-color: var(--color-text-muted);
}

.ss-root:focus-within .ss-control,
.ss-root .ss-control.ss-open {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.ss-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text);
}

.ss-placeholder {
  color: var(--color-text-muted);
}

.ss-arrow {
  font-size: 10px;
  color: var(--color-text-muted);
  transition: transform 0.2s;
  margin-left: 8px;
}

.ss-arrow-open {
  transform: rotate(180deg);
}

.ss-clear {
  position: absolute;
  right: 32px;
  bottom: 6px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-clear:hover {
  color: var(--color-text);
}

.ss-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  animation: ss-in 0.15s ease-out;
}

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

.ss-search-wrap {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid var(--color-border-soft);
}

.ss-search {
  width: 100%;
  padding: 8px 30px 8px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text);
  outline: none;
}

.ss-search:focus {
  border-color: var(--color-primary);
}

.ss-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.ss-search-clear:hover {
  color: var(--color-text);
}

.ss-options {
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

.ss-option {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.1s;
}

.ss-option:hover {
  background: var(--color-bg);
}

.ss-option-selected {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 500;
}

.ss-option-selected:hover {
  background: var(--color-primary-soft);
}

.ss-no-results {
  padding: 12px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-default { background: #f1f5f9; color: #475569; }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--color-border-soft);
  flex-shrink: 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 32px;
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-bg);
  flex-shrink: 0;
}

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

.kanban-column {
  min-width: 0;
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
}

.kanban-column-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-column-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-column-count {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--color-text-secondary);
}

.kanban-column-body {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
}

.kanban-card {
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: all 0.2s;
}

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

/* Auth Page */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 50%),
              radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 50%);
  background-color: #f8fafc;
}

.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--color-border-soft);
}

.auth-logo {
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  color: var(--color-primary);
  letter-spacing: -1px;
}

.auth-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.widget::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, var(--color-primary-soft), transparent 70%);
  opacity: 0.5;
}

.widget-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.widget-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.widget-value {
  font-size: 32px;
  font-weight: 800;
  margin: 4px 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.widget-trend {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up { color: var(--color-success); }
.trend-down { color: var(--color-danger); }

/* Utility Classes */
.text-muted { color: var(--color-text-secondary); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(0,0,0,0.2);
  }
  .main-content {
    margin-left: 0;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .page-content {
    padding: 20px;
  }
  .dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 640px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .header {
    padding: 0 16px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 50px;
  }
  .calendar-day-number {
    font-size: 12px;
    width: 24px;
    height: 24px;
  }
  .calendar-task-chip-text {
    display: none;
  }
  .calendar-task-chip {
    justify-content: center;
    padding: 2px;
    border-left-width: 2px;
  }
  .calendar-nav-title {
    font-size: 15px;
  }
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ===== Calendar ===== */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.calendar-main .card {
  overflow: hidden;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-soft);
}

.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all 0.15s;
}

.calendar-nav-btn:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.calendar-nav-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: -0.01em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekday {
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border-soft);
}

.calendar-day {
  min-height: 100px;
  padding: 8px;
  border-right: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

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

.calendar-day:hover {
  background: var(--color-bg);
}

.calendar-day.other-month {
  background: transparent;
}

.calendar-day.other-month .calendar-day-number {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.calendar-day.today {
  background: rgba(59, 130, 246, 0.03);
}

.calendar-day.selected {
  background: var(--color-primary-soft);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

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

.calendar-day-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

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

.calendar-urgent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-danger);
  flex-shrink: 0;
}

.calendar-day-tasks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.calendar-task-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--color-surface);
  border-left: 3px solid;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.15s;
  overflow: hidden;
}

.calendar-task-chip:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.calendar-task-chip.completed {
  opacity: 0.7;
  border-left-color: #10b981 !important;
  background: #f0fdf4;
}

.calendar-task-chip-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-more-tasks {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 2px 6px;
}

/* Sidebar */
.calendar-sidebar .card {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

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

.calendar-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: capitalize;
}

.calendar-sidebar-body {
  padding: 16px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

.calendar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
}

.calendar-task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-task-card {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.15s;
}

.calendar-task-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-soft);
}

.calendar-task-card.completed {
  opacity: 0.7;
  border-left: 3px solid #10b981;
}

.calendar-task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-task-time-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.calendar-task-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.calendar-task-card-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendar-task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.calendar-task-assignee {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.calendar-task-priority {
  font-weight: 600;
}

/* Calendar responsive */
@media (max-width: 1024px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-sidebar .card {
    position: static;
  }
  .calendar-sidebar-body {
    max-height: 400px;
  }
  .calendar-day {
    min-height: 70px;
    padding: 4px;
  }
  .calendar-task-chip {
    font-size: 10px;
    padding: 2px 4px;
  }
  .kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .calendar-day {
    min-height: 50px;
  }
  .calendar-day-number {
    font-size: 12px;
    width: 24px;
    height: 24px;
  }
  .calendar-task-chip-text {
    display: none;
  }
  .calendar-task-chip {
    justify-content: center;
    padding: 2px;
    border-left-width: 2px;
  }
  .calendar-nav-title {
    font-size: 15px;
  }
}
