:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #11131e;
  --bg-tertiary: #171b2d;
  
  /* Neon Accent Palette */
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.35);
  --accent-pink: #ff007f;
  --accent-pink-glow: rgba(255, 0, 127, 0.35);
  
  /* Status Colors */
  --color-todo: #f89e24;
  --color-progress: #00d2ff;
  --color-done: #00ff88;
  --color-low: #707e94;
  --color-medium: #e2a537;
  --color-high: #ff4a6b;

  /* Glassmorphism Defaults */
  --glass-bg: rgba(18, 20, 32, 0.55);
  --glass-border: rgba(255, 255, 255, 0.04);
  --glass-border-focus: rgba(255, 255, 255, 0.12);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(10, 11, 16, 1) 0%, rgba(6, 7, 10, 1) 100%);
  background-attachment: fixed;
  color: #e2e8f0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100vh;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Hide number input spinners (up and down arrow indicators) */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Glassmorphic Panel utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-glow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.5); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Main Layout Structure */
.app-container {
  display: flex;
  height: 100vh;
  width: 100%;
  background: var(--bg-primary);
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--glass-border);
  background: rgba(10, 11, 18, 0.75);
  backdrop-filter: blur(20px);
  z-index: 10;
  padding: 24px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.logo-sparkle {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 4px var(--accent-cyan-glow));
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: #94a3b8;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: #fff;
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.nav-item.active svg {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 5px var(--accent-cyan-glow));
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.status-badge-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-done);
  box-shadow: 0 0 8px var(--color-done);
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  height: 100%;
  overflow-y: auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.4s ease-out;
  position: relative;
}

.view-header {
  margin-bottom: 32px;
}

.view-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #f8fafc;
}

.view-subtitle {
  color: #64748b;
  font-size: 15px;
  margin-top: 4px;
}

/* Dashboard View Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  flex-grow: 1;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.welcome-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 21, 44, 0.8), rgba(13, 15, 28, 0.8));
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.time-display {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.date-display {
  font-size: 15px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}

.welcome-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-top: 24px;
  color: #e2e8f0;
}

/* Quick Launch Widget */
.launcher-widget {
  padding: 24px;
  flex-grow: 1;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.launcher-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  gap: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.launcher-btn:hover {
  background: rgba(0, 240, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
}

.launcher-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.launcher-btn:hover .launcher-btn-icon {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
}

.launcher-btn-name {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
}

.launcher-btn-desc {
  font-size: 10px;
  color: #64748b;
  line-height: 1.2;
}

/* Agenda / Quick Task Widget */
.agenda-widget {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
  max-height: 400px;
  padding-right: 4px;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  border-left: 3px solid var(--color-low);
  transition: background 0.2s ease;
}

.agenda-item.priority-high {
  border-left-color: var(--color-high);
}

.agenda-item.priority-medium {
  border-left-color: var(--color-medium);
}

.agenda-item.priority-low {
  border-left-color: var(--color-low);
}

.agenda-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.agenda-item-check {
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.agenda-item-check:hover {
  color: var(--accent-cyan);
}

.agenda-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-item-time {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #64748b;
  text-align: center;
  gap: 12px;
  font-size: 14px;
}

/* Chat Panel on Dashboard Quick Area */
.quick-chat-widget {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Tasks Board Layout */
.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: calc(100vh - 180px);
}

.tasks-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.search-input-container {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.08);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  width: 16px;
  height: 16px;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

.btn-danger:hover {
  background: #ff2a55;
  box-shadow: 0 0 15px rgba(255, 74, 107, 0.4);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.tasks-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
}

.board-column {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 16px;
  height: 100%;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.board-column.drag-over {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1), inset 0 0 12px rgba(255, 255, 255, 0.03);
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

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

.column-dot.todo { background: var(--color-todo); box-shadow: 0 0 8px var(--color-todo); }
.column-dot.progress { background: var(--color-progress); box-shadow: 0 0 8px var(--color-progress); }
.column-dot.done { background: var(--color-done); box-shadow: 0 0 8px var(--color-done); }

.column-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #f8fafc;
}

.column-count {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 600;
}

.column-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
  padding-bottom: 20px;
}

.task-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: grab;
  animation: fadeIn 0.2s ease-out;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

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

.task-card.dragging {
  opacity: 0.4 !important;
  border-style: dashed !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: scale(0.98);
}



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

.task-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
}

.task-priority-badge {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.task-priority-badge.high {
  background: rgba(255, 74, 107, 0.12);
  color: var(--color-high);
}

.task-priority-badge.medium {
  background: rgba(226, 165, 55, 0.12);
  color: var(--color-medium);
}

.task-priority-badge.low {
  background: rgba(112, 126, 148, 0.12);
  color: var(--color-low);
}

.task-card-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.task-card:hover .task-card-desc {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: none !important;
}

.task-card.reorder-before {
  border-top: 2px solid var(--accent-cyan) !important;
  margin-top: -2px;
}

.task-card.reorder-after {
  border-bottom: 2px solid var(--accent-cyan) !important;
  margin-bottom: -2px;
}

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

.task-card-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #64748b;
}

.task-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-card-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.task-card-btn:hover {
  color: #e2e8f0;
}

.task-card-btn.delete:hover {
  color: var(--color-high);
}

/* Chat Screen Layout */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 12px;
  margin-bottom: 20px;
}

