/* Notion-Style Cream Theme & Minimal CSS Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette (Notion Cream Theme) */
  --bg-primary: #FAF9F5;      /* Soft warm cream background */
  --bg-sidebar: #F4F1EA;      /* Slightly darker cream/beige for sidebar */
  --bg-card: #FFFFFF;         /* Pure white for cards */
  --bg-hover: #ECE9DF;        /* Soft hover cream */
  --border-color: #E6E1D6;    /* Soft beige border */
  --text-main: #37352F;       /* Deep charcoal/brown (Notion text color) */
  --text-sub: #6A665E;        /* Muted gray-brown */
  --text-light: #9B968B;      /* Light placeholder color */
  
  /* Accent Pastel Colors (Notion Highlights) */
  --accent-yellow-bg: #FDECC8;
  --accent-yellow-text: #604618;
  --accent-blue-bg: #E8F4FC;
  --accent-blue-text: #1D4ED8;
  --accent-pink-bg: #FDEBEC;
  --accent-pink-text: #A31F2A;
  --accent-green-bg: #EDF3EC;
  --accent-green-text: #2E6C36;
  --accent-purple-bg: #F3E8FF;
  --accent-purple-text: #6B21A8;
  --accent-orange-bg: #FFEAD2;
  --accent-orange-text: #9A3412;
  --accent-gray-bg: #F1F1EF;
  --accent-gray-text: #4B5563;
  
  /* Primary Action Colors */
  --primary-accent: #8C7B65;  /* Elegant warm taupe/brown primary button */
  --primary-hover: #756653;
  
  /* Shadows and Borders */
  --shadow-sm: 0 1px 2px rgba(55, 53, 47, 0.05);
  --shadow-md: 0 4px 12px rgba(55, 53, 47, 0.04), 0 1px 3px rgba(55, 53, 47, 0.06);
  --shadow-lg: 0 12px 28px rgba(55, 53, 47, 0.08), 0 2px 8px rgba(55, 53, 47, 0.05);
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  
  /* Layout sizes */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-size: 14px;
}

input, textarea, select, button {
  font-size: 14px;
  outline: none;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-card);
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(140, 123, 101, 0.15);
}

button {
  cursor: pointer;
  border: none;
  font-weight: 500;
}

button:active {
  transform: scale(0.98);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Main Layout structure */
#app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Sidebar Styling */
#sidebar {
  position: relative; /* Position context for absolute elements like #sidebar-toggle */
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible; /* Changed from overflow-x: hidden to prevent toggle clipping */
  flex-shrink: 0;
  z-index: 100;
}

#sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

#sidebar.collapsed .sidebar-header {
  padding-left: 0;
  justify-content: center;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-left: 8px;
  position: relative;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

#sidebar.collapsed .sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease;
}

#sidebar.collapsed .sidebar-title {
  opacity: 0;
  pointer-events: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item i {
  font-size: 18px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  transition: color 0.2s ease;
}

.nav-item span {
  transition: opacity 0.2s ease;
  color: var(--text-sub);
}

#sidebar.collapsed .nav-item span {
  opacity: 0;
  pointer-events: none;
}

.nav-item:hover {
  background-color: var(--bg-hover);
}

.nav-item:hover i, .nav-item:hover span {
  color: var(--text-main);
}

.nav-item.active {
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.nav-item.active i, .nav-item.active span {
  color: var(--text-main);
  font-weight: 600;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-orange-bg);
  color: var(--accent-orange-text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

.user-info {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

#sidebar.collapsed .user-info {
  opacity: 0;
  pointer-events: none;
}

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

.user-sub {
  font-size: 11px;
  color: var(--text-sub);
}

/* Main Content Area */
#main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  background-color: var(--bg-primary);
  padding: 40px 60px;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  #main-content {
    padding: 24px 16px;
  }
}

/* Page Headers */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}

.page-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-emoji {
  font-size: 32px;
  margin-bottom: 4px;
}

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

