/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/styles/base.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   TIMASTER - LUXURY DESIGN SYSTEM
   Premium Dark Theme with Gold & Platinum Accents
   ============================================ */

/* Typography Import - Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  /* ============================================
     1. BASE PALETTE (UI Foundations) - 90% of UI
     ============================================ */
  --primary-900: #0C0C0F;    /* Primary background (global) */
  --primary-800: #111114;    /* Cards, containers */
  --primary-700: #1C1C21;    /* Secondary surfaces, UI elements */
  --primary-500: #5E5E6A;    /* Borders, dividers, low-contrast */
  --primary-300: #A9A9B4;    /* Secondary text */
  --primary-100: #F5F5F7;    /* High-contrast text, titles */

  /* ============================================
     2. BRAND ACCENT PALETTE - 2-5% of UI
     ============================================ */
  --gold: #D4AF37;           /* Primary accent - CTAs, highlights */
  --gold-soft: #F3E6B3;      /* Hover states, premium touches */
  --gold-dark: #B8952E;      /* Active states */
  --platinum: #D7D9DE;       /* Secondary accent - subtle highlights */

  /* ============================================
     3. FUNCTIONAL COLORS - <1% of UI
     ============================================ */
  --success: #5CBF8A;        /* Completion, confirmation */
  --warning: #E3AC3B;        /* Potential issue */
  --danger: #D96A6A;         /* Error, blocking state */
  --info: #5AA9E6;           /* Informational, neutral guidance */

  /* ============================================
     4. SEMANTIC MAPPINGS
     ============================================ */
  /* Backgrounds */
  --bg-primary: var(--primary-900);
  --bg-secondary: var(--primary-800);
  --bg-tertiary: var(--primary-700);
  --bg-elevated: var(--primary-700);
  --bg-primary-rgb: 12, 12, 15;

  /* Text */
  --text-primary: var(--primary-100);
  --text-secondary: var(--primary-300);
  --text-tertiary: var(--primary-500);
  --text-accent: var(--gold);
  --text-on-accent: var(--primary-900);

  /* Borders */
  --border-color: var(--primary-700);
  --border-color-light: rgba(92, 92, 106, 0.3);
  --border-accent: var(--gold);
  --border-platinum: var(--platinum);

  /* ============================================
     5. SPACING SYSTEM (4px base)
     ============================================ */
  --spacing-xs: 4px;         /* Micro adjustments */
  --spacing-sm: 8px;         /* Small padding */
  --spacing-md: 12px;        /* Internal grouping */
  --spacing-lg: 16px;        /* Between components */
  --spacing-xl: 24px;        /* Between major sections */
  --spacing-2xl: 32px;       /* Top-level separation */
  --spacing-3xl: 40px;       /* Maximum separation */

  /* ============================================
     6. TYPOGRAPHY
     ============================================ */
  /* Font Families */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-mono: "Monaco", "Courier New", monospace;

  /* Font Sizes - Type Scale */
  --text-xs: 0.75rem;        /* 12px - Overline, metadata */
  --text-sm: 0.8125rem;      /* 13px - Labels, body small */
  --text-base: 0.9375rem;    /* 15px - Body M, lists */
  --text-md: 1.0625rem;      /* 17px - Body L, key metrics */
  --text-lg: 1.25rem;        /* 20px - H3 Sans */
  --text-xl: 1.5rem;         /* 24px - H2 Sans */
  --text-2xl: 2rem;          /* 32px - H1 Serif */
  --text-3xl: 2.25rem;       /* 36px - Hero Serif */

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ============================================
     7. BORDER RADIUS
     ============================================ */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ============================================
     8. SHADOWS - Subtle & Premium
     ============================================ */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
  --shadow-focus: 0 0 0 3px rgba(212, 175, 55, 0.25);

  /* ============================================
     9. TRANSITIONS - Smooth & Intentional
     ============================================ */
  --transition-fast: 120ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  --transition: all 200ms ease-in-out;

  /* ============================================
     10. Z-INDEX SCALE
     ============================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-tooltip: 1100;

  /* Legacy mappings for compatibility */
  --primary: var(--gold);
  --primary-light: var(--gold-soft);
  --primary-dark: var(--gold-dark);
  --secondary: var(--platinum);
  --accent: var(--gold);
  --highlight: var(--gold);
  --error: var(--danger);
  --border-radius: var(--radius-sm);
  --border-radius-lg: var(--radius-md);
  --font-size-xs: var(--text-xs);
  --font-size-sm: var(--text-sm);
  --font-size-base: var(--text-base);
  --font-size-lg: var(--text-lg);
  --font-size-xl: var(--text-xl);
  --font-size-2xl: var(--text-2xl);
  --font-size-3xl: var(--text-3xl);
  --font-weight-normal: var(--weight-regular);
  --font-weight-medium: var(--weight-medium);
  --font-weight-semibold: var(--weight-semibold);
  --font-weight-bold: var(--weight-bold);
  --line-height-tight: var(--leading-tight);
  --line-height-normal: var(--leading-normal);
  --line-height-relaxed: var(--leading-relaxed);
  --success-bg: rgba(92, 191, 138, 0.1);
  --warning-bg: rgba(227, 172, 59, 0.1);
  --error-bg: rgba(217, 106, 106, 0.1);
  --info-bg: rgba(90, 169, 230, 0.1);
  --duration-bg: rgba(212, 175, 55, 0.08);
  --text-on-primary: var(--primary-900);
  --text-on-secondary: var(--primary-900);
  --text-on-error: var(--primary-100);
  --gray-50: var(--primary-100);
  --gray-100: var(--primary-300);
  --gray-200: var(--primary-500);
  --gray-300: var(--primary-500);
  --gray-400: var(--primary-500);
  --gray-500: var(--primary-500);
  --gray-600: var(--primary-700);
  --gray-700: var(--primary-700);
  --gray-800: var(--primary-800);
  --gray-900: var(--primary-900);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY - Premium Sans & Serif
   ============================================ */

/* Sans-Serif Headlines */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}

h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

/* Serif Headlines - Vision, Reflections */
.heading-serif,
.vision-title,
.audit-title,
.reflection-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

/* Body Text */
p {
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-tertiary {
  color: var(--text-tertiary) !important;
}

.text-accent {
  color: var(--gold) !important;
}

/* Overline / Label Style */
.overline {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-soft);
}

/* Selection */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
}

/* ============================================
   LAYOUT - App Container
   ============================================ */

@media (min-width: 768px) {
  .app-container {
    margin-left: 280px;
  }
}

/* ============================================
   FORM ELEMENTS - Unified Styling
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea,
select,
.form-input,
.form-textarea,
.form-select,
.search-input,
.goal-select {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

input:focus,
textarea:focus,
select:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-focus);
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Layout */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.form-row {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.form-col {
  flex: 1 1;
  min-width: 0;
}

.form-error {
  margin-top: var(--spacing-xs);
  font-size: var(--text-xs);
  color: var(--danger);
}

/* Filters Row */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: center;
}

.filters-row .form-select,
.filters-row .goal-select,
.filters-row .priority-select,
.filters-row .search-input {
  flex: 0 1 auto;
  min-width: 150px;
  width: auto;
}

/* ============================================
   BUTTONS - Premium Interactions
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--text-on-accent);
  background: var(--gold);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.btn:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Primary Button (Gold) */
.btn-primary,
.btn-blue,
.btn-green,
.resolutions-btn,
.btn-new-task,
.auth-btn {
  background: var(--gold);
  color: var(--text-on-accent);
  border: none;
}

.btn-primary:hover,
.btn-blue:hover,
.btn-green:hover,
.resolutions-btn:hover:not(:disabled),
.btn-new-task:hover,
.auth-btn:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Secondary Button */
.btn-secondary,
.btn-close {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover,
.btn-close:hover {
  background: var(--bg-elevated);
  border-color: var(--platinum);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

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

/* Danger Button */
.btn-danger {
  background: var(--danger);
  color: var(--text-on-error);
  border: none;
}

.btn-danger:hover {
  background: #c45858;
}

/* Button Sizes */
.btn-sm {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--text-md);
}

.btn-icon {
  padding: var(--spacing-sm);
  width: 36px;
  height: 36px;
}

/* Filter Buttons */
.filter-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--platinum);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--text-on-accent);
  border-color: var(--gold);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* ============================================
   CARDS - Premium Containers
   ============================================ */

.card,
.stat-card,
.module-card,
.goal-card,
.challenge-card,
.habit-sidebar,
.habit-main,
.brain-card,
.task-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg) var(--spacing-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover,
.stat-card:hover,
.module-card:hover,
.goal-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

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

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.card-body {
  padding: var(--spacing-lg) 0;
}

.card-footer {
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

/* ============================================
   BADGES & STATUS - Pill Shape, Muted Colors
   ============================================ */

.badge,
.status-badge,
.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.badge-success,
.status-badge.completed {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning,
.status-badge.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-error,
.badge-danger {
  background: var(--error-bg);
  color: var(--danger);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-neutral {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* ============================================
   MODALS - Premium Overlays
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-backdrop);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: fadeIn 140ms ease-out;
}

.modal,
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 140ms ease-out;
}

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

.modal-title,
.modal-header h2,
.modal-header h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--spacing-xl);
}

.modal-body p,
.modal-body label {
  color: var(--text-primary);
}

.modal-footer,
.modal-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
  padding: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

/* Modal Form Elements */
.modal input,
.modal textarea,
.modal select {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-focus);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
  padding: var(--spacing-lg);
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  margin-bottom: var(--spacing-lg);
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info);
  color: var(--info);
}

/* ============================================
   DIVIDERS
   ============================================ */

.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--spacing-xl) 0;
}

.divider-gold {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-platinum {
  background: linear-gradient(90deg, transparent, var(--platinum), transparent);
}

/* ============================================
   LOADING STATES
   ============================================ */

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl);
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-xl);
  opacity: 0.3;
  color: var(--platinum);
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.empty-state-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 400px;
}

/* ============================================
   TOOLTIPS
   ============================================ */

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ============================================
   ICONS
   ============================================ */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

