@import url('variables.css');

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

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

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

/* APP SHELL LAYOUT */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* SIDEBAR (Desktop) */
.sidebar {
  display: none;
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  padding: 24px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.brand-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.brand-info h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

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

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
}

.nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-item .icon {
  font-size: 1.25rem;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* MAIN CONTENT */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

/* HEADER */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

[data-theme="dark"] .app-header {
  background-color: rgba(17, 24, 39, 0.88);
}

.header-user-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.user-chip.user1 {
  background-color: var(--user1-bg);
  color: var(--user1-text);
  border: 1px solid var(--user1-border);
}

.user-chip.user2 {
  background-color: var(--user2-bg);
  color: var(--user2-text);
  border: 1px solid var(--user2-border);
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-subtle);
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-subtle);
}

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

/* CONTENT CONTAINER */
.content-view {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px;
  display: none;
  animation: fadeIn 0.25s ease-out;
}

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

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

/* BOTTOM NAVIGATION (Mobile) */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 50;
  padding: 6px 12px;
  justify-content: space-around;
  align-items: center;
}

[data-theme="dark"] .bottom-nav {
  background-color: rgba(17, 24, 39, 0.95);
}

.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  flex: 1;
  transition: all var(--transition-fast);
}

.bottom-nav-btn .nav-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.bottom-nav-btn.active {
  color: var(--primary);
  font-weight: 700;
}

.bottom-nav-btn.add-btn {
  color: #ffffff;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin: -16px 6px 0;
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.4);
  padding: 0;
}

.bottom-nav-btn.add-btn .nav-icon {
  font-size: 1.6rem;
}

.bottom-nav-btn.add-btn span:not(.nav-icon) {
  display: none;
}

/* CARDS & CONTAINERS */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--border-strong);
}

/* DASHBOARD / INICIO STYLES */
.dashboard-greeting {
  margin-bottom: 20px;
}

.dashboard-greeting .greeting-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-greeting .date-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: capitalize;
  margin-top: 2px;
}

/* WEEK SUMMARY CARD */
.week-summary-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-subtle) 100%);
  border-left: 4px solid var(--primary);
}

.week-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.week-summary-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.week-summary-percent {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.progress-bar-track {
  height: 12px;
  background-color: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

.week-summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* FAIRNESS / REPARTO BALANCE METER */
.fairness-meter {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.fairness-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.fairness-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--border-subtle);
}

.fairness-p1 {
  background-color: var(--user1-color);
  transition: width 0.4s ease;
}

.fairness-p2 {
  background-color: var(--user2-color);
  transition: width 0.4s ease;
}

.fairness-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.legend-p1 { color: var(--user1-text); }
.legend-p2 { color: var(--user2-text); }

/* SECTION HEADERS */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--bg-surface-subtle);
  color: var(--text-muted);
}

/* TASK LIST & TASK ITEMS */
.task-group {
  margin-bottom: 20px;
}

.task-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

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

.task-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  position: relative;
}

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

.task-card.completed {
  background-color: var(--bg-surface-subtle);
  opacity: 0.75;
}

.task-card.completed .task-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-checkbox-wrap {
  margin-top: 2px;
}

.task-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 7px;
  background-color: var(--bg-surface);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all var(--transition-fast);
}

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

.task-checkbox:checked::before {
  content: "✓";
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.task-checkbox:hover {
  border-color: var(--primary);
}

.task-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

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

.task-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface-subtle);
  font-weight: 500;
}

.meta-pill.weight {
  background-color: var(--warning-light);
  color: #92400e;
  font-weight: 700;
}

.meta-pill.chapuza {
  background-color: #fef08a;
  color: #854d0e;
  font-weight: 700;
}

.task-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

.task-actions-btn {
  color: var(--text-light);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

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

/* CONDITIONAL / SUGGESTION TASK CARD */
.suggested-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1.5px dashed #38bdf8;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .suggested-card {
  background: linear-gradient(135deg, #064e3b 0%, #0c4a6e 100%);
  border-color: #0284c7;
}

.suggested-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.suggested-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.suggested-actions {
  display: flex;
  gap: 10px;
}

/* CHAPUZA CARD */
.chapuza-highlight-card {
  border-left: 4px solid var(--warning);
  background-color: var(--bg-surface);
}

.chapuza-badge {
  background-color: #fef3c7;
  color: #b45309;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

/* LIMPIEZA GRANDE CARD & SUBTASKS */
.big-clean-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.big-clean-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.big-clean-title {
  font-size: 1.1rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtasks-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.subtask-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.subtask-item.completed {
  opacity: 0.65;
}

.subtask-item.completed .subtask-name {
  text-decoration: line-through;
}

.subtask-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subtask-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: 5px;
  background-color: var(--bg-surface);
  cursor: pointer;
  display: grid;
  place-content: center;
}

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

.subtask-checkbox:checked::before {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.subtask-name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* WEEK VIEW STYLES */
.week-navigator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.week-label {
  font-size: 1.15rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.week-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: none;
}

.week-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
}

.filter-chip.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* WEEKLY SUMMARY MATRIX */
.week-matrix {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  background-color: var(--bg-surface);
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  text-align: center;
}

.matrix-col-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.matrix-status-dot {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  margin: 4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.matrix-status-dot.done {
  background-color: var(--success-light);
  color: var(--success);
}

.matrix-status-dot.pending {
  background-color: var(--bg-surface-subtle);
  color: var(--text-light);
}

/* DAY CARDS */
.day-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
  transition: all var(--transition-fast);
}

.day-card.is-today {
  border-color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary);
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.day-name {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
}

.day-card.is-today .day-name {
  color: var(--primary);
}

/* STATS VIEW */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.stat-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--text-main);
}

.category-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.cat-progress-track {
  height: 8px;
  background-color: var(--bg-surface-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cat-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

/* ACTIVITY LOG */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-subtle);
}

.activity-icon {
  font-size: 1.1rem;
  line-height: 1.4;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.88rem;
  color: var(--text-main);
}

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

/* MODALS & ACTION SHEETS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  place-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.modal-backdrop.active {
  display: grid;
}

.modal-dialog {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--bg-surface);
  z-index: 10;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-close {
  font-size: 1.2rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: grid;
  place-content: center;
}

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

.modal-body {
  padding: 20px 22px;
}

.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: var(--bg-surface);
  position: sticky;
  bottom: 0;
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 16px;
}

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

.radio-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.radio-pill-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  display: none;
}

.radio-pill-label:has(input[type="radio"]:checked) {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  right: 16px;
  left: 16px;
  max-width: 400px;
  margin: 0 auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* RESPONSIVE MEDIA QUERIES (DESKTOP) */
@media (min-width: 768px) {
  .sidebar {
    display: flex;
  }
  
  .bottom-nav {
    display: none;
  }
  
  .main-wrapper {
    padding-bottom: 40px;
  }
  
  .content-view {
    padding: 32px 28px;
  }
  
  .toast-container {
    bottom: 24px;
    right: 24px;
    left: auto;
    margin: 0;
  }
}
