/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base: #0e1117;
  --bg-card: #141a24;
  --bg-sidebar: #0b1120;
  --bg-modal: #141a24;
  --border: rgba(94, 132, 196, 0.13);

  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.08);
  --success: #34d399;
  --danger: #fb7185;
  --warn: #f59e0b;

  --text-1: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #4a5568;

  --sidebar-w: 260px;
  --topbar-h: 72px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

body,
aside,
header,
main,
.card,
.task-card,
.a-card,
.a-sidebar,
.a-topbar,
.modal,
.a-modal,
.user-profile,
.a-admin-profile {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* ─── AUTH SCREEN ─── */
.auth-screen {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.auth-brand-panel {
  flex: 1;
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1f3c 50%, #162d5a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.auth-logo {
  width: 72px;
  height: 72px;
  background: transparent;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.auth-brand-name {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(90deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.auth-brand-tagline {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 40px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 500;
}

.auth-feature-item i {
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.13);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--accent-2);
  flex-shrink: 0;
}

/* Animated background orbs */
.auth-bg-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.orb-1 {
  width: 350px;
  height: 350px;
  background: var(--accent);
  top: -80px;
  left: -80px;
  animation-delay: 0s;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: #1d4ed8;
  bottom: -60px;
  right: -60px;
  animation-delay: -3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-2);
  top: 50%;
  left: 50%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(30px, 20px) scale(1.1);
  }
}

/* Right form panel */
.auth-form-panel {
  width: 480px;
  min-width: 380px;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  border-left: 1px solid var(--border);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card-header {
  margin-bottom: 32px;
}

.auth-card-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-card-header p {
  font-size: 14px;
  color: var(--text-3);
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Input with icon */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}

.input-icon-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px;
  padding: 12px 44px 12px 42px;
  outline: none;
  font-family: "Inter", sans-serif;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.input-icon-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.input-icon-wrap input::placeholder {
  color: var(--text-3);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color var(--transition);
}

.toggle-password:hover {
  color: var(--accent-2);
}

.btn-auth {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  margin-top: 4px;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-auth:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}

.auth-link {
  background: none;
  border: none;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  transition: color var(--transition);
}

.auth-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Light theme overrides */
[data-theme="light"] {
  --bg-base: #e3d4c5;
  --bg-card: #ede0d4;
  --bg-sidebar: #e3d4c5;
  --bg-modal: #ede0d4;
  --border: rgba(59, 130, 246, 0.10);
  --text-1: #1e293b;
  --text-2: #334155;
  --text-3: #64748b;
  --shadow: 0 2px 12px rgba(15, 23, 42, 0.08);

  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .auth-brand-panel {
  background: linear-gradient(135deg, #0a0e1a 0%, #0f2042 60%, #1d4ed8 100%);
}

[data-theme="light"] .input-icon-wrap input {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.15);
  color: #1e293b;
}

[data-theme="light"] .filter-tab {
  background-color: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.12);
  color: var(--text-2);
}

[data-theme="light"] .task-card {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .auth-form-panel {
  background: #ede0d4;
  border-left-color: var(--border);
}

[data-theme="light"] .topbar {
  background: rgba(237, 224, 212, 0.88);
}

/* Light Theme Badges Contrast Overrides */
[data-theme="light"] .cat-daily {
  color: #5b21b6;
  background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .cat-weekly {
  color: #0369a1;
  background: rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .cat-monthly {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .cat-quarterly {
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
}

[data-theme="light"] .cat-semesterly {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.1);
}

[data-theme="light"] .cat-yearly {
  color: #be185d;
  background: rgba(236, 72, 153, 0.1);
}

[data-theme="light"] .cat-blue {
  color: #1e40af;
  background: rgba(37, 99, 235, 0.08);
}
[data-theme="light"] .cat-green {
  color: #047857;
  background: rgba(10, 185, 129, 0.1);
}
[data-theme="light"] .cat-orange {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.1);
}
[data-theme="light"] .cat-purple {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.1);
}
[data-theme="light"] .cat-cyan {
  color: #0369a1;
  background: rgba(6, 182, 212, 0.1);
}
[data-theme="light"] .cat-red {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.1);
}

/* ─── ICON BUTTON ─── */
.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 17px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-1);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border-color: var(--danger);
}