/* ============================================
   SCROLLBAR - Premium Styling
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-700);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

/* ============================================
   ANIMATIONS - Smooth & Intentional
   ============================================ */

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

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

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

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

/* ============================================
   COMPONENT-SPECIFIC OVERRIDES
   ============================================ */

/* Brain */
.brain-container {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.brain-title {
  color: var(--text-primary);
}

.brain-summary,
.brain-meta,
.brain-description {
  color: var(--text-secondary);
}

/* Calendar */
.calendar-grid > div:nth-child(-n + 8):not(.calendar-time-header) {
  color: var(--text-primary);
}

.calendar-hour-label {
  color: var(--text-secondary);
}

/* Challenges */
.challenges-title,
.section-title,
.challenge-habit-title {
  color: var(--text-primary);
}

.challenges-subtitle,
.challenge-opponent,
.challenge-dates {
  color: var(--text-secondary);
}

/* Goals */
.goals-header h1,
.goal-card h3 {
  color: var(--text-primary);
}

.goal-desc {
  color: var(--text-secondary);
}

/* Habits */
.habit-header-title,
.habit-details-title,
.habit-sidebar-title,
.habit-list-item-title {
  color: var(--text-primary);
}

.habit-header-motivation,
.habit-list-item-status {
  color: var(--text-secondary);
}

/* Tasks */
.task-manager-container,
.header-title,
.task-title,
.detail-title {
  color: var(--text-primary);
}

.task-description,
.stat-label {
  color: var(--text-secondary);
}

/* Scheduler / AI Chat */
.chat-bubble p,
.chat-bubble strong {
  color: var(--text-primary);
}

/* Resolutions */
.resolutions-title {
  color: var(--text-primary);
}

.resolutions-input,
.resolutions-item-input {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* Auth */
.auth-section-title {
  color: var(--text-primary);
}

.auth-section-subtitle {
  color: var(--text-secondary);
}

.auth-form-label {
  color: var(--text-primary);
}

.auth-form-input {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* Dashboard */
.dashboard-title,
.expanded-title,
.module-title {
  color: var(--text-primary);
}

.dashboard-subtitle,
.module-description {
  color: var(--text-secondary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.bg-primary {
  background: var(--bg-primary) !important;
}

.bg-secondary {
  background: var(--bg-secondary) !important;
}

.bg-tertiary {
  background: var(--bg-tertiary) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.text-platinum {
  color: var(--platinum) !important;
}

.border-gold {
  border-color: var(--gold) !important;
}

.border-platinum {
  border-color: var(--platinum) !important;
}

/* ============================================
   THEME: LIGHT
   Clean, bright interface for daytime use
   ============================================ */

body.light {
  /* Base Palette */
  --primary-900: #FFFFFF;
  --primary-800: #F8F9FA;
  --primary-700: #E9ECEF;
  --primary-500: #ADB5BD;
  --primary-300: #6C757D;
  --primary-100: #212529;

  /* Backgrounds */
  --bg-primary: var(--primary-900);
  --bg-secondary: var(--primary-800);
  --bg-tertiary: var(--primary-700);
  --bg-elevated: #FFFFFF;
  --bg-primary-rgb: 255, 255, 255;

  /* Text */
  --text-primary: var(--primary-100);
  --text-secondary: var(--primary-300);
  --text-tertiary: var(--primary-500);
  --text-on-accent: #FFFFFF;

  /* Borders */
  --border-color: #DEE2E6;
  --border-color-light: rgba(0, 0, 0, 0.08);

  /* Shadows - Lighter for bright mode */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.2);
  --shadow-focus: 0 0 0 3px rgba(212, 175, 55, 0.3);

  /* Functional Colors - Slightly adjusted for light mode */
  --success-bg: rgba(92, 191, 138, 0.12);
  --warning-bg: rgba(227, 172, 59, 0.12);
  --error-bg: rgba(217, 106, 106, 0.12);
  --info-bg: rgba(90, 169, 230, 0.12);
  --duration-bg: rgba(212, 175, 55, 0.1);

  /* Gold accent remains consistent */
  --gold: #C9A227;
  --gold-soft: #D4AF37;
  --gold-dark: #A68A1F;
}

body.light ::selection {
  background: rgba(212, 175, 55, 0.25);
  color: var(--primary-100);
}

body.light ::-webkit-scrollbar-track {
  background: var(--primary-800);
}

body.light ::-webkit-scrollbar-thumb {
  background: var(--primary-500);
}

body.light ::-webkit-scrollbar-thumb:hover {
  background: var(--primary-300);
}

/* ============================================
   THEME: COFFEE
   Warm, cozy tones for comfortable reading
   ============================================ */

body.coffee {
  /* Base Palette - Warm brown tones */
  --primary-900: #1A1512;
  --primary-800: #231D18;
  --primary-700: #2E2621;
  --primary-500: #6B5B4F;
  --primary-300: #A89888;
  --primary-100: #F5F0EB;

  /* Backgrounds */
  --bg-primary: var(--primary-900);
  --bg-secondary: var(--primary-800);
  --bg-tertiary: var(--primary-700);
  --bg-elevated: var(--primary-700);
  --bg-primary-rgb: 26, 21, 18;

  /* Text */
  --text-primary: var(--primary-100);
  --text-secondary: var(--primary-300);
  --text-tertiary: var(--primary-500);
  --text-on-accent: var(--primary-900);

  /* Borders */
  --border-color: #3D332B;
  --border-color-light: rgba(107, 91, 79, 0.3);

  /* Accent - Warmer gold */
  --gold: #D4A76A;
  --gold-soft: #E8C99B;
  --gold-dark: #B8894E;
  --platinum: #C9C0B8;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-elevated: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 20px rgba(212, 167, 106, 0.2);
  --shadow-focus: 0 0 0 3px rgba(212, 167, 106, 0.3);

  /* Functional Colors - Warmer tones */
  --success: #7DBF8A;
  --warning: #D4A76A;
  --danger: #C97B7B;
  --info: #7AAFCD;

  --success-bg: rgba(125, 191, 138, 0.12);
  --warning-bg: rgba(212, 167, 106, 0.12);
  --error-bg: rgba(201, 123, 123, 0.12);
  --info-bg: rgba(122, 175, 205, 0.12);
  --duration-bg: rgba(212, 167, 106, 0.1);
}

body.coffee ::selection {
  background: rgba(212, 167, 106, 0.35);
  color: var(--primary-100);
}

body.coffee ::-webkit-scrollbar-track {
  background: var(--primary-800);
}

body.coffee ::-webkit-scrollbar-thumb {
  background: var(--primary-500);
}

body.coffee ::-webkit-scrollbar-thumb:hover {
  background: var(--primary-300);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  :root {
    --spacing-xl: 20px;
    --spacing-2xl: 28px;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-row .form-select,
  .filters-row .goal-select,
  .filters-row .priority-select,
  .filters-row .search-input {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }

  .form-row {
    flex-direction: column;
  }

  h1 {
    font-size: var(--text-lg);
  }

  h2 {
    font-size: var(--text-md);
  }
}

/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/styles/components.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   TIMASTER - PREMIUM COMPONENT LIBRARY
   Luxury Dark Theme Components
   ============================================ */

/* ============================================
   BUTTONS - Gold Accent, Premium Feel
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--text-on-accent);
  background: var(--gold);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.btn:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

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

/* Primary (Gold) */
.btn-primary {
  background: var(--gold);
  color: var(--text-on-accent);
  border: none;
}

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

/* Secondary (Neutral) */
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--platinum);
  transform: translateY(-2px);
}

/* Success */
.btn-success {
  background: var(--success);
  color: var(--primary-900);
  border: none;
}

.btn-success:hover {
  background: #6fd19b;
}

/* Danger */
.btn-danger {
  background: var(--danger);
  color: var(--text-on-error);
  border: none;
}

.btn-danger:hover {
  background: #e57d7d;
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-soft);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

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

/* Button Sizes */
.btn-sm {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--text-md);
}

.btn-icon {
  padding: var(--spacing-sm);
  width: 36px;
  height: 36px;
}

.btn-icon-lg {
  width: 44px;
  height: 44px;
}

/* ============================================
   CARDS - Premium Containers with Subtle Glow
   ============================================ */

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg) var(--spacing-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

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

.card-elevated {
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-md);
}

.card-gold-accent {
  border-left: 3px solid var(--gold);
}

.card-platinum-accent {
  border-left: 3px solid var(--platinum);
}

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

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

.card-body {
  padding: var(--spacing-lg) 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

/* ============================================
   FORMS - Refined Inputs
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.form-label-required::after {
  content: '*';
  color: var(--gold);
  margin-left: var(--spacing-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-focus);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-secondary);
}

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

.form-error {
  margin-top: var(--spacing-xs);
  font-size: var(--text-xs);
  color: var(--danger);
}

.form-hint {
  margin-top: var(--spacing-xs);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.form-row {
  display: flex;
  gap: var(--spacing-lg);
}

.form-col {
  flex: 1 1;
  min-width: 0;
}

/* Checkbox & Radio - Premium Style */
.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
}

.form-checkbox input,
.form-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ============================================
   MODALS - Premium Overlays
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-backdrop);
  padding: var(--spacing-lg);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: fadeIn 140ms ease-out;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 140ms ease-out;
}

.modal-lg {
  max-width: 700px;
}

.modal-xl {
  max-width: 900px;
}

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

.modal h3,
.modal-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.modal p {
  color: var(--text-secondary);
  margin: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--text-lg);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--spacing-xl);
  flex: 1 1;
  overflow-y: auto;
}

.modal-footer,
.modal-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
  padding: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

/* Modal Form Elements */
.modal input,
.modal textarea,
.modal select {
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-focus);
  outline: none;
}

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