.page-desc {
  font-size: 13px;
  color: var(--text-sub);
}

.page-actions {
  display: flex;
  gap: 12px;
}

/* General Layout Elements & Cards */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-accent);
  color: #FFFFFF;
}

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

.btn-primary i {
  color: #FFFFFF;
}

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

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

.btn-danger {
  background-color: var(--accent-pink-bg);
  color: var(--accent-pink-text);
  border: 1px solid rgba(163, 31, 42, 0.15);
}

.btn-danger:hover {
  background-color: #fcd5d7;
}

.btn-danger i {
  color: var(--accent-pink-text);
}

/* Tab Content Transitions */
.tab-content {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: calc(100% - 80px);
  flex-shrink: 0;
}

.tab-content.active {
  display: block;
}

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

/* ========================================================
   1. DASHBOARD & KANBAN TASK BOARD
   ======================================================== */
.task-views-nav {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  padding-bottom: 8px;
}

.view-btn {
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-btn.active {
  color: var(--text-main);
  background-color: var(--bg-sidebar);
  font-weight: 600;
}

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

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

@media (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.kanban-column {
  background-color: var(--bg-sidebar);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 500px;
}

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

.column-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.column-badge.not-started {
  background-color: var(--accent-gray-bg);
  color: var(--accent-gray-text);
}

.column-badge.in-progress {
  background-color: var(--accent-blue-bg);
  color: var(--accent-blue-text);
}

.column-badge.done {
  background-color: var(--accent-green-bg);
  color: var(--accent-green-text);
}

.column-title {
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.column-count {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.column-add-btn {
  background: transparent;
  color: var(--text-sub);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.column-add-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.column-tasks-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
}

/* Task Cards */
.task-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: grab;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.task-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

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

.task-title {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.4;
  word-break: break-word;
}

.task-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

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

.tag-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: -0.01em;
}

/* Checklist Progress */
.task-checklist-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-sub);
  background-color: var(--bg-primary);
  padding: 4px 8px;
  border-radius: 4px;
  width: max-content;
  border: 1px solid var(--border-color);
}

.task-checklist-preview i {
  font-size: 12px;
  color: var(--text-sub);
}

.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(230, 225, 214, 0.5);
  padding-top: 8px;
  margin-top: 4px;
  gap: 8px;
}

.task-due-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-sub);
}

.task-due-date.overdue {
  color: var(--accent-pink-text);
  font-weight: 600;
}

.task-due-date i {
  font-size: 12px;
  color: inherit;
}

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