/* User profile in sidebar */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 0 10px 12px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

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

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dashboard stats bar */
.dashboard-bar {
  display: flex;
  gap: 16px;
  padding: 0 28px 20px;
  flex-wrap: wrap;
}

.dash-stat-card {
  flex: 1;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition);
}

.dash-stat-card:hover {
  transform: translateY(-2px);
}

.dash-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.dash-stat-icon.purple {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-2);
}

.dash-stat-icon.green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.dash-stat-icon.yellow {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warn);
}

.dash-stat-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.dash-stat-info {
  display: flex;
  flex-direction: column;
}

.dash-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}

.dash-stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 4px;
}

/* Overdue sidebar value */
.overdue-val {
  color: var(--danger) !important;
}

/* Sidebar header right */
.sidebar-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-btn {
  font-size: 15px;
}

/* Nav section spacing */
.nav-section {
  margin-bottom: 20px;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
}

.sidebar-header {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  box-shadow: none;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--text-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--transition);
  display: none;
}

.sidebar-toggle:hover {
  color: var(--text-1);
}

.sidebar-nav {
  padding: 20px 14px;
  flex: 1;
  overflow-y: auto;
}

.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-3);
  padding: 0 8px;
  margin-bottom: 10px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  user-select: none;
}

.nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item span:nth-child(2) {
  flex: 1;
}

.nav-item:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-1);
}

.nav-item.active {
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.18),
      rgba(96, 165, 250, 0.10));
  color: var(--accent-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
}

.nav-item.active .badge {
  background: var(--accent);
  color: #fff;
}

.sidebar-stats {
  margin: 0 14px 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── APP WRAPPER ─── */
#appScreen {
  flex: 1;
  width: 100%;
  display: flex;
}

/* ─── MAIN CONTENT ─── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── TOPBAR ─── */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(14, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text-3);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-sidebar);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
  width: 240px;
}

.search-box:focus-within {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 13.5px;
  padding: 10px 36px 10px 42px;
  width: 100%;
  font-family: "Inter", sans-serif;
}

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

.search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  font-size: 13px;
  display: none;
}

.search-clear.visible {
  display: block;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-add:active {
  transform: scale(0.97);
}

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin: 16px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.filter-tabs {
  display: flex;
  gap: 6px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 40px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--text-1);
}

.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.dot-pending {
  background: var(--warn);
}

.dot-done {
  background: var(--success);
}

.sort-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  font-family: "Inter", sans-serif;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 11px;
  padding-right: 32px !important;
}

.sort-select:hover {
  border-color: var(--accent-2);
}

.sort-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.sort-btn-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.sort-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  width: 34px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all var(--transition);
}

.sort-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
}

.sort-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .sort-btn-group {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sort-btn.active {
  background: var(--accent);
  color: #fff;
}

.sort-select option,
.form-group select option {
  background: var(--bg-modal);
  color: var(--text-1);
  padding: 10px;
}

[data-theme="light"] .sort-select,
[data-theme="light"] .form-group select {
  background-color: rgba(0, 0, 0, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23334155' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 11px;
}

[data-theme="light"] .sort-select option,
[data-theme="light"] .form-group select option {
  background-color: #ede0d4;
  color: #1e293b;
}

/* ─── PROGRESS ─── */
.progress-section {
  padding: 0 28px 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.progress-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
}

.progress-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}

/* ─── TASK GRID ─── */
.tasks-container {
  padding: 0 28px 40px;
  flex: 1;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

/* ─── TASK CARD ─── */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  animation: fadeInUp 0.35s ease forwards;
  position: relative;
  overflow: hidden;
}

.task-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--cat-color, var(--accent)),
      transparent);
  opacity: 0.8;
}

.task-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.22);
}

.task-card.done {
  opacity: 0.6;
}

.task-card.done .task-title {
  text-decoration: line-through;
  color: var(--text-3);
}

.task-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.task-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: all var(--transition);
  background: transparent;
}

.task-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
}

.task-checkbox .check-icon {
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}

.task-checkbox.checked .check-icon {
  opacity: 1;
}