/* Modal Button Styling */
.modal button {
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.modal button:first-of-type {
  background: var(--gold);
  color: var(--text-on-accent);
}

.modal button:first-of-type:hover {
  background: var(--gold-soft);
}

.modal button:nth-of-type(2) {
  background: var(--danger);
  color: var(--text-on-error);
}

.modal button:nth-of-type(2):hover {
  background: #e57d7d;
}

.modal button:last-of-type:not(:first-of-type):not(:nth-of-type(2)) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.modal button:last-of-type:not(:first-of-type):not(:nth-of-type(2)):hover {
  background: var(--bg-elevated);
  border-color: var(--platinum);
}

/* ============================================
   BADGES - Pill Shape, Muted Colors
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-error {
  background: var(--error-bg);
  color: var(--danger);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-neutral {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.badge-sm {
  padding: 2px var(--spacing-sm);
  font-size: 10px;
}

.badge-lg {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-sm);
}

/* ============================================
   ALERTS - Functional Feedback
   ============================================ */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  margin-bottom: var(--spacing-lg);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-content {
  flex: 1 1;
}

.alert-title {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info);
  color: var(--info);
}

/* ============================================
   TABS - Underline Style
   ============================================ */

.tabs {
  display: flex;
  gap: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--spacing-xl);
}

.tab {
  position: relative;
  padding: var(--spacing-md) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--gold);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  animation: tabSlide 200ms ease-out;
}

@keyframes tabSlide {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Tabs Pills Variant */
.tabs-pills {
  display: flex;
  gap: var(--spacing-sm);
  border-bottom: none;
  background: var(--bg-tertiary);
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
}

.tabs-pills .tab {
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-sm);
}

.tabs-pills .tab.active {
  background: var(--gold);
  color: var(--text-on-accent);
}

.tabs-pills .tab.active::after {
  display: none;
}

/* ============================================
   DROPDOWN / SELECT MENUS
   ============================================ */

.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-trigger:hover {
  border-color: var(--platinum);
}

.dropdown-trigger:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-focus);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: var(--spacing-xs);
  padding: var(--spacing-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
  animation: slideDown 150ms ease-out;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--text-sm);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
}

.dropdown-item.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--spacing-sm) 0;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: width 300ms ease-out;
}

.progress-bar-success {
  background: var(--success);
}

.progress-bar-warning {
  background: var(--warning);
}

.progress-bar-danger {
  background: var(--danger);
}

.progress-sm {
  height: 4px;
}

.progress-lg {
  height: 12px;
}

/* Progress with label */
.progress-labeled {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.progress-labeled .progress {
  flex: 1 1;
}

.progress-labeled .progress-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

/* ============================================
   AVATAR
   ============================================ */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-xs);
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: var(--text-lg);
}

.avatar-xl {
  width: 80px;
  height: 80px;
  font-size: var(--text-xl);
}

.avatar-gold {
  border: 2px solid var(--gold);
}

/* Avatar Group */
.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  margin-left: -12px;
  border: 2px solid var(--bg-secondary);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* ============================================
   DIVIDERS
   ============================================ */

.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--spacing-xl) 0;
}

.divider-gold {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-platinum {
  background: linear-gradient(90deg, transparent, var(--platinum), transparent);
}

.divider-vertical {
  width: 1px;
  height: auto;
  margin: 0 var(--spacing-lg);
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1 1;
  height: 1px;
  background: var(--border-color);
}

/* ============================================
   LOADING / SPINNERS
   ============================================ */

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

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

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 15, 0.8);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  z-index: 10;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 16px;
  margin-bottom: var(--spacing-sm);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-circle {
  border-radius: var(--radius-full);
}

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

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl);
  text-align: center;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--spacing-xl);
  color: var(--primary-500);
  opacity: 0.5;
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.empty-state-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   TOOLTIPS
   ============================================ */

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--text-xs);
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: var(--z-tooltip);
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.tooltip-right::after {
  bottom: 50%;
  left: 100%;
  transform: translateX(8px) translateY(50%);
}

.tooltip-right:hover::after {
  transform: translateX(4px) translateY(50%);
}

/* ============================================
   ICONS
   ============================================ */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon-xl {
  width: 32px;
  height: 32px;
}

.icon-gold {
  color: var(--gold);
}

.icon-platinum {
  color: var(--platinum);
}

/* Icon Button */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

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

.icon-btn:active {
  background: var(--bg-elevated);
}

.icon-btn-gold:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

/* ============================================
   LISTS
   ============================================ */

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.list-item:hover {
  background: var(--bg-tertiary);
}

.list-item-clickable {
  cursor: pointer;
}

.list-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

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

.list-item-title {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.list-item-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

.list-item-action {
  flex-shrink: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Utility animation classes */
.animate-fadeIn {
  animation: fadeIn 200ms ease-out;
}

.animate-slideUp {
  animation: slideUp 200ms ease-out;
}

.animate-slideDown {
  animation: slideDown 200ms ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .modal {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    margin: 0;
  }

  .form-row {
    flex-direction: column;
  }

  .tabs {
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
  }

  .tab {
    white-space: nowrap;
  }
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/styles/auth.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   TIMASTER - AUTHENTICATION PREMIUM STYLES
   Luxury Dark Theme with Gold Accents
   ============================================ */

/* ============================================
   AUTH CONTAINER
   ============================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(215, 217, 222, 0.03) 0%, transparent 50%);
  padding: var(--spacing-xl);
}

/* Logo Block */
.auth-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.auth-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ============================================
   AUTH WRAPPER
   ============================================ */

.auth-wrapper {
  width: 100%;
  max-width: 1000px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 300ms ease-out;
}

/* ============================================
   AUTH HEADER
   ============================================ */

.auth-header {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-xl);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

/* Gold accent line at top */
.auth-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--platinum), var(--gold));
}

.auth-logo {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   AUTH CONTENT GRID
   ============================================ */

.auth-content {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  grid-gap: 0;
  gap: 0;
}

.auth-section {
  padding: var(--spacing-2xl) var(--spacing-xl);
}

.auth-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-color), transparent);
}

/* ============================================
   AUTH SECTIONS
   ============================================ */

.auth-section-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.auth-section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   AUTH FORM
   ============================================ */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.auth-form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.auth-form-input {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--shadow-focus);
}

.auth-form-input::placeholder {
  color: var(--text-tertiary);
}

.auth-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   AUTH ALERT
   ============================================ */

.auth-alert {
  padding: var(--spacing-md);
  background: var(--error-bg);
  border: 1px solid var(--danger);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: var(--text-sm);
  animation: slideDown 200ms ease-out;
}

.auth-alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

/* ============================================
   AUTH BUTTON
   ============================================ */

.auth-btn {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  background: var(--gold);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-top: var(--spacing-md);
}

.auth-btn:hover:not(:disabled) {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Secondary Auth Button */
.auth-btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.auth-btn-secondary:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--platinum);
  transform: translateY(-2px);
}

/* ============================================
   AUTH LINK
   ============================================ */

.auth-link {
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ============================================
   AUTH FOOTER
   ============================================ */

.auth-footer {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.auth-footer-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   SOCIAL AUTH
   ============================================ */

.auth-social {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.auth-social-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--platinum);
}

.auth-social-icon {
  width: 20px;
  height: 20px;
}

/* ============================================
   DIVIDER WITH TEXT
   ============================================ */

.auth-or-divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: '';
  flex: 1 1;
  height: 1px;
  background: var(--border-color);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .auth-container {
    padding: var(--spacing-lg);
  }

  .auth-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-divider {
    display: none;
  }

  .auth-section {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .auth-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
  }

  .auth-logo {
    font-size: var(--text-xl);
  }
}

/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/styles/goals.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   TIMASTER - GOALS PREMIUM STYLES
   Luxury Dark Theme with Gold Accents
   ============================================ */

/* ============================================
   CONTAINER
   ============================================ */

.goals-container {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* ============================================
   HEADER
   ============================================ */

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

.goals-header h1 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.goals-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.goals-actions button {
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--gold);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: var(--transition);
}

.goals-actions button:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ============================================
   FILTERS
   ============================================ */

.goals-filters {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--platinum);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--text-on-accent);
  border-color: var(--gold);
}

/* ============================================
   GOALS SECTION
   ============================================ */

.goals-section {
  margin-bottom: var(--spacing-2xl);
}

.goals-section-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--gold);
}

/* Filter improvements */
.goals-filter-select {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-sm);
  min-width: 180px;
  cursor: pointer;
  transition: var(--transition);
}

.goals-filter-select:hover {
  border-color: var(--gold);
}

.goals-filter-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.goals-filter-buttons {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

/* ============================================
   PERIOD SECTIONS
   ============================================ */

.goals-period-section {
  margin-bottom: var(--spacing-xl);
}

.goals-period-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  transition: var(--transition);
}

.goals-period-header:hover {
  border-color: var(--gold);
}

.goals-period-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.goals-period-header.period-overdue .goals-period-icon {
  color: var(--danger);
}

.goals-period-header.period-thisWeek .goals-period-icon {
  color: var(--warning);
}

.goals-period-header.period-thisMonth .goals-period-icon {
  color: var(--info);
}

.goals-period-header.period-thisQuarter .goals-period-icon {
  color: var(--gold);
}

.goals-period-header.period-thisYear .goals-period-icon {
  color: var(--success);
}

.goals-period-header.period-nextYear .goals-period-icon {
  color: var(--platinum);
}

.goals-period-header.period-future .goals-period-icon {
  color: var(--primary-500);
}

.goals-period-header.period-noDeadline .goals-period-icon {
  color: var(--text-tertiary);
}

.goals-period-label {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  flex: 1 1;
}

.goals-period-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 var(--spacing-sm);
  background: var(--gold);
  color: var(--text-on-accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
}

/* Period-specific colors */
.goals-period-header.period-overdue {
  border-left: 4px solid var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

.goals-period-header.period-overdue .goals-period-count {
  background: var(--danger);
}

.goals-period-header.period-thisWeek {
  border-left: 4px solid var(--warning);
}

.goals-period-header.period-thisMonth {
  border-left: 4px solid var(--info);
}

.goals-period-header.period-thisQuarter {
  border-left: 4px solid var(--gold);
}

.goals-period-header.period-thisYear {
  border-left: 4px solid var(--success);
}

.goals-period-header.period-nextYear {
  border-left: 4px solid var(--platinum);
}

.goals-period-header.period-future {
  border-left: 4px solid var(--primary-500);
}

.goals-period-header.period-noDeadline {
  border-left: 4px solid var(--text-tertiary);
}

/* ============================================
   GOALS GRID
   ============================================ */

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: var(--spacing-xl);
  gap: var(--spacing-xl);
}