.task-action-btn {
  background: transparent;
  color: var(--text-light);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-action-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

/* List View Layout */
.list-view-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-section-header {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 6px;
}

.task-list-table {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.task-list-row {
  display: grid;
  grid-template-columns: 40px 1.5fr 1fr 120px 100px 80px;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
}

.task-list-row:last-child {
  border-bottom: none;
}

.task-list-row:hover {
  background-color: var(--bg-sidebar);
}

.task-list-row.header {
  background-color: var(--bg-sidebar);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-color);
}

.task-list-row.header div {
  color: var(--text-sub);
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-light);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.task-checkbox:checked {
  background-color: var(--accent-green-text);
  border-color: var(--accent-green-text);
}

.task-checkbox:checked::after {
  content: "✓";
  color: white;
  font-size: 11px;
  font-weight: bold;
}

.task-title-cell {
  font-weight: 600;
}

.task-list-row.done-row .task-title-cell {
  text-decoration: line-through;
  color: var(--text-light);
}

.task-desc-cell {
  font-size: 12.5px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}

.task-list-row.done-row .task-desc-cell {
  color: var(--text-light);
}

/* ========================================================
   2. CALENDAR VIEW
   ======================================================== */
.calendar-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.calendar-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-month-year {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.calendar-nav-btn {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

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

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.calendar-weekday {
  background-color: var(--bg-sidebar);
  padding: 12px 4px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-cell {
  background-color: var(--bg-card);
  min-height: 100px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

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

.calendar-cell.other-month {
  background-color: #faf9f6;
  opacity: 0.5;
}

.calendar-cell.today {
  background-color: #fffdec;
}

.calendar-cell.today .calendar-date-number {
  background-color: var(--accent-orange-bg);
  color: var(--accent-orange-text);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.calendar-date-number {
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 4px;
  margin-left: 8px;
}

.calendar-tasks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: 70px;
}

.calendar-task-item {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  margin: 0 4px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
}

.calendar-task-item.not-started {
  background-color: #787774; /* Rich solid gray */
  color: #FFFFFF;            /* Pop white text */
  border-color: #5F5E5B;     /* Distinct dark gray border */
}

.calendar-task-item.in-progress {
  background-color: #2F6194; /* Elegant deep steel blue */
  color: #FFFFFF;            /* Pop white text */
  border-color: #20476E;     /* Darker blue border */
}

.calendar-task-item.done {
  background-color: #387A54; /* Elegant forest green */
  color: #FFFFFF;            /* Pop white text */
  border-color: #2A5D3F;     /* Darker green border */
  text-decoration: line-through;
}

/* Calendar Task Timeline Ribbons */
.calendar-task-item.timeline-start {
  border-radius: 3px 0 0 3px;
  margin-left: 4px;
  margin-right: -1px;
  border-right-color: transparent !important;
}

.calendar-task-item.timeline-middle {
  border-radius: 0;
  margin-left: -1px;
  margin-right: -1px;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
}

.calendar-task-item.timeline-end {
  border-radius: 0 3px 3px 0;
  margin-left: -1px;
  margin-right: 4px;
  border-left-color: transparent !important;
}

/* ========================================================
   3. FOCUS POMODORO TIMER
   ======================================================== */
.pomodoro-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

@media (max-width: 850px) {
  .pomodoro-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px;
  }
}

.pomo-timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pomo-svg-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

.pomo-circle-bg {
  fill: none;
  stroke: var(--bg-sidebar);
  stroke-width: 6;
}

.pomo-circle-progress {
  fill: none;
  stroke: var(--primary-accent);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.1s linear;
}

.pomo-time-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pomo-time {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.pomo-status-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-sub);
  margin-top: -4px;
}

.pomo-controls {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.pomo-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s ease;
}

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

.pomo-btn.btn-pomo-primary {
  background-color: var(--primary-accent);
  color: #FFFFFF;
  border: none;
}

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

.pomo-btn.btn-pomo-primary i {
  color: #FFFFFF;
}

.pomo-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--border-color);
  padding-left: 40px;
}

@media (max-width: 850px) {
  .pomo-settings-panel {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 24px;
  }
}

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

.pomo-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pomo-mode-btn {
  padding: 8px 4px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.pomo-mode-btn.active {
  background-color: var(--accent-yellow-bg);
  border-color: rgba(96, 70, 24, 0.15);
  color: var(--accent-yellow-text);
}

.pomo-mode-btn:hover:not(.active) {
  background-color: var(--bg-hover);
}

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

.pomo-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.pomo-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pomo-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pomo-input-wrapper span {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
}

.pomo-input {
  padding: 8px;
  text-align: center;
}

/* ========================================================
   4. HABIT TRACKER
   ======================================================== */
.habit-grid-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.add-habit-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.add-habit-form {
  display: flex;
  gap: 12px;
  flex-grow: 1;
}

.habit-input {
  flex-grow: 1;
  padding: 8px 14px;
}

.habits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.habit-row-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s ease;
}

.habit-row-card:hover {
  box-shadow: var(--shadow-md);
}

.habit-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.habit-emoji {
  font-size: 20px;
  background-color: var(--bg-sidebar);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.habit-name {
  font-weight: 600;
  font-size: 15px;
}

.habit-streak {
  font-size: 12.5px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}

.habit-streak i {
  color: var(--accent-orange-text);
  font-size: 14px;
}

.habit-grid-days {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.habit-day-tile {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.habit-day-tile:hover {
  transform: scale(1.08);
}

.habit-day-tile.completed {
  background-color: var(--accent-green-bg);
  border-color: rgba(46, 108, 54, 0.2);
}

.habit-day-tile.completed span, .habit-day-tile.completed i {
  color: var(--accent-green-text);
  font-weight: 700;
}

.habit-tile-num {
  font-size: 9px;
  color: var(--text-light);
}

.habit-day-tile.completed .habit-tile-num {
  color: var(--accent-green-text);
  opacity: 0.7;
}

.habit-tile-check {
  font-size: 10px;
  color: transparent;
}

.habit-day-tile.completed .habit-tile-check {
  color: var(--accent-green-text);
}

/* ========================================================
   5. QUICK CAPTURE NOTES
   ======================================================== */
.notes-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 500px;
}

@media (max-width: 750px) {
  .notes-container {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.notes-sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.notes-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex-grow: 1;
}

.note-sidebar-item {
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.note-sidebar-item:hover {
  background-color: var(--bg-hover);
}

.note-sidebar-item.active {
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-color);
}

.note-item-title {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item-date {
  font-size: 10px;
  color: var(--text-light);
}

.notes-editor-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.note-title-input {
  border: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 4px 0;
  width: 70%;
  background: transparent;
}

.note-title-input:focus {
  border-bottom: 1px dashed var(--primary-accent);
  border-radius: 0;
  box-shadow: none;
}

.note-meta-info {
  font-size: 11px;
  color: var(--text-light);
}

.note-body-textarea {
  flex-grow: 1;
  border: none;
  padding: 24px;
  resize: none;
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--bg-card);
}

.note-body-textarea:focus {
  box-shadow: none;
}

/* ========================================================
   6. LINE MESSAGE API SETTINGS
   ======================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 700px;
}

.settings-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-sec-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-label {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-sub);
}

.form-input {
  padding: 10px 14px;
}

.form-help {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: 2px;
}

.form-help code {
  background-color: var(--bg-sidebar);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 11px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 12.5px;
  font-weight: 500;
}

.status-indicator.not-connected {
  background-color: var(--accent-gray-bg);
  color: var(--accent-gray-text);
}

.status-indicator.connected {
  background-color: var(--accent-green-bg);
  color: var(--accent-green-text);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* ========================================================
   7. MODAL DIALOGS
   ======================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(55, 53, 47, 0.3);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 500px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: scaleInModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes scaleInModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

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

.modal-close-btn {
  background: transparent;
  color: var(--text-light);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

/* Modal Specific Inner Elements */
.subtasks-manager {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
}

.subtask-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background-color: var(--bg-sidebar);
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.subtask-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
}

.subtask-item-text {
  font-size: 12.5px;
}

.subtask-item.done .subtask-item-text {
  text-decoration: line-through;
  color: var(--text-light);
}

.add-subtask-form {
  display: flex;
  gap: 8px;
}

.add-subtask-input {
  flex-grow: 1;
  padding: 6px 10px;
  font-size: 12.5px;
}

.tags-select-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-option-btn {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.tag-option-btn:hover {
  filter: brightness(0.95);
}

.tag-option-btn.selected {
  outline: 2px solid var(--primary-accent);
}

/* Responsive Floating Elements */
#sidebar-toggle {
  background-color: var(--bg-card); /* Pure white background to stand out */
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 50%; /* Circle shape like Notion */
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 30px;
  right: -14px; /* Centered perfectly on the border line */
  z-index: 101;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(55, 53, 47, 0.08), 0 1px 3px rgba(55, 53, 47, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar-toggle i, #sidebar-toggle svg {
  color: var(--text-main);
  width: 16px;
  height: 16px;
  transition: color 0.2s ease;
}

#sidebar-toggle:hover {
  background-color: var(--primary-accent);
  border-color: var(--primary-accent);
  box-shadow: 0 6px 14px rgba(140, 123, 101, 0.25);
  transform: scale(1.08);
}

#sidebar-toggle:hover i, #sidebar-toggle:hover svg {
  color: #FFFFFF; /* High contrast white icon on hover */
}

#sidebar.collapsed #sidebar-toggle {
  transform: rotate(180deg);
}

#sidebar.collapsed #sidebar-toggle:hover {
  transform: rotate(180deg) scale(1.08);
}

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