.task-content {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-description {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.task-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-category {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tag-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warn);
}

.tag-status.done {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.task-deadline {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.task-deadline.overdue {
  color: var(--danger);
}

.task-deadline.soon {
  color: var(--warn);
}

/* ─── BUTTONS STANDARDIZATION ─── */
.btn-primary, .btn-save, .btn-auth, .btn-add, .btn-cancel, .btn-delete, .btn-project-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  white-space: nowrap;
  outline: none;
}

.btn-primary, .btn-save, .btn-auth, .btn-add:not(.empty-btn) {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover, .btn-save:hover, .btn-auth:hover, .btn-add:not(.empty-btn):hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:active, .btn-save:active, .btn-auth:active {
  transform: translateY(0);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-1);
  border-color: var(--text-3);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-delete:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-project-detail {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-2);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-top: auto;
}

.btn-project-detail:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

/* Fix overlapping buttons in task-card */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
}

.task-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.task-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.task-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.task-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-1);
  transform: scale(1.1);
}

.task-btn.edit:hover { color: var(--accent-2); border-color: var(--accent-2); }
.task-btn.delete:hover { color: var(--danger); border-color: var(--danger); }

/* Category Colors */
.cat-daily {
  --cat-color: #3b82f6;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
}

.cat-weekly {
  --cat-color: #06b6d4;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.15);
}

.cat-monthly {
  --cat-color: #10b981;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
}

.cat-quarterly {
  --cat-color: #f59e0b;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
}

.cat-semesterly {
  --cat-color: #f97316;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.15);
}

.cat-yearly {
  --cat-color: #ec4899;
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.15);
}

.cat-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
.cat-green {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}
.cat-orange {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
}
.cat-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
}
.cat-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
}
.cat-red {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.a-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
}

/* ─── LOADING ─── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 18px;
  color: var(--text-2);
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 14px;
  text-align: center;
  color: var(--text-2);
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  display: grid;
  place-items: center;
  font-size: 36px;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
}

.empty-state p {
  font-size: 14px;
  max-width: 320px;
}

.empty-btn {
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-sm {
  max-width: 380px;
  text-align: center;
}

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

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: var(--danger);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.required {
  color: var(--danger);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  font-family: "Inter", sans-serif;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  width: 100%;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px !important;
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--danger);
}

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

.form-group select option {
  background: var(--bg-modal);
}

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

.form-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
}

.char-count {
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
}

.status-toggle {
  display: flex;
  gap: 8px;
}

.status-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all var(--transition);
}

.status-btn.active[data-status="pending"] {
  border-color: var(--warn);
  background: rgba(245, 158, 11, 0.15);
  color: var(--warn);
}

.status-btn.active[data-status="done"] {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-cancel:hover {
  border-color: var(--text-2);
  color: var(--text-1);
}

.btn-save {
  flex: 2;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-save:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Delete Modal */
.delete-icon-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.delete-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--danger);
}

.delete-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-1);
}

.delete-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 8px;
}

.btn-delete {
  flex: 2;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--danger);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}

.btn-delete:hover {
  background: #c53030;
  transform: translateY(-1px);
}

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  min-width: 260px;
  max-width: 380px;
  animation:
    slideInRight 0.3s ease,
    fadeOut 0.35s ease 2.65s forwards;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: var(--success);
}

.toast.error .toast-icon {
  color: var(--danger);
}

.toast.info .toast-icon {
  color: var(--accent-2);
}

.toast-msg {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  flex: 1;
}