.chat-bubble {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.25s ease-out;
}

.chat-bubble.user {
  align-self: flex-end;
}

.chat-bubble.assistant {
  align-self: flex-start;
}

.chat-bubble-content {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble.user .chat-bubble-content {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.chat-bubble.assistant .chat-bubble-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-bubble-sender {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-bubble.user .chat-bubble-sender {
  text-align: right;
}

.chat-input-area {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.chat-textarea {
  flex-grow: 1;
  background: none;
  border: none;
  color: #f8fafc;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  resize: none;
  height: 44px;
  line-height: 1.5;
  padding: 10px 4px;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-cyan);
  color: #0b0d19;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.chat-send-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* Modals & Forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(4, 5, 8, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  width: 500px;
  max-width: 90%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}

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

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.form-select option {
  color: #0f172a;
  background-color: #ffffff;
}

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

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

.btn-secondary {
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Settings View Styles */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
}

.settings-card {
  padding: 28px;
}

.settings-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.settings-card-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.api-key-status {
  margin-top: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.api-key-status.configured {
  color: var(--color-done);
}

.api-key-status.missing {
  color: var(--color-high);
}

.launcher-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.launcher-table th {
  text-align: left;
  padding: 12px;
  font-size: 12px;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.launcher-table td {
  padding: 14px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.action-row-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}

.action-row-btn:hover {
  color: #fff;
}

.action-row-btn.delete:hover {
  color: var(--color-high);
}

/* Floating AI Assistant Bubble */
.ai-assistant-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4), 0 0 15px rgba(157, 78, 221, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
}

.ai-assistant-bubble:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.6), 0 0 20px rgba(157, 78, 221, 0.6);
}

.ai-assistant-bubble:active {
  transform: scale(0.95);
}

.ai-assistant-bubble svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
  transition: transform 0.3s ease;
}

.ai-assistant-bubble:hover svg {
  transform: rotate(15deg) scale(1.1);
}

/* Floating AI Assistant Panel */
.ai-assistant-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 540px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFade 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(18, 20, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.05);
  border-radius: 16px;
}

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

/* Compact Floating Chat overrides */
.ai-assistant-panel .chat-container {
  height: 100% !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  box-sizing: border-box;
}

.ai-assistant-panel .chat-messages {
  flex-grow: 1;
  height: 0; /* allows flexbox container to shrink properly and scroll */
  margin-bottom: 12px;
}

/* Floating Header styling */
.floating-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.floating-chat-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-chat-header-title h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.floating-chat-header-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.floating-chat-header-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Radio button styles for task visibility */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.radio-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.radio-card.active.private {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.radio-card.active.shared {
  border-color: var(--accent-purple);
  background: rgba(157, 78, 221, 0.04);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.15);
}

.radio-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.radio-card.active.private .radio-title {
  color: var(--accent-cyan);
}

.radio-card.active.shared .radio-title {
  color: var(--accent-purple);
}

.radio-description {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.custom-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.custom-radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}

.radio-card.active.private .custom-radio-dot {
  border-color: var(--accent-cyan);
}