/* ============================================
   GOAL CARD
   ============================================ */

.goal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  transition: var(--transition);
}

.goal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--primary-500);
}

.goal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.goal-card h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
  flex: 1 1;
}

.goal-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Goal Status Badge */
.goal-status {
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.goal-status.active,
.goal-status.in-progress {
  background: var(--info-bg);
  color: var(--info);
}

.goal-status.completed {
  background: var(--success-bg);
  color: var(--success);
}

.goal-status.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.goal-status.abandoned,
.goal-status.archived {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

/* Goal Card Status Border Variants */
.goal-card.status-active {
  border-left: 3px solid var(--info);
}

.goal-card.status-pending {
  border-left: 3px solid var(--warning);
}

.goal-card.status-completed {
  border-left: 3px solid var(--success);
}

.goal-card.status-archived {
  border-left: 3px solid var(--text-tertiary);
  opacity: 0.8;
}

/* Goal Meta & Motivation */
.goal-meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.motivation-text {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--gold);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(212, 175, 55, 0.08);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--spacing-sm) 0;
}

/* Reward Badge */
.reward-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--gold);
  margin-top: var(--spacing-sm);
}

.reward-badge svg {
  flex-shrink: 0;
}

/* Goal Info */
.goal-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Progress */
.progress-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.progress-bar-bg,
.progress-bar {
  flex: 1 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

/* Progress bar used in goal cards */
.progress-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: auto;
  background: transparent;
}

.progress-bar .progress-fill {
  flex: 1 1;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: width 500ms ease-out;
}

.progress-bar span {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gold);
  min-width: 42px;
  text-align: right;
}

.progress-bar-fill,
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gold);
  transition: width 500ms ease-out, background-color 300ms ease;
}

/* Progress color variants */
.progress-bar-fill.success,
.progress-fill.success {
  background: var(--success);
}

.progress-bar-fill.warning,
.progress-fill.warning {
  background: var(--warning);
}

.progress-bar-fill.danger,
.progress-fill.danger {
  background: var(--danger);
}

.progress-percentage {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gold);
  min-width: 40px;
  text-align: right;
}

/* Goal Deadline */
.goal-deadline {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

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

.goal-deadline-icon {
  width: 14px;
  height: 14px;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.no-goals {
  text-align: center;
  padding: var(--spacing-3xl);
  font-size: var(--text-md);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
}

/* ============================================
   GOALS PROGRESS SECTION
   ============================================ */

.goals-progress-container {
  margin: var(--spacing-2xl) 0;
}

.goals-progress-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.goals-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Goal Progress Card */
.goal-progress-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.goal-progress-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.goal-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  gap: var(--spacing-sm);
}

.goal-progress-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
  flex: 1 1;
  line-height: var(--leading-tight);
}

.goal-progress-percentage {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--gold);
  white-space: nowrap;
}

.goal-progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.goal-progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gold);
  transition: width 500ms ease-out, background-color 300ms ease;
}

.goal-progress-bar-fill.success {
  background: var(--success);
}

.goal-progress-bar-fill.warning {
  background: var(--warning);
}

.goal-progress-bar-fill.danger {
  background: var(--danger);
}

/* Progress Percentage Color Variants */
.goal-progress-percentage.success {
  color: var(--success);
}

.goal-progress-percentage.warning {
  color: var(--warning);
}

.goal-progress-percentage.danger {
  color: var(--danger);
}

.goal-progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.goal-progress-deadline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

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

/* ============================================
   RANGE INPUT
   ============================================ */

.form-input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  outline: none;
  transition: var(--transition);
}

.form-input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--gold);
  cursor: pointer;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.form-input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}

.form-input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--gold);
  cursor: pointer;
  -moz-transition: var(--transition);
  transition: var(--transition);
  border: none;
}

/* ============================================
   GOAL DETAIL VIEW
   ============================================ */

.goal-detail {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
}

.goal-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.goal-detail-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.goal-detail-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--spacing-xl);
}

.goal-detail-progress {
  margin-bottom: var(--spacing-xl);
}

.goal-detail-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.goal-detail-progress-value {
  font-weight: var(--weight-bold);
  color: var(--gold);
}

.goal-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-xl);
}

.goal-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.goal-detail-meta-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.goal-detail-meta-value {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.goal-detail-actions {
  display: flex;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.goal-detail-actions .btn {
  flex: 1 1;
}

/* ============================================
   MILESTONES
   ============================================ */

.goal-milestones {
  margin-top: var(--spacing-xl);
}

.goal-milestones-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.milestone-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.milestone-item:hover {
  background: var(--bg-elevated);
}

.milestone-item.completed {
  opacity: 0.7;
}

.milestone-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
}

.milestone-content {
  flex: 1 1;
}

.milestone-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.milestone-item.completed .milestone-title {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.milestone-date {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ============================================
   SECTION HEADERS WITH DECORATIVE LINES
   ============================================ */

.section-header-line {
  display: flex;
  align-items: center;
  margin: 2.5rem 0 2rem 0;
  width: 100%;
  position: relative;
}

.section-header-line::before,
.section-header-line::after {
  content: '';
  flex: 1 1;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold, #d4af37) 50%,
    transparent 100%
  );
  opacity: 0.3;
}

.section-header-line::before {
  margin-right: 2rem;
}

.section-header-line::after {
  margin-left: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #f7fafc);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 1rem;
  background: var(--bg-primary, #1a202c);
  position: relative;
  z-index: 1;
}

/* Message quand pas de contenu */
.no-goals {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary, #a0aec0);
  font-style: italic;
  font-size: 0.95rem;
}

/* Espacements entre sections */
.goals-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
}

.goals-section + .goals-section {
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  padding-top: 3rem;
}

/* First section has no top border */
.goals-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR SECTIONS
   ============================================ */

@media (max-width: 768px) {
  .section-header-line {
    margin: 2rem 0 1.5rem 0;
  }

  .section-header-line::before,
  .section-header-line::after {
    display: none;
  }

  .section-title {
    font-size: 1.25rem;
    letter-spacing: 1px;
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .goals-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .goals-section + .goals-section {
    padding-top: 2rem;
  }
}
/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .goals-container {
    padding: var(--spacing-lg);
  }

  .goals-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-lg);
  }

  .goals-header h1 {
    font-size: var(--text-lg);
  }

  .goals-actions {
    width: 100%;
  }

  .goals-actions button {
    flex: 1 1;
  }

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

  .goals-progress-grid {
    grid-template-columns: 1fr;
  }

  .goal-card {
    padding: var(--spacing-lg);
  }

  .goal-progress-card {
    padding: var(--spacing-lg);
  }

  .goal-detail-meta {
    grid-template-columns: 1fr;
  }

  .goal-detail-actions {
    flex-direction: column;
  }
}

/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/styles/statistics.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   STATISTICS MODULE - TIMASTER
   Component-specific styles for Statistics Dashboard
   Uses base design system from global.css
   ============================================ */

/* ============================================
   STATS LAYOUT & CONTAINERS
   ============================================ */

.stats-container {
  padding: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.stats-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.stats-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   TABS NAVIGATION
   ============================================ */

.stats-tabs {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
}

.stats-tab {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.stats-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.stats-tab.active {
  background: var(--gold);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-gold);
}

/* Hide scrollbar but keep functionality */
.stats-tabs::-webkit-scrollbar {
  height: 2px;
}

.stats-tabs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: var(--transition);
  cursor: default;
}

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

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.stat-card-trend {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.stat-card-trend.positive {
  background: rgba(92, 191, 138, 0.15);
  color: var(--success);
}

.stat-card-trend.negative {
  background: rgba(217, 106, 106, 0.15);
  color: var(--danger);
}

.stat-card-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.stat-card-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.stat-card-subtitle {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--spacing-xs);
}

/* Large stat card variant */
.stat-card-lg .stat-card-value {
  font-size: var(--text-3xl);
}

.stat-card-lg .stat-card-icon {
  width: 48px;
  height: 48px;
}

/* ============================================
   PROGRESS RINGS
   ============================================ */

.progress-ring-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: var(--bg-tertiary);
}

.progress-ring-progress {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 700ms ease-out;
}

.progress-ring-value {
  position: absolute;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

/* ============================================
   PRODUCTIVITY SCORE SECTION
   ============================================ */

.productivity-score-card {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.productivity-score-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.productivity-score-main {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.productivity-score-details {
  flex: 1 1;
}

.productivity-score-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.productivity-level-badge {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  margin-bottom: var(--spacing-sm);
}

.productivity-score-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.productivity-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: var(--spacing-md);
  gap: var(--spacing-md);
}

.productivity-breakdown-item {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  text-align: center;
}

.productivity-breakdown-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.productivity-breakdown-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.productivity-recommendations {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.productivity-recommendations-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.productivity-recommendations-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.productivity-recommendation-item {
  display: flex;
  align-items: start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* ============================================
   SECTION CARDS
   ============================================ */

.section-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.section-card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.section-card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.section-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.section-card-body {
  padding: var(--spacing-lg);
}

/* ============================================
   MINI PROGRESS BARS
   ============================================ */

.mini-progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--spacing-sm);
}

.mini-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 500ms ease-out;
}

.mini-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.mini-progress-value {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

/* ============================================
   HEATMAP
   ============================================ */

.heatmap-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
}

.heatmap-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: var(--spacing-xs);
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: default;
  transition: transform 200ms ease-out;
}

.heatmap-cell:hover {
  transform: scale(1.1);
}

.heatmap-cell.empty {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

.heatmap-cell.low {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-secondary);
}

.heatmap-cell.medium {
  background: rgba(59, 130, 246, 0.6);
  color: white;
}

.heatmap-cell.high {
  background: rgba(59, 130, 246, 0.9);
  color: white;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.heatmap-legend-items {
  display: flex;
  gap: var(--spacing-xs);
}

.heatmap-legend-item {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-sm);
}

/* ============================================
   HABIT DETAILS
   ============================================ */