/* ─── OVERLAY ─── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 190;
  backdrop-filter: blur(2px);
}

.overlay.show {
  display: block;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.25);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.42);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
  }

  .sidebar-toggle {
    display: block;
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .topbar {
    padding: 0 20px;
  }

  .overlay.show {
    display: block;
    animation: fadeIn 0.3s ease;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  :root {
    --topbar-h: 64px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px !important; /* Prevent iOS zoom */
  }

  .topbar {
    padding: 0 16px;
    gap: 12px;
  }

  .topbar-right {
    gap: 8px;
  }

  .page-title {
    font-size: 1.1rem;
  }

  .page-subtitle {
    font-size: 11px;
    display: none; /* Hide subtitle on very small screens to save space */
  }

  .search-box {
    display: none !important; /* Hide search in topbar on mobile, use a button or secondary bar if needed */
  }

  .btn-add span {
    display: none;
  }

  .btn-add {
    padding: 10px;
    width: 42px;
    height: 42px;
    justify-content: center;
  }

  .filter-bar {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filter-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tasks-container {
    padding: 0 16px 40px;
  }

  .progress-section {
    padding: 0 16px 16px;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
  }

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

  .modal {
    padding: 24px 18px;
    width: 95% !important;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ─── PROJECT CARD ─── */
.projects-container {
  padding: 0 28px 40px;
  flex: 1;
}

@media (max-width: 900px) {
  .projects-container {
    padding: 0 20px 40px;
  }
}

@media (max-width: 600px) {
  .projects-container {
    padding: 0 16px 40px;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

@media (max-width: 400px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.2);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  line-height: 1.4;
}

.project-status-badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.project-status-badge.status-ongoing { background: rgba(0, 188, 212, 0.15); color: #00bcd4; }
.project-status-badge.status-upcoming { background: rgba(255, 152, 0, 0.15); color: #ff9800; }
.project-status-badge.status-completed { background: rgba(76, 175, 80, 0.15); color: #4caf50; }

.project-role-wrap {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.badge-role {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.badge-role.leader { background: rgba(59, 130, 246, 0.15); color: var(--accent-2); }
.badge-role.mentee { background: rgba(52, 211, 153, 0.15); color: var(--success); }

.project-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 64px;
}

.project-meta-list {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-meta-label {
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-meta-value {
  font-weight: 600;
  color: var(--text-1);
}

.btn-project-detail {
  width: 100%;
  background: var(--at-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}

.btn-project-detail:hover {
  background: var(--accent-glow);
  color: var(--accent-2);
  border-color: var(--accent);
}

/* ─── KANBAN CARDS ─── */
.kanban-board {
  display: flex;
  gap: 20px;
  padding: 0 28px 40px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.kanban-col {
  flex: 1;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.kanban-count {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 80px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  padding: 4px;
}

.kanban-cards.drag-over {
  background: rgba(59, 130, 246, 0.08);
  border: 2px dashed var(--accent);
}

.kanban-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  animation: fadeInUp 0.25s ease forwards;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.22);
}

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

.kanban-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
}

.kanban-card-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.kanban-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  padding: 20px 0;
}

/* ─── NOTIFICATION PANEL ─── */
.notif-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: var(--bg-modal);
  border-left: 1px solid var(--border);
  z-index: 600;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

.notif-panel.open {
  right: 0;
}

.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-1);
  font-size: 15px;
}

.notif-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
}

.notif-close:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeInUp 0.2s ease forwards;
}

.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.notif-meta {
  font-size: 12px;
}

.notif-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  padding: 40px 20px;
}

.notif-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 590;
  backdrop-filter: blur(2px);
}

.notif-overlay.show {
  display: block;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.notif-btn {
  position: relative;
}

/* ── COMMUNITY PANELS (user read-only view) ── */
.community-panel {
  margin: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.community-panel-body {
  padding: 0;
}



/* ── CALENDAR COMPONENT ── */
.fc-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.fc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.fc-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
}

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

.fc-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
}

.fc-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.fc-grid-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 16px;
}

.fc-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px;
  min-width: 770px;
}

.fc-day-head {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fc-day-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 110px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.fc-day-cell.today {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.fc-day-cell.other-month {
  opacity: 0.3;
  pointer-events: none;
}

.fc-day-cell:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.fc-day-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.fc-day-cell.today .fc-day-num {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.fc-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.fc-events::-webkit-scrollbar {
  width: 4px;
}

.fc-events::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.fc-event-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.15);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--transition);
  line-height: 1.2;
}

.fc-event-pill:hover {
  background: rgba(59, 130, 246, 0.22);
  transform: translateY(-1px);
}

.duty-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  font-size: 14px;
}

.hr-empty i,
.duty-empty i {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.4;
}

.duty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
}

.duty-day-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow var(--trans),
    border-color var(--trans);
}

.duty-day-card:hover {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.duty-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.12),
      rgba(96, 165, 250, 0.07));
  border-bottom: 1px solid var(--border);
}

.duty-day-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 7px;
}

.duty-day-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2px 9px;
}

.duty-members {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px 12px;
  min-height: 48px;
}

.duty-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 7px;
  transition: background var(--trans);
}

.duty-member-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.duty-member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.duty-member-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-1);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duty-member-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--trans);
}

.duty-member-row:hover .duty-member-actions {
  opacity: 1;
}

.duty-add-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px 0;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

.duty-add-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: border-color var(--trans);
}

.duty-add-input:focus {
  border-color: var(--accent);
}

.duty-add-input::placeholder {
  color: var(--text-3);
}