.toast {
  background-color: var(--text-main);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast i {
  color: #FFFFFF;
}

.toast.success {
  background-color: #2E6C36;
}

.toast.error {
  background-color: #A31F2A;
}

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

/* ========================================================
   8. MINIMALIST MULTI-USER LOGIN SCREEN
   ======================================================== */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900; /* Reduced from 2000 so SweetAlert can display on top */
}

/* Force SweetAlert2 to render on top of everything */
.swal2-container {
  z-index: 3000 !important;
}

.login-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 420px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: scaleInModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-header {
  text-align: center;
}

.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.login-subtitle {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-top: 6px;
  line-height: 1.4;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-sidebar);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  padding: 3px;
  gap: 4px;
}

.login-tab-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  padding: 8px 0;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.login-tab-btn.active {
  background-color: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.remember-me-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-sub);
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 4px;
  user-select: none;
}

.remember-me-container input {
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.remember-me-container label {
  cursor: pointer;
}

.login-submit-btn {
  width: 100%;
  justify-content: center;
  height: 40px;
  font-weight: 600;
  margin-top: 6px;
}

/* Sidebar Logout Button */
.logout-btn {
  background: transparent;
  color: var(--text-light);
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.logout-btn:hover {
  background-color: var(--bg-hover);
  color: var(--accent-pink-text);
  border-color: rgba(163, 31, 42, 0.15);
}

.logout-btn i {
  color: inherit;
  font-size: 14px;
}

/* 9. DOODLE LOGO IMAGE & LO-FI PLAYER WIDGET STYLES */
.login-logo img, .sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.lofi-player-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px;
  margin-top: auto;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.lofi-player-header {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.lofi-music-icon {
  color: var(--primary-accent);
  font-size: 14px;
}

.lofi-player-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Settings Gear Button */
.lofi-settings-btn {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-sub);
  padding: 3px 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  font-family: inherit;
}

.lofi-settings-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--primary-accent);
}