.radio-card.active.private .custom-radio-dot::after {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.radio-card.active.shared .custom-radio-dot {
  border-color: var(--accent-purple);
}

.radio-card.active.shared .custom-radio-dot::after {
  background: var(--accent-purple);
  box-shadow: 0 0 6px var(--accent-purple);
}

/* Shared Task Card top bar styling */
.task-card.shared-card {
  position: relative;
  overflow: hidden;
}

.shared-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  box-shadow: 0 1px 6px rgba(157, 78, 221, 0.4);
}

/* Health Module Styles */
.health-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 4px;
}

.health-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1200px) {
  .health-layout {
    grid-template-columns: 1fr;
  }
}

.health-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .health-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.health-metric-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.health-metric-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.health-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.health-metric-subtext {
  font-size: 10px;
  color: #94a3b8;
}

/* Calendar Styles */
.calendar-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-month-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.calendar-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.calendar-cell {
  position: relative;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  min-height: 60px;
}

.calendar-cell:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.calendar-cell.other-month {
  opacity: 0.3;
}

.calendar-cell-num {
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
}

.calendar-cell.current-day .calendar-cell-num {
  color: var(--accent-cyan);
  font-weight: 700;
}

.calendar-cell-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.calendar-weight {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-calories {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-todo);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-macros-mini {
  font-size: 7px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-cell-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.calendar-cell-badge.shared {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
}

.calendar-cell-badge.private {
  background: var(--accent-cyan);
}

/* Progress Chart Styles */
.progress-chart-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 380px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.chart-tab-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.chart-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Switch Styles */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.switch-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.switch-subtitle {
  font-size: 10px;
  color: #64748b;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #94a3b8;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: rgba(157, 78, 221, 0.2);
  border-color: var(--accent-purple);
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
  background-color: var(--accent-purple);
  box-shadow: 0 0 6px var(--accent-purple);
}

.macro-inputs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.macro-inputs-row .form-input {
  padding: 10px 8px;
  text-align: center;
}

@media (max-width: 500px) {
  .macro-inputs-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Health Profile Tabs Styles */
.health-profile-tabs {
  display: flex;
  gap: 8px;
}

.health-profile-tab {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.health-profile-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.health-profile-tab.active {
  background: rgba(157, 78, 221, 0.1);
  color: var(--accent-purple);
  border-color: rgba(157, 78, 221, 0.3);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.15);
}

/* ========================================================= */
/* Responsive Mobile Design Overrides                        */
/* ========================================================= */

.mobile-header {
  display: none;
}
.mobile-overlay {
  display: none;
}
.mobile-close-btn {
  display: none;
}
.sidebar-header-mobile {
  display: none;
}

@media (max-width: 768px) {
  body, html {
    overflow: auto !important;
    height: auto !important;
    overscroll-behavior-y: auto; /* Re-enables native pull-to-refresh */
  }

  .app-container {
    flex-direction: column;
    height: auto !important;
    overflow: visible !important;
  }
  
  .main-content {
    height: auto !important;
    overflow-y: visible !important;
  }
  
  /* Mobile Header */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 40;
  }
  
  .mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Off-canvas Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    background: rgba(10, 11, 18, 0.95);
    backdrop-filter: blur(24px);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
  }
  
  .desktop-logo {
    display: none !important;
  }
  
  .mobile-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
  }
  
  /* Overlay Mask */
  .mobile-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 90;
    animation: fadeIn 0.3s ease;
  }
  
  /* Main Content Adjustments */
  .main-content {
    padding: 16px !important;
  }
  
  .view-header h2 {
    font-size: 24px !important;
  }
  
  /* Layout Stacking */
  .dashboard-grid,
  .health-layout,
  .quick-expense-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px;
  }
  
  .dashboard-left,
  .dashboard-right {
    width: 100% !important;
    gap: 16px;
  }

  /* Widgets and internal flex layouts */
  .budget-header,
  .chart-header,
  .macros-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  .glass-panel {
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  
  /* Restore horizontal scrolling for tab sets */
  .chart-tabs,
  .health-profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    width: 100%;
  }
  
  .widget-title {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 500px) {
  .health-metrics-row,
  .macro-inputs-row {
    grid-template-columns: 1fr !important;
  }
  
  .calendar-grid {
    gap: 4px;
  }
  
  .calendar-cell {
    padding: 4px;
    min-height: 48px;
  }
  
  .calendar-cell-num {
    font-size: 12px;
  }
  
  .calendar-weight,
  .calendar-calories {
    font-size: 10px;
  }
}