.habit-detail-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--spacing-lg);
  transition: var(--transition);
}

.habit-detail-card:hover {
  background: var(--bg-elevated);
}

.habit-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.habit-detail-name {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.habit-detail-status {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.habit-detail-status.on-track {
  background: var(--success-bg);
  color: var(--success);
}

.habit-detail-status.needs-attention {
  background: var(--warning-bg);
  color: var(--warning);
}

.habit-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
  text-align: center;
}

.habit-detail-metric-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.habit-detail-metric-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--spacing-xs);
}

/* ============================================
   BEST HOURS / DAYS CHARTS
   ============================================ */

.best-hours-container,
.best-days-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
}

.best-hour-item,
.best-day-item {
  text-align: center;
}

.best-hour-label,
.best-day-label {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.best-hour-count,
.best-day-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.best-hour-badge {
  display: inline-block;
  margin-top: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* Bar chart for best days */
.best-day-bar-wrapper {
  height: 200px;              /* 🔥 HAUTEUR DE RÉFÉRENCE */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}


.best-day-bar {
  width: 100%;
  background: linear-gradient(
    to top,
    var(--success),
    var(--info)
  );
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.best-day-bar:hover {
  transform: scaleY(1.05);
  opacity: 0.85;
}

.best-day-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-top: var(--spacing-xs);
}

/* ============================================
   PROJECT & AREA CARDS
   ============================================ */

.project-card,
.area-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--spacing-lg);
}

.project-card-header,
.area-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.project-card-name,
.area-card-name {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.project-card-status {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.project-card-progress {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.area-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--spacing-md);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.area-card-metric {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm);
  text-align: center;
}

.area-card-metric-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.area-card-metric-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--spacing-xs);
}

.area-card-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  font-size: var(--text-sm);
}

.area-card-total-label {
  color: var(--text-secondary);
}

.area-card-total-value {
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */

.stats-alert {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 2px solid;
  margin-bottom: var(--spacing-lg);
}

.stats-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.stats-alert-content {
  flex: 1 1;
}

.stats-alert-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.stats-alert-description {
  font-size: var(--text-xs);
}

.stats-alert-emoji {
  font-size: 32px;
  flex-shrink: 0;
}

.stats-alert.warning {
  background: rgba(227, 172, 59, 0.1);
  border-color: rgba(227, 172, 59, 0.4);
}

.stats-alert.warning .stats-alert-title {
  color: var(--warning);
}

.stats-alert.warning .stats-alert-description {
  color: var(--text-secondary);
}

.stats-alert.danger {
  background: rgba(217, 106, 106, 0.1);
  border-color: rgba(217, 106, 106, 0.4);
}

.stats-alert.danger .stats-alert-title {
  color: var(--danger);
}

.stats-alert.danger .stats-alert-description {
  color: var(--text-secondary);
}

/* ============================================
   LOADING STATES
   ============================================ */

.stats-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: var(--spacing-lg);
}

.stats-loading-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.stats-loading-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   ERROR STATES
   ============================================ */

.stats-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: var(--spacing-lg);
  text-align: center;
}

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

.stats-error-message {
  font-size: var(--text-base);
  color: var(--danger);
  font-weight: var(--weight-medium);
}

/* ============================================
   QUICK STATS WIDGET
   ============================================ */

.quick-stats-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
}

.quick-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.quick-stats-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.quick-stats-view-all {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

.quick-stats-view-all:hover {
  color: var(--gold-soft);
}

.quick-stats-view-all:hover svg {
  transform: translateX(4px);
}

.quick-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--spacing-md);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.quick-metric-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  text-align: center;
  transition: var(--transition);
}

.quick-metric-item:hover {
  box-shadow: var(--shadow-sm);
}

.quick-metric-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.quick-metric-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--spacing-xs);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .stats-container {
    padding: var(--spacing-lg);
  }

  .stats-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .productivity-score-main {
    flex-direction: column;
    text-align: center;
  }

  .productivity-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .habit-detail-metrics,
  .area-card-metrics {
    grid-template-columns: 1fr;
  }

  .best-hours-container,
  .best-days-container {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: var(--spacing-sm);
  }

  .quick-metrics-grid {
    grid-template-columns: 1fr;
  }

  .stat-card-value {
    font-size: var(--text-2xl);
  }

  .stat-card-lg .stat-card-value {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  .stats-tabs {
    gap: var(--spacing-xs);
  }

  .stats-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--text-xs);
  }

  .section-card-body {
    padding: var(--spacing-md);
  }
}

/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */

body.dark .productivity-breakdown-item,
body.dark .productivity-recommendation-item {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .heatmap-cell.empty {
  background: var(--primary-700);
}

body.dark .heatmap-cell.low {
  background: rgba(59, 130, 246, 0.3);
}

body.dark .heatmap-cell.medium {
  background: rgba(59, 130, 246, 0.5);
}

body.dark .heatmap-cell.high {
  background: rgba(59, 130, 246, 0.7);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.stat-card,
.section-card,
.productivity-score-card {
  animation: fadeInUp 400ms ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0ms; }
.stat-card:nth-child(2) { animation-delay: 50ms; }
.stat-card:nth-child(3) { animation-delay: 100ms; }
.stat-card:nth-child(4) { animation-delay: 150ms; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.stats-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
}

.stats-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
}

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
}

.stats-space-y {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.stats-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--spacing-xl) 0;
}

.stats-text-center {
  text-align: center;
}

.stats-timestamp {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

.tasks-chart {
  display: flex;
  align-items: flex-end;
  height: 160px;
}

.tasks-chart-bar {
  width: 100%;
  height: 100%;
  min-height: 2px;
  transform-origin: bottom;
  background: var(--gold);
}
.tasks-chart-day {
  flex: 1 1;
  /*display: flex;*/
  flex-direction: column;
  align-items: center;
}



.tasks-chart-bar:hover {
  transform: scaleY(1.05);
  opacity: 0.85;
}
.tasks-chart-day-label {
  margin-top: var(--spacing-xs);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1;
  height: 12px; /* réserve l’espace */
}

/*!**********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/styles/dashboard.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   TIMASTER - DASHBOARD PREMIUM LAYOUT
   Luxury Dark Theme with Gold Accents
   ============================================ */

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-layout {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* ============================================
   OVERLAY - Generic Modal Backdrop
   ============================================ */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--spacing-3xl);
  z-index: var(--z-modal-backdrop);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: fadeIn 140ms ease-out;
}

/* Wide Dialog Box */
.dialog-box-wide {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-md);
  width: 95%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 140ms ease-out;
}

/* ============================================
   DASHBOARD HEADER - Premium Sticky Navigation
   ============================================ */

.dashboard-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-xl);
  height: 64px;
  background: rgba(17, 17, 20, 0.9);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.dashboard-logo {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--gold);
  letter-spacing: -0.02em;
}

.dashboard-logo-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-nav {
  display: flex;
  gap: var(--spacing-lg);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ============================================
   DASHBOARD MAIN CONTENT
   ============================================ */

.dashboard-main {
  padding: var(--spacing-2xl);
  max-width: 1600px;
  margin: 0 auto;
  animation: fadeIn 300ms ease-out;
}

.dashboard-title {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.02em;
}

.dashboard-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
}

/* Dashboard Welcome Section */
.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.dashboard-welcome-content {
  flex: 1 1 400px;
  min-width: 300px;
}

.dashboard-welcome-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.dashboard-welcome-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
}

.dashboard-welcome-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.dashboard-quote {
  flex: 1 1 350px;
  min-width: 300px;
  max-width: 450px;
}

/* Dashboard Search Section */
.dashboard-search {
  margin-bottom: var(--spacing-2xl);
  max-width: 800px;
}

/* Dashboard Stats Section */
.dashboard-stats {
  margin-bottom: var(--spacing-2xl);
}

/* Dashboard Cards */
.dashboard-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
}

.dashboard-card-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.dashboard-card-full {
  width: 100%;
}

/* Dashboard Sections */
.dashboard-section {
  margin-bottom: var(--spacing-2xl);
}

/* Test Banner */
.test-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--warning-bg);
  border-bottom: 1px solid var(--warning);
  text-align: center;
  flex-wrap: wrap;
}

.test-banner-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--warning);
}

.test-banner-link {
  color: var(--warning);
  text-decoration: underline;
  font-weight: var(--weight-medium);
}

/* Guide Modal */
.guide-intro {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: var(--leading-relaxed);
}

.guide-steps {
  padding-left: var(--spacing-xl);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

.guide-steps li {
  margin-bottom: var(--spacing-md);
  font-size: var(--text-sm);
}

/* ============================================
   DASHBOARD GRID - Module Cards Layout
   ============================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: var(--spacing-xl);
  gap: var(--spacing-xl);
}

/* ============================================
   MODULE CARDS - Premium Interactive Cards
   ============================================ */

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Gold accent line on top - hidden by default */
.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease-out;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--primary-500);
}

.module-card:hover::before {
  transform: scaleX(1);
}

/* Module Icon */
.module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: var(--text-xl);
  color: var(--text-secondary);
  transition: var(--transition);
}

.module-card:hover .module-icon {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  transform: scale(1.05);
}

/* Module Content */
.module-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.module-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Module Meta / Footer */
.module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.module-meta-value {
  color: var(--gold);
  font-weight: var(--weight-medium);
}

/* Module Badge */
.module-badge {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 10px;
  font-weight: var(--weight-medium);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-full);
}

/* ============================================
   EXPANDED VIEW - Full Screen Module
   ============================================ */

.dashboard-expanded {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  background: var(--bg-primary);
  animation: fadeIn 200ms ease-out;
  overflow-y: auto;
}

/* Desktop: respecter la sidebar */
@media (min-width: 768px) {
  .dashboard-expanded {
    left: 280px !important;
  }
}