.lofi-settings-btn i {
  font-size: 10px;
}

/* YouTube URL Settings Panel */
.lofi-settings-panel {
  display: flex;
  gap: 6px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 6px;
  margin-top: 2px;
}

.lofi-url-input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  background-color: var(--bg-card);
  width: 100%;
}

.lofi-save-url-btn {
  background-color: var(--primary-accent);
  color: #FFFFFF;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lofi-save-url-btn:hover {
  background-color: var(--primary-hover);
}

.lofi-reset-url-btn {
  background-color: var(--border-color);
  color: var(--text-main);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lofi-reset-url-btn:hover {
  background-color: var(--bg-hover);
}

.lofi-reset-url-btn i {
  color: var(--text-main);
  font-size: 11px;
}

.lofi-save-url-btn i {
  color: #FFFFFF;
  font-size: 11px;
}

/* Equalizer Wave Animation */
.lofi-wave-container {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
  margin-left: auto;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.lofi-wave-container.playing {
  opacity: 1;
}

.lofi-bar {
  width: 2px;
  height: 2px;
  background-color: var(--primary-accent);
  border-radius: 1px;
}

.lofi-wave-container.playing .lofi-bar1 {
  animation: lofi-bounce 0.8s ease infinite alternate;
}
.lofi-wave-container.playing .lofi-bar2 {
  animation: lofi-bounce 0.8s ease infinite alternate 0.2s;
}
.lofi-wave-container.playing .lofi-bar3 {
  animation: lofi-bounce 0.8s ease infinite alternate 0.4s;
}

@keyframes lofi-bounce {
  from { height: 2px; }
  to { height: 12px; }
}

/* Tiny YouTube Embed Screen */
.lofi-player-screen {
  width: 100%;
  height: 110px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #000;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.lofi-player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lofi-play-btn {
  background-color: var(--primary-accent);
  color: #FFFFFF;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lofi-play-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

.lofi-play-btn i {
  color: #FFFFFF;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lofi-volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-grow: 1;
  transition: opacity 0.2s ease;
}

.lofi-vol-icon {
  color: var(--text-sub);
  font-size: 12px;
}

.lofi-volume-slider {
  width: 100%;
  height: 4px;
  background-color: var(--bg-sidebar);
  border: none;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
  -webkit-appearance: none;
}

.lofi-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lofi-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* 10. REDESIGNED PROFESSIONAL SIDEBAR USER FOOTER */
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  width: 100%;
  transition: all 0.3s ease;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--border-radius-sm);
  background-color: transparent;
  transition: all 0.2s ease;
  overflow: hidden;
  max-width: calc(100% - 40px);
  cursor: pointer;
}

.sidebar-user:hover {
  background-color: var(--bg-hover);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-accent), #a3937d);
  color: #FFFFFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(55, 53, 47, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.user-info {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-sub {
  font-size: 10px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-sub::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #2E6C36; /* Active green status dot */
}