.duty-add-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  transition: all var(--trans);
}

.duty-add-btn:hover {
  background: rgba(59, 130, 246, 0.20);
}

@media (max-width: 700px) {
  .duty-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

.hr-list {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.hr-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}

.hr-item:last-child {
  border-bottom: none;
}

.hr-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.hr-index {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.15),
      rgba(96, 165, 250, 0.10));
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.hr-body {
  flex: 1;
  min-width: 0;
}

.hr-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

.hr-content {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.hr-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hr-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── CALENDAR COMPONENT ── */
.fc-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.fc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.fc-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
}

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

.fc-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--trans);
}

.fc-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.fc-grid-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 16px;
}

.fc-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px;
  min-width: 770px;
}

.fc-day-head {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fc-day-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 110px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--trans);
  cursor: pointer;
  overflow: hidden;
}

.fc-day-cell.today {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.fc-day-cell.other-month {
  opacity: 0.3;
  pointer-events: none;
}

.fc-day-cell:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.fc-day-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.fc-day-cell.today .fc-day-num {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.fc-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.fc-events::-webkit-scrollbar {
  width: 4px;
}

.fc-events::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.fc-event-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.15);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--trans);
  line-height: 1.2;
}

.fc-event-pill:hover {
  background: rgba(59, 130, 246, 0.22);
  transform: translateY(-1px);
}

.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.03) 25%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Light Theme Overrides for HR, Duty, and Calendar */
[data-theme="light"] .hr-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .duty-day-count {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .duty-member-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .duty-add-input {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .fc-header {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .fc-nav-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .fc-day-cell {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .fc-day-cell:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .fc-events::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .skeleton {
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.03) 25%,
      rgba(0, 0, 0, 0.08) 50%,
      rgba(0, 0, 0, 0.03) 75%);
}

/* ── MOBILE OVERLAY ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 190;
  backdrop-filter: blur(2px);
}

.overlay.show {
  display: block;
}

/* ── RESPONSIVE STYLES ── */
@media (max-width: 1024px) {
  .dashboard-bar {
    padding: 0 16px 20px;
  }
}

@media (max-width: 768px) {
  .auth-screen {
    flex-direction: column;
  }

  .auth-brand-panel {
    min-height: 250px;
    padding: 30px 20px;
    flex: none;
  }

  .auth-form-panel {
    width: 100%;
    min-width: 100%;
    border-left: none;
    padding: 30px 20px;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    padding: 0 16px;
    gap: 10px;
  }

  .topbar-right {
    gap: 10px;
  }

  .search-box {
    width: 140px;
  }

  .search-box input {
    width: 140px;
  }

  .dashboard-bar {
    flex-direction: column;
    gap: 10px;
    padding: 0 16px 16px;
  }

  .dash-stat-card {
    width: 100%;
  }

  .kanban-board {
    flex-direction: column;
  }

  .kanban-col {
    min-width: unset;
    width: 100%;
  }

  .fc-grid {
    min-width: unset;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }

  .fc-day-head {
    font-size: 10px;
  }

  .fc-day-cell {
    min-height: 60px;
    padding: 4px;
  }

  .fc-events {
    display: none;
  }

  .fc-day-num {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .task-board {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .task-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-card-top {
    width: 100%;
  }

  .task-meta {
    width: 100%;
    margin-top: 10px;
    justify-content: space-between;
  }

  .task-actions {
    align-self: flex-end;
    margin-top: 10px;
  }
}

/* ─── DIARY TIMELINE STYLES ─── */
.diary-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.diary-timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.timeline-badge {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.timeline-item:hover .timeline-badge {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-2);
  transform: scale(1.05);
}

.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item:hover .timeline-card {
  border-color: rgba(94, 132, 196, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  line-height: 1.3;
}

.timeline-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

[data-theme="light"] .timeline-date {
  background: rgba(0, 0, 0, 0.05);
}

.timeline-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  white-space: pre-wrap;
}

.timeline-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.timeline-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
}

.meta-item.event {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-2);
}

.meta-item.category {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
}

.timeline-actions {
  display: flex;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .diary-timeline::before {
    left: 20px;
  }
  .timeline-item {
    gap: 12px;
  }
  .timeline-badge {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .timeline-card {
    padding: 16px;
  }
  .timeline-title {
    font-size: 16px;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .timeline-date {
    align-self: flex-start;
  }
}