.expanded-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-xl);
  height: 64px;
  background: rgba(17, 17, 20, 0.95);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.expanded-title-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.expanded-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.expanded-back:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.expanded-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.expanded-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.expanded-content {
  padding: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   STATS GRID - KPI Cards
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

/* Stat Card */
.stat-card {
  position: relative;
  padding: var(--spacing-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-500);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

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

/* Stat Card Variants */
.stat-card.stat-primary {
  border-left-color: var(--gold);
}

.stat-card.stat-success {
  border-left-color: var(--success);
}

.stat-card.stat-warning {
  border-left-color: var(--warning);
}

.stat-card.stat-error,
.stat-card.stat-danger {
  border-left-color: var(--danger);
}

.stat-card.stat-info {
  border-left-color: var(--info);
}

/* Stat Content */
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--spacing-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.stat-card.stat-primary .stat-icon {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

/* Stat Sparkline */
.stat-sparkline {
  position: absolute;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 60px;
  height: 30px;
  opacity: 0.5;
}

/* ============================================
   VISION BOARD - Premium Display
   ============================================ */

.vision-board-container {
  position: relative;
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.vision-board-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--platinum), var(--gold));
}

.vision-board-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.vision-board-date {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.vision-board-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* Vision Board Empty State */
.vision-board-empty {
  padding: var(--spacing-3xl);
  text-align: center;
}

.vision-board-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  color: var(--primary-500);
  opacity: 0.5;
}

.vision-board-empty-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   QUICK ACTIONS - Dashboard Shortcuts
   ============================================ */

.quick-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.quick-action {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.quick-action:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}

.quick-action-icon {
  font-size: var(--text-base);
}

/* ============================================
   DASHBOARD SECTION HEADERS
   ============================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

.section-action {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.section-action:hover {
  color: var(--gold-soft);
}

/* ============================================
   DASHBOARD WIDGETS
   ============================================ */

.widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.widget-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.widget-action {
  font-size: var(--text-xs);
  color: var(--gold);
  cursor: pointer;
}

.widget-body {
  min-height: 100px;
}

.widget-footer {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* ============================================
   PROGRESS RING - Circular Progress
   ============================================ */

.progress-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.progress-ring-circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-bg {
  stroke: var(--bg-tertiary);
}

.progress-ring-value {
  stroke: var(--gold);
  transition: stroke-dashoffset 500ms ease-out;
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-ring-percent {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.progress-ring-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ============================================
   ACTIVITY FEED
   ============================================ */

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.activity-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.activity-item:hover {
  background: var(--bg-tertiary);
}

.activity-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.activity-icon.activity-success {
  background: var(--success-bg);
  color: var(--success);
}

.activity-icon.activity-gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

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

.activity-text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--spacing-xs);
}

/* ============================================
   NOTIFICATIONS DROPDOWN
   ============================================ */

.notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-height: 480px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
}

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

.notifications-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.notifications-clear {
  font-size: var(--text-xs);
  color: var(--gold);
  cursor: pointer;
}

.notification-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.notification-item:hover {
  background: var(--bg-tertiary);
}

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

.notification-item.unread {
  background: rgba(212, 175, 55, 0.05);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-header,
  .expanded-header {
    padding: 0 var(--spacing-lg);
  }

  .dashboard-main,
  .expanded-content {
    padding: var(--spacing-lg);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .module-card {
    padding: var(--spacing-lg);
  }

  .stat-card {
    padding: var(--spacing-lg);
  }

  .quick-actions {
    flex-direction: column;
  }

  .dashboard-title {
    font-size: var(--text-lg);
  }

  .notifications-dropdown {
    width: 100%;
    right: 0;
    left: 0;
    border-radius: 0;
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    height: 56px;
  }

  .dashboard-logo {
    font-size: var(--text-lg);
  }

  .module-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }
}

/* ============================================
   DASHBOARD HERO SECTION - Greeting + Quick Actions
   ============================================ */

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.dashboard-hero-content {
  flex: 1 1 500px;
  min-width: 280px;
}

.dashboard-greeting {
  margin-bottom: var(--spacing-lg);
}

.dashboard-greeting-text {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.dashboard-greeting-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.dashboard-hero-quote {
  flex: 0 1 350px;
  min-width: 280px;
}

/* Quick Actions */
.dashboard-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.quick-action-btn:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.quick-action-btn.primary {
  background: var(--gold);
  color: var(--text-on-accent);
  border-color: var(--gold);
}

.quick-action-btn.primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* ============================================
   DASHBOARD STATS ROW
   ============================================ */

.dashboard-stats-row {
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   DASHBOARD FOCUS GRID - Tasks + Events
   ============================================ */

.dashboard-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 1024px) {
  .dashboard-focus-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   COLLAPSIBLE SECTIONS
   ============================================ */

.dashboard-collapsible {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  transition: var(--transition);
}

.dashboard-collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) var(--spacing-xl);
  cursor: pointer;
  transition: var(--transition);
}

.dashboard-collapsible-header:hover {
  background: var(--bg-tertiary);
}

.dashboard-collapsible-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.dashboard-collapsible-title h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.dashboard-collapsible-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.dashboard-collapsible-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.btn-icon-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

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

.dashboard-collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out, padding 300ms ease-out;
}

.dashboard-collapsible-content.show {
  max-height: 2000px;
  padding: 0 var(--spacing-xl) var(--spacing-xl);
}

.dashboard-collapsible.collapsed .dashboard-collapsible-header {
  border-bottom: none;
}

.dashboard-collapsible.open .dashboard-collapsible-header {
  border-bottom: 1px solid var(--border-color);
}

/* ============================================
   DASHBOARD CONTENT
   ============================================ */

.dashboard-content {
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   DASHBOARD FOOTER ACTIONS
   ============================================ */

.dashboard-footer-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

/* ============================================
   ONBOARDING WIZARD MODAL
   ============================================ */

.onboarding-overlay {
  background: rgba(0, 0, 0, 0.85);
}

.onboarding-modal {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  animation: modalSlideIn 200ms ease-out;
}

.onboarding-progress {
  height: 4px;
  background: var(--bg-tertiary);
}

.onboarding-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 300ms ease-out;
}

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
}

.onboarding-step-indicator {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.onboarding-content {
  padding: var(--spacing-3xl) var(--spacing-xl);
  text-align: center;
}

.onboarding-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-xl);
  background: rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-full);
  color: var(--gold);
}

.onboarding-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.onboarding-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 400px;
  margin: 0 auto;
}

.onboarding-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-xl);
}

.onboarding-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.onboarding-dot:hover {
  background: var(--primary-500);
}

.onboarding-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