/* --- Layout Utilities for Tasks/Settings Refactor --- */
.flex-column-gap-16 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

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

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

.flex-row-end-gap-4 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.grid-2-col-gap-16 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.task-label-pill {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 12px;
}

.task-label-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.task-label-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* --- Settings Utilities --- */
.h-full { height: 100%; }
.pb-0 { padding-bottom: 0; }
.border-b-glass { border-bottom: 1px solid rgba(255,255,255,0.05); }
.mt-24 { margin-top: 24px; }
.pt-24 { padding-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.px-24 { padding-left: 24px; padding-right: 24px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.h-42 { height: 42px; }
.flex-grow { flex-grow: 1; }

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

.flex-row-gap-12 {
  display: flex;
  gap: 12px;
}

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

.text-accent-cyan { color: var(--accent-cyan); }
.text-accent-purple { color: var(--accent-purple); }
.text-accent-green { color: var(--accent-green, #10b981); }
.text-done { color: var(--color-done); }
.text-high { color: var(--color-high); }
.text-right { text-align: right; }
.text-bold-light { font-weight: 600; color: #f8fafc; }
.text-mono-sub { font-family: monospace; font-size: 11px; color: #94a3b8; }
.justify-end { justify-content: flex-end; }
.uppercase { text-transform: uppercase; }

.category-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.settings-form-group-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
  background: rgba(0,0,0,0.1);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.color-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.color-swatch-btn.selected {
  border: 3px solid var(--bg-card, #1e293b);
  transform: scale(1.1);
}

.label-display-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
}

.label-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.label-name-text {
  font-size: 14px;
  font-weight: 500;
  color: #f8fafc;
}

.label-delete-btn {
  background: none;
  border: none;
  color: var(--color-high);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.label-delete-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* Settings Tabs */
.module-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0;
  margin-bottom: 16px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,0.03);
  border-radius: 8px 8px 0 0;
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
}

/* Modal specific layouts */
.grid-2-col-gap-24 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3-col-gap-12 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4-col-gap-8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.col-span-2 { grid-column: 1 / -1; }
.pt-12 { padding-top: 12px; }
.pt-16 { padding-top: 16px; }
.p-12 { padding: 12px; }
.w-full { width: 100%; }
.text-md { font-size: 14px; }
.min-h-120 { min-height: 120px; resize: vertical; }
.justify-between { justify-content: space-between; }
.border-l-glass { border-left: 1px solid rgba(255,255,255,0.06); }
.block { display: block; }
.text-slate-300 { color: #cbd5e1; }
.flex-column-gap-8 { display: flex; flex-direction: column; gap: 8px; }
.flex-row-gap-8 { display: flex; gap: 8px; }
.cursor-pointer { cursor: pointer; }
.accent-purple { accent-color: var(--accent-purple); }
.line-height-1-5 { line-height: 1.5; }
.flex-shrink-0 { flex-shrink: 0; }

.modern-input {
  color: #ffffff;
  border: none;
  outline: none;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.modern-input:focus {
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.3);
}

/* ====================================================
   10/10 RESPONSIVE & MOBILE UI OVERRIDES 
   ==================================================== */

/* Touch-friendly scrolling without visible scrollbars */
.scrollable-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.scrollable-x::-webkit-scrollbar {
  display: none;
}

/* Safe area insets for iOS */
.app-container {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Disable hover effects on touch devices so buttons don't get stuck */
@media (hover: none) {
  .btn-primary:hover, .btn-secondary:hover, .icon-btn:hover {
    transform: none !important;
  }
}

/* Mobile Modals (Native Sheet Style) */
@media (max-width: 600px) {
  .mobile-sheet {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 90vh !important;
    border-radius: 24px 24px 0 0 !important;
    transform: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out forwards;
  }
  
  .mobile-sheet-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Workout Specific Responsive Adjustments */
@media (max-width: 600px) {
  /* Stack list cards on mobile */
  .workout-list-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 16px;
  }
  
  .workout-list-header .search-container,
  .workout-list-header button {
    width: 100%;
  }
  
  .workout-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  /* Make sets grid more tap-friendly */
  .workout-sets-grid {
    grid-template-columns: 40px 1fr 1fr 50px 40px !important;
  }

  /* Progress Subtab */
  .progress-split {
    flex-direction: column;
  }
  
  .progress-split > div {
    flex: none !important;
    width: 100% !important;
  }
}