/* Redesigned Logout Button */
.logout-btn {
  background-color: transparent;
  color: var(--text-light);
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.logout-btn:hover {
  background-color: #FDEBEC; /* Soft light red warning background */
  color: var(--accent-pink-text);
  border-color: rgba(163, 31, 42, 0.15);
}

/* 11. GLOBAL WORKSPACE COPYRIGHT FOOTER */
.workspace-footer {
  width: 100%;
  text-align: center;
  padding: 24px 0 8px 0;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.copyright-text {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Responsive sidebar collapsed adjustments for player and profile */
#sidebar.collapsed .lofi-player-widget {
  padding: 8px;
  align-items: center;
  margin-bottom: 8px;
}

#sidebar.collapsed .lofi-player-header {
  justify-content: center;
  width: 100%;
}

#sidebar.collapsed .lofi-player-title,
#sidebar.collapsed .lofi-player-screen,
#sidebar.collapsed .lofi-wave-container,
#sidebar.collapsed .lofi-volume-container,
#sidebar.collapsed .lofi-settings-btn,
#sidebar.collapsed .lofi-settings-panel {
  display: none !important;
}

#sidebar.collapsed .lofi-player-controls {
  justify-content: center;
  width: 100%;
}

#sidebar.collapsed .sidebar-footer {
  padding-top: 12px;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

#sidebar.collapsed .sidebar-user {
  padding: 0;
  max-width: 100%;
  background-color: transparent;
}
#sidebar.collapsed .sidebar-user:hover {
  background-color: transparent;
}

.admin-login-btn:hover {
  background-color: var(--bg-hover) !important;
  border-color: var(--primary-accent) !important;
  box-shadow: var(--shadow-sm);
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(250, 249, 245, 0.85); /* Matches warm cream theme */
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scroll-to-top-btn:hover {
  transform: translateY(-3px);
  background-color: var(--bg-hover);
  color: var(--primary-accent);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  width: 90%;
  max-width: 680px;
  background-color: rgba(250, 249, 245, 0.95); /* warm cream translucent */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-consent-content {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.cookie-icon {
  font-size: 24px;
  color: var(--primary-accent);
  flex-shrink: 0;
}

.cookie-text {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.4;
}

.accept-cookies-btn {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    bottom: 16px;
  }
  .accept-cookies-btn {
    width: 100%;
    justify-content: center;
  }
}