.onboarding-dot.completed {
  background: var(--gold);
  opacity: 0.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

/* Staggered card animations */
.module-card {
  animation: fadeIn 300ms ease-out backwards;
}

.module-card:nth-child(1) { animation-delay: 0ms; }
.module-card:nth-child(2) { animation-delay: 50ms; }
.module-card:nth-child(3) { animation-delay: 100ms; }
.module-card:nth-child(4) { animation-delay: 150ms; }
.module-card:nth-child(5) { animation-delay: 200ms; }
.module-card:nth-child(6) { animation-delay: 250ms; }
/* ============================================
   VISION BOARD - Premium Display
   ============================================ */

/* Vision Board Highlight Section */
.dashboard-vision-highlight {
  margin-bottom: var(--spacing-xl);
}

/* Vision Board Showcase - When board exists */
.vision-board-showcase {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.vision-board-showcase:hover {
  box-shadow: var(--shadow-elevated);
}

.vision-board-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.vision-board-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.vision-board-showcase-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vision-board-showcase-icon {
  color: var(--gold);
}

.vision-board-showcase-content {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.vision-board-showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease-out;
}

.vision-board-showcase:hover .vision-board-showcase-image {
  transform: scale(1.02);
}

.vision-board-showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
}

.vision-board-showcase-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.vision-board-showcase-date {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* Vision Board Empty - Compact CTA */
.vision-board-empty-compact {
  display: flex;
  justify-content: center;
  padding: var(--spacing-sm) 0;
}

.vision-board-add-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  background: transparent;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.vision-board-add-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

/* Vision Board Loading */
.vision-board-loading {
  display: flex;
  justify-content: center;
  padding: var(--spacing-md);
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ============================================
   RESPONSIVE - Dashboard Mobile
   ============================================ */

@media (max-width: 768px) {
  .dashboard-hero {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .dashboard-hero-content {
    flex: 1 1 auto;
    width: 100%;
  }

  .dashboard-hero-quote {
    flex: 1 1 auto;
    width: 100%;
  }

  .dashboard-greeting-text {
    font-size: var(--text-xl);
  }

  .dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: var(--spacing-sm);
    gap: var(--spacing-sm);
  }

  .quick-action-btn {
    justify-content: center;
    padding: var(--spacing-md);
  }

  .quick-action-btn span {
    display: none;
  }

  .dashboard-collapsible-header {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .dashboard-collapsible-content.show {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
  }

  .dashboard-collapsible-actions .btn {
    display: none;
  }

  .dashboard-footer-actions {
    flex-direction: column;
  }

  .dashboard-footer-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Onboarding Modal Mobile */
  .onboarding-modal {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .onboarding-content {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .onboarding-actions {
    flex-direction: column;
    padding: var(--spacing-lg);
  }

  .onboarding-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .quick-action-btn {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .dashboard-collapsible-title h3 {
    font-size: var(--text-sm);
  }
}

/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/styles/habits.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   TIMASTER - HABITS TRACKER PREMIUM STYLES
   Luxury Dark Theme with Gold Accents
   ============================================ */

/* ============================================
   CONTAINER
   ============================================ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

/* ============================================
   LAYOUT - GRID
   ============================================ */

.habit-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-gap: var(--spacing-xl);
  gap: var(--spacing-xl);
}

@media (max-width: 1024px) {
  .habit-grid {
    grid-template-columns: 280px 1fr;
  }
}

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

/* ============================================
   HABIT SIDEBAR
   ============================================ */

.habit-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  height: -moz-fit-content;
  height: fit-content;
  position: -webkit-sticky;
  position: sticky;
  top: var(--spacing-xl);
}

.habit-sidebar-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

/* ============================================
   HABIT LIST
   ============================================ */

.habit-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.habit-card {
  padding: var(--spacing-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.habit-card:hover {
  background: var(--bg-elevated);
  border-color: var(--platinum);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.habit-card.selected {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.habit-card.selected .habit-card-title,
.habit-card.selected .habit-card-streak {
  color: var(--gold);
}

.habit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.habit-card-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.habit-card-streak {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.habit-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Status indicator */
.habit-status {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.habit-status.active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.habit-status.inactive {
  background: var(--primary-500);
}

/* ============================================
   HABIT MAIN CONTENT
   ============================================ */

.habit-main {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
}

.habit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.habit-header-content {
  flex: 1 1;
}

.habit-header-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.habit-header-motivation {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
}

.habit-header-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* ============================================
   LABELS & BADGES
   ============================================ */

.label {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.label-active {
  background: var(--success-bg);
  color: var(--success);
}

.label-inactive {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

.label-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

/* ============================================
   STATS CARDS
   ============================================ */

.card-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: var(--spacing-lg);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.stats-card {
  padding: var(--spacing-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
}

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

.stats-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.stats-value.stats-current {
  color: var(--gold);
}

.stats-value.stats-longest {
  color: var(--warning);
}

.stats-value.stats-recent {
  color: var(--info);
}

.stats-value.stats-total {
  color: var(--success);
}

.stats-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   TRACKING HISTORY
   ============================================ */

.tracking-section {
  margin-top: var(--spacing-xl);
}

.tracking-section-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.tracking-history {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.tracking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tracking-row:hover {
  background: var(--bg-elevated);
  border-color: var(--platinum);
  cursor: pointer;
}

.tracking-date {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.tracking-status {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
}

.tracking-status.completed {
  background: var(--success-bg);
  color: var(--success);
}

.tracking-status.missed {
  background: var(--error-bg);
  color: var(--danger);
}

.tracking-status.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

/* ============================================
   CALENDAR HEATMAP
   ============================================ */

.habit-calendar {
  margin-top: var(--spacing-xl);
}

.habit-calendar-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.habit-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: var(--spacing-xs);
  gap: var(--spacing-xs);
}

.habit-calendar-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: var(--transition);
}

.habit-calendar-day.completed {
  background: var(--gold);
  color: var(--text-on-accent);
}

.habit-calendar-day.missed {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

.habit-calendar-day.today {
  border: 2px solid var(--gold);
}

.habit-calendar-day:hover {
  transform: scale(1.1);
}

/* ============================================
   FORMS IN MODAL
   ============================================ */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form label {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.form input[type="text"],
.form input[type="number"],
.form input[type="time"],
.form textarea,
.form select {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--shadow-focus);
}

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

/* Checkbox custom */
.form label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-md);
}

.form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--gold);
}

/* ============================================
   FILTER TABS
   ============================================ */

.filter-tabs {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-xs);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.filter-tab {
  flex: 1 1;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.filter-tab.active {
  background: var(--gold);
  color: var(--text-on-accent);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-info {
  background: var(--info);
  color: var(--primary-900);
  border: none;
}

.btn-info:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--warning);
  color: var(--primary-900);
  border: none;
}

.btn-warning:hover {
  opacity: 0.9;
}

.btn-track {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--gold);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: var(--transition);
}

.btn-track:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.habit-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl);
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.habit-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-500);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.habit-empty-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.habit-empty-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.habit-empty-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   HABIT TRACKER CARD (Dashboard Widget)
   ============================================ */

.habit-tracker-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  max-width: 1200px;
  margin: 0 auto;
}

.habit-tracker-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.habit-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.habit-tracker-week-info {
  text-align: center;
  flex: 1 1;
  min-width: 0;
}

.habit-week-title {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.habit-week-meta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.habit-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.habit-tracker-nav-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

/* ============================================
   HABIT TABLE
   ============================================ */

.habit-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--spacing-lg);
}

.habit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 600px;
}

.habit-table thead {
  background: var(--bg-tertiary);
}

.habit-table-header-habit {
  padding: var(--spacing-md);
  text-align: left;
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  background: var(--bg-tertiary);
  z-index: 10;
  min-width: 180px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.habit-table-header-day {
  padding: var(--spacing-md);
  text-align: center;
  min-width: 70px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.habit-table-header-day.is-today {
  background: var(--gold);
  color: var(--text-on-accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.habit-table-header-progress {
  padding: var(--spacing-md);
  text-align: center;
  min-width: 90px;
  background: var(--bg-tertiary);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.habit-day-name {
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.habit-day-number {
  font-size: var(--text-md);
  margin-top: var(--spacing-xs);
}

.habit-row {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.habit-row:hover {
  background: var(--bg-tertiary);
}

.habit-cell-name {
  padding: var(--spacing-md);
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  background: var(--bg-secondary);
  z-index: 5;
  border-right: 1px solid var(--border-color);
}

.habit-row:hover .habit-cell-name {
  background: var(--bg-tertiary);
}

.habit-name {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.habit-frequency {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--spacing-xs);
}

.habit-cell-day {
  padding: var(--spacing-sm);
  text-align: center;
}

.habit-cell-day.is-today {
  background: rgba(212, 175, 55, 0.05);
}

.habit-check-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: var(--transition);
  padding: 0;
  font-size: var(--text-md);
}

.habit-check-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.habit-check-btn.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.habit-check-btn.updating {
  opacity: 0.5;
  cursor: wait;
}

.habit-day-future,
.habit-day-not-required {
  color: var(--text-tertiary);
  font-size: var(--text-md);
  opacity: 0.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.habit-cell-progress {
  padding: var(--spacing-sm);
  text-align: center;
  background: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.habit-progress-count {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.habit-scroll-hint {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-md);
}

.habit-footer {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.habit-loading {
  padding: var(--spacing-2xl);
  text-align: center;
  color: var(--text-secondary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.flex {
  display: flex;
}

.flex-between {
  justify-content: space-between;
}

.flex-end {
  justify-content: flex-end;
}

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

.column {
  flex-direction: column;
}

.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ============================================
   MOBILE VIEW - LISTE DE CARTES
   ============================================ */

.habit-mobile-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.habit-mobile-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: var(--transition);
}

.habit-mobile-card:active {
  transform: scale(0.99);
}

.habit-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

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

.habit-mobile-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--spacing-xs);
}

.habit-mobile-frequency {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.habit-mobile-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-xs);
}

.habit-mobile-count {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.habit-mobile-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: var(--spacing-xs);
  gap: var(--spacing-xs);
}

.habit-mobile-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  min-height: 80px;
}

.habit-mobile-day.is-today {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
}

.habit-mobile-day-label {
  font-size: 10px;
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.habit-mobile-day-number {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}

.habit-mobile-day.is-today .habit-mobile-day-label,
.habit-mobile-day.is-today .habit-mobile-day-number {
  color: var(--gold);
}

.habit-mobile-check {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
  margin-top: auto;
  -webkit-tap-highlight-color: transparent;
}

.habit-mobile-check:hover,
.habit-mobile-check:focus {
  border-color: var(--gold);
  color: var(--gold);
}

.habit-mobile-check:active {
  transform: scale(0.95);
}

.habit-mobile-check.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.habit-mobile-check.updating {
  opacity: 0.5;
  cursor: wait;
}

.habit-mobile-future,
.habit-mobile-not-required {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0.3;
  margin-top: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: var(--spacing-lg);
  }

  .habit-sidebar {
    position: static;
  }

  .card-grid-auto {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-value {
    font-size: var(--text-xl);
  }

  .habit-header {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .habit-header-actions {
    width: 100%;
  }

  .habit-header-actions .btn {
    flex: 1 1;
  }

  .habit-tracker-card {
    padding: var(--spacing-md);
  }

  .habit-tracker-header {
    padding: var(--spacing-sm);
    gap: var(--spacing-xs);
    flex-wrap: nowrap;
  }

  .habit-week-title {
    font-size: var(--text-sm);
  }

  .habit-footer {
    flex-direction: column;
    padding: var(--spacing-md);
  }

  .habit-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .card-grid-auto {
    grid-template-columns: 1fr;
  }

  .tracking-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .filter-tabs {
    flex-direction: column;
  }

  .habit-tracker-header {
    flex-direction: row;
    justify-content: space-between;
  }

  .habit-tracker-week-info {
    flex: 1 1;
    min-width: 0;
  }

  .habit-week-title {
    font-size: var(--text-xs);
    white-space: nowrap;
  }

  .habit-week-meta {
    gap: var(--spacing-xs);
  }

  .habit-count {
    display: none;
  }

  .habit-mobile-day {
    padding: 4px;
    min-height: 72px;
  }

  .habit-mobile-check {
    width: 36px;
    height: 36px;
  }

  .habit-mobile-future,
  .habit-mobile-not-required {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 374px) {
  .habit-mobile-day-label {
    font-size: 8px;
  }

  .habit-mobile-day-number {
    font-size: var(--text-xs);
  }

  .habit-mobile-check {
    width: 32px;
    height: 32px;
  }

  .habit-mobile-future,
  .habit-mobile-not-required {
    width: 32px;
    height: 32px;
  }
}

/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/styles/responsive.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   RESPONSIVE.CSS - SOLUTION GLOBALE
   À importer APRÈS tous les autres CSS
   ============================================ */

/* ============================================
   BREAKPOINTS
   ============================================ */
/*
  Mobile: < 640px
  Tablet: 640px - 1024px
  Desktop: > 1024px
*/

/* ============================================
   BASE RESPONSIVE
   ============================================ */

/* Empêcher le défilement horizontal */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

/* Images et médias responsives */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ============================================
   CONTAINERS GLOBAUX
   ============================================ */

.container,
.auth-container,
.dashboard-main,
.task-manager-container,
.brain-container,
.challenges-container,
.goals-container,
.resolutions-container,
.habit-tracker {
  width: 100%;
  max-width: 100vw;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* ============================================
   SIDEBAR RESPONSIVE
   ============================================ */

/* Mobile: sidebar en overlay */
@media (max-width: 768px) {
    .sidebar {
    background: #f6f4f1 !important;   /* ton fond principal */
    border-right: 1px solid rgba(0,0,0,0.05);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
  }

  .sidebar-item {
    color: #0A1A2F !important;
  }

  .sidebar-item:hover {
    background: rgba(139,111,71,0.08); /* or doux transparent */
  }


  .sidebar.collapsed {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex !important;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
  }

  .sidebar-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
  }

  /* Pas de décalage du contenu */
  .main-content,
  .app-container {
    margin-left: 0 !important;
  }
}

/* Desktop: sidebar fixe */
@media (min-width: 769px) {
  .sidebar {
    transform: translateX(0) !important;
  }

  .sidebar-toggle {
    display: none !important;
  }

  .sidebar-overlay {
    display: none !important;
  }

  .main-content,
  .app-container {
    margin-left: 280px;
  }
}

/* ============================================
   HEADER RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .dashboard-header,
  .expanded-header {
    padding: 0 var(--spacing-md);
    height: 56px;
  }

  .dashboard-logo {
    font-size: var(--font-size-xl);
  }

  .dashboard-nav {
    display: none; /* Cache la nav sur mobile */
  }

  .dashboard-actions {
    gap: var(--spacing-xs);
  }

  .dashboard-actions .btn {
    padding: 6px 10px;
    font-size: var(--font-size-xs);
  }
}

/* ============================================
   GRIDS RESPONSIVE
   ============================================ */

/* Dashboard grid */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* Stats grid */
@media (max-width: 768px) {
  .stats-grid,
  .card-grid-auto {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .card-grid-auto {
    grid-template-columns: 1fr;
  }
}

/* Habit grid */
@media (max-width: 1024px) {
  .habit-grid {
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .habit-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* ============================================
   FORMULAIRES RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .form-row,
  .filters-row {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .form-col {
    width: 100%;
  }

  .filters-row .form-select,
  .filters-row .goal-select,
  .filters-row .priority-select,
  .filters-row .search-input,
  .filters-row input,
  .filters-row select {
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }

  /* Tous les inputs en pleine largeur */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  textarea,
  select {
    width: 100%;
    margin-right: 0 !important;
  }
}

/* ============================================
   MODALS RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end; /* Modal du bas sur mobile */
  }

  .modal,
  .modal-content,
  .dialog-box-wide {
    width: 100%;
    max-width: 100%;
    max-height: 95vh;
    margin: 0;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--spacing-md);
  }

  .modal-title {
    font-size: var(--font-size-lg);
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: var(--spacing-sm);
  }

  .modal-footer .btn {
    width: 100%;
  }
}

/* ============================================
   CALENDRIER RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .calendar-grid {
    grid-template-columns: 50px repeat(7, 1fr);
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: 40px repeat(7, 1fr);
    grid-auto-rows: 40px;
    font-size: 0.75rem;
  }

  .calendar-grid > div:nth-child(-n + 8):not(.calendar-time-header) {
    padding: 4px 2px;
    font-size: 0.7rem;
  }

  .calendar-hour-label {
    font-size: 0.65rem;
    padding-right: 4px;
  }

  .calendar-event {
    font-size: 0.65rem;
    padding: 2px 3px;
  }
}

@media (max-width: 480px) {
  .calendar-grid {
    grid-template-columns: 35px repeat(7, 1fr);
    grid-auto-rows: 35px;
  }

  .calendar-hour-label {
    font-size: 0.6rem;
  }

  .card-header {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .card-header .flex {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* ============================================
   CARTES RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .card,
  .module-card,
  .goal-card,
  .challenge-card,
  .habit-card,
  .stat-card {
    padding: var(--spacing-md);
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

/* ============================================
   BOUTONS RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .btn {
    padding: 8px 14px;
    font-size: var(--font-size-sm);
  }

  .btn-sm {
    padding: 6px 10px;
    font-size: var(--font-size-xs);
  }

  .btn-lg {
    padding: 10px 18px;
    font-size: var(--font-size-base);
  }

  /* Boutons en pleine largeur dans les actions */
  .modal-footer .btn,
  .auth-btn,
  .form-actions .btn {
    width: 100%;
  }
}

/* ============================================
   TYPOGRAPHIE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  h1, .dashboard-title, .auth-logo {
    font-size: var(--font-size-2xl);
  }

  h2, .modal-title, .expanded-title {
    font-size: var(--font-size-xl);
  }

  h3, .card-title, .module-title {
    font-size: var(--font-size-lg);
  }

  .dashboard-subtitle,
  .auth-subtitle {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  h1, .dashboard-title {
    font-size: var(--font-size-xl);
  }

  h2 {
    font-size: var(--font-size-lg);
  }
}

/* ============================================
   AUTH PAGE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .auth-container {
    padding: var(--spacing-md);
  }

  .auth-wrapper {
    margin: 0;
  }

  .auth-content {
    grid-template-columns: 1fr;
  }

  .auth-divider {
    display: none;
  }

  .auth-section {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .auth-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
  }

  .auth-header {
    padding: var(--spacing-xl) var(--spacing-md);
  }
}

/* ============================================
   TABLEAUX RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  /* Tables en scroll horizontal sur mobile */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  table thead th,
  table tbody td {
    min-width: 60px;
    padding: 8px !important;
    font-size: 0.75rem;
  }

  table thead th:first-child,
  table tbody td:first-child {
    min-width: 140px;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    background: var(--bg-primary);
    z-index: 10;
  }

  .tracking-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
}

/* ============================================
   HABIT TRACKER SPÉCIFIQUE
   ============================================ */

@media (max-width: 768px) {
  /* Header du habit tracker */
  .habit-tracker-header {
    flex-direction: column !important;
    gap: var(--spacing-sm) !important;
    padding: var(--spacing-sm) !important;
  }

  .habit-tracker-header > div {
    width: 100% !important;
  }

  .habit-tracker-header .btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  /* Boutons de navigation semaine */
  .week-nav-buttons {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .week-nav-buttons button {
    min-width: 36px !important;
    padding: 8px !important;
  }

  /* Titre de semaine plus compact */
  .week-title {
    font-size: 0.9rem !important;
  }

  /* Badges plus petits */
  .badge {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }

  /* Footer avec liens */
  .habit-footer {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .habit-footer .btn {
    width: 100% !important;
    justify-content: center;
  }
}

/* ============================================
   SPACING RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root {
    --spacing-xs: 4px;
    --spacing-sm: 6px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
  }
}

/* ============================================
   OVERLAYS ET Z-INDEX
   ============================================ */

/* Ordre de superposition correct */
.sidebar-overlay {
  z-index: 1000;
}

.sidebar {
  z-index: 1001;
}

.sidebar-toggle {
  z-index: 1002;
}

.modal-overlay {
  z-index: 2000;
}

.modal {
  z-index: 2001;
}

/* ============================================
   CORRECTIONS SPÉCIFIQUES
   ============================================ */

/* Éviter le débordement du texte */
@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6,
  .module-title,
  .card-title,
  .dashboard-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
            hyphens: auto;
  }

  /* Scroll horizontal pour les éléments larges */
  .card-body {
    overflow-x: auto;
  }

  /* Filter buttons en colonne sur mobile */
  .filter-buttons {
    flex-direction: column;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   TOUCH TARGETS (Amélioration UX mobile)
   ============================================ */

@media (max-width: 768px) {
  /* Augmenter la taille des zones cliquables */
  .btn,
  .habit-card,
  .module-card,
  .sidebar-item,
  .quick-action-btn,
  .dashboard-collapsible-header {
    min-height: 44px;
  }

  /* Meilleur espacement pour le tactile */
  .sidebar-item {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
  }
}

/* ============================================
   BOTTOM NAVIGATION SPACE
   ============================================ */

@media (max-width: 768px) {
  /* Add padding at bottom for bottom navigation */
  .dashboard-layout,
  .main-content,
  .app-container,
  .page-container,
  .task-manager-container,
  .brain-container,
  .challenges-container,
  .goals-container,
  .resolutions-container,
  .habit-tracker,
  .calendar-container,
  .statistics-container {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 16px)) !important;
  }
}

/* ============================================
   DASHBOARD COLLAPSIBLE SECTIONS MOBILE
   ============================================ */

@media (max-width: 768px) {
  .dashboard-collapsible {
    margin-bottom: var(--spacing-md);
  }

  .dashboard-collapsible-header {
    padding: var(--spacing-md);
  }

  .dashboard-collapsible-content.show {
    padding: var(--spacing-md);
  }

  .dashboard-collapsible-title h3 {
    font-size: var(--text-sm);
  }

  /* Hide "show more" text on mobile, keep only arrow */
  .dashboard-collapsible-actions .btn span {
    display: none;
  }

  .dashboard-collapsible-actions .btn {
    padding: var(--spacing-xs);
    min-width: auto;
  }
}

/* ============================================
   SIDEBAR CATEGORIES MOBILE
   ============================================ */

@media (max-width: 768px) {
  .sidebar-category-header {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .sidebar-category-content.expanded {
    max-height: 800px;
  }

  .sidebar-item {
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

/* ============================================
   PERFORMANCE MOBILE
   ============================================ */

@media (max-width: 768px) {
  /* Désactiver certaines animations pour améliorer les perfs */
  * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
  }

  /* Simplifier les ombres */
  .card,
  .module-card,
  .btn {
    box-shadow: var(--shadow-xs) !important;
  }
}

/* ============================================
   ORIENTATION LANDSCAPE MOBILE
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
  .modal {
    max-height: 80vh;
  }

  .sidebar {
    width: 240px;
  }
}

/* ============================================
   TRÈS PETITS ÉCRANS (< 375px)
   ============================================ */

@media (max-width: 374px) {
  .dashboard-header {
    padding: 0 var(--spacing-sm);
  }

  .btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .modal-content,
  .auth-section {
    padding: var(--spacing-md);
  }
}

/* ============================================
   PRINT (Bonus)
   ============================================ */

@media print {
  .sidebar,
  .sidebar-toggle,
  .dashboard-header,
  .btn,
  .modal-overlay {
    display: none !important;
  }

  .main-content,
  .app-container {
    margin-left: 0 !important;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* ============================================
   ACCESSIBILITÉ RESPONSIVE
   ============================================ */

/* Focus visible sur mobile */
@media (max-width: 768px) {
  *:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
  }
}

/* ============================================
   FIN DU FICHIER
   ============================================ */
