/*!********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/sidebar.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   TIMASTER - PREMIUM SIDEBAR NAVIGATION
   Luxury Dark Theme with Gold Accents
   ============================================ */

/* ============================================
   SIDEBAR TOGGLE BUTTON (Mobile)
   ============================================ */

.sidebar-toggle {
  position: fixed;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.sidebar-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
  }
}

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

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
  z-index: 1000;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

/* Mobile: hidden by default */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.collapsed {
    transform: translateX(0);
  }
}

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

.sidebar-header {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.sidebar-language-toggle {
  position: absolute;
  top: 0;
  right: 0;
}

@media (max-width: 768px) {
  .sidebar-header {
    margin-top: var(--spacing-3xl);
  }
}

.sidebar-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--gold);
  margin-bottom: var(--spacing-xs);
  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;
}

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

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* ============================================
   SIDEBAR CATEGORIES (Collapsible Groups)
   ============================================ */

.sidebar-category {
  margin-bottom: var(--spacing-xs);
}

.sidebar-category-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-category-header:hover {
  background: var(--bg-tertiary);
}

.sidebar-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.sidebar-category-title {
  flex: 1 1;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.sidebar-category-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: transform 200ms ease;
}

.sidebar-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}

.sidebar-category-content.expanded {
  max-height: 500px;
}

/* Section labels (legacy) */
.sidebar-section {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  padding: 0 var(--spacing-md);
}

.sidebar-section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   SIDEBAR ITEMS
   ============================================ */

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-align: left;
  width: 100%;
  transition: var(--transition);
  text-decoration: none;
}

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

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

.sidebar-item.active:hover {
  background: rgba(212, 175, 55, 0.15);
}

.sidebar-item.disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.sidebar-item.disabled:hover {
  background: transparent;
  color: var(--text-secondary);
}

/* ============================================
   SIDEBAR ICON
   ============================================ */

.sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  width: 24px;
  height: 24px;
  color: inherit;
  transition: var(--transition);
}

.sidebar-icon-img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

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

/* ============================================
   SIDEBAR LABEL
   ============================================ */

.sidebar-label {
  flex: 1 1;
  font-size: var(--text-sm);
  font-weight: inherit;
  color: inherit;
}

.sidebar-item.active .sidebar-label {
  font-weight: var(--weight-semibold);
}

/* Badge on sidebar items */
.sidebar-badge {
  padding: 2px var(--spacing-sm);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--text-on-accent);
  background: var(--gold);
  border-radius: var(--radius-full);
}

/* ============================================
   SIDEBAR FOOTER
   ============================================ */

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

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gold);
  border: 2px solid var(--gold);
}

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

.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   UNAUTHENTICATED STATE
   ============================================ */

.sidebar.unauthenticated {
  opacity: 0.7;
}

.sidebar.unauthenticated .sidebar-header {
  opacity: 0.9;
}

.sidebar.unauthenticated .sidebar-subtitle {
  color: var(--gold);
  font-weight: var(--weight-medium);
}

.sidebar.unauthenticated .sidebar-item {
  opacity: 0.5;
  cursor: pointer;
  position: relative;
}

.sidebar.unauthenticated .sidebar-item:hover {
  opacity: 0.75;
  background: var(--bg-tertiary);
}

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

.sidebar.unauthenticated .sidebar-icon svg {
  animation: pulseLock 2s ease-in-out infinite;
}

@keyframes pulseLock {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Lock indicator on hover */
.sidebar.unauthenticated .sidebar-item::after {
  content: "🔒";
  position: absolute;
  right: var(--spacing-lg);
  font-size: var(--text-sm);
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition);
}

.sidebar.unauthenticated .sidebar-item:hover::after {
  opacity: 0.7;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .sidebar.unauthenticated .sidebar-item:hover::after {
    display: none;
  }
}

/* ============================================
   SIDEBAR OVERLAY (Mobile)
   ============================================ */

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
}

/* ============================================
   LOADING STATE
   ============================================ */

.sidebar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
  color: var(--text-tertiary);
}

.sidebar-loading .spinner {
  margin-bottom: var(--spacing-md);
}

/* ============================================
   SIDEBAR SCROLLBAR
   ============================================ */

.sidebar::-webkit-scrollbar {
  width: 6px;
}

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

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

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

/* ============================================
   MAIN CONTENT OFFSET
   ============================================ */

.main-content {
  margin-left: 280px;
  transition: margin-left 300ms ease-in-out;
  min-height: 100vh;
  background: var(--bg-primary);
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
}

/* ============================================
   SIDEBAR DIVIDER
   ============================================ */

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

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

/* ============================================
   EMPTY STATE (No modules enabled)
   ============================================ */

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

.sidebar-empty p {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-lg);
}

.sidebar-empty-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--gold);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-empty-btn:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.sidebar-unauthenticated {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
  text-align: center;
}

.sidebar-unauthenticated p {
  color: var(--text-tertiary);
  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/components/LanguageToggle/LanguageToggle.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************/
              /* ============================================
   LANGUAGE TOGGLE - Premium Styling
   ============================================ */

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-sans);
  transition: var(--transition);
}

/* ============================================
   ICON VARIANT
   ============================================ */

.language-toggle-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.language-toggle-icon:hover {
  background: var(--bg-elevated);
  border-color: var(--gold);
  color: var(--gold);
}

.language-toggle-short {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

/* ============================================
   MINIMAL VARIANT
   ============================================ */

.language-toggle-minimal {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.language-toggle-minimal span {
  transition: var(--transition);
}

.language-toggle-minimal span.active {
  color: var(--gold);
  font-weight: var(--weight-semibold);
}

.language-toggle-separator {
  margin: 0 var(--spacing-xs);
  color: var(--text-tertiary);
}

.language-toggle-minimal:hover span:not(.language-toggle-separator) {
  color: var(--text-primary);
}

/* ============================================
   FULL VARIANT
   ============================================ */

.language-toggle-full {
  display: inline-flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: var(--transition);
}

.language-option:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.language-option.active {
  background: var(--gold);
  color: var(--text-on-accent);
}

.language-flag {
  font-size: var(--text-base);
  line-height: 1;
}

.language-label {
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  font-size: var(--text-xs);
}

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

@media (max-width: 768px) {
  .language-toggle-full .language-label {
    display: none;
  }

  .language-option {
    padding: var(--spacing-xs);
  }
}

/*!**************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/components/BottomNavigation/BottomNavigation.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   BOTTOM NAVIGATION - Mobile Only
   ============================================ */

.bottom-navigation {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0 var(--spacing-sm);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Show only on mobile */
@media (max-width: 768px) {
  .bottom-navigation {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
  }
}

/* ============================================
   NAVIGATION ITEMS
   ============================================ */

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1;
  padding: var(--spacing-sm) var(--spacing-xs);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.bottom-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: width 200ms ease;
}

.bottom-nav-item.active::before {
  width: 32px;
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: var(--transition);
}

.bottom-nav-item.active .bottom-nav-icon {
  color: var(--gold);
}

.bottom-nav-item:hover .bottom-nav-icon {
  color: var(--text-primary);
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

.bottom-nav-item.active .bottom-nav-label {
  color: var(--gold);
  font-weight: var(--weight-semibold);
}

/* Plus Button Special Style */
.bottom-nav-plus .bottom-nav-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: var(--radius-full);
  color: var(--text-on-accent);
  margin-top: -16px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.bottom-nav-plus.active .bottom-nav-icon {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  box-shadow: none;
}

.bottom-nav-plus .bottom-nav-label {
  margin-top: 2px;
}

/* ============================================
   QUICK ACCESS MENU OVERLAY
   ============================================ */

.bottom-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: fadeIn 200ms ease-out;
}

@media (max-width: 768px) {
  .bottom-nav-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
  }
}

.bottom-nav-menu {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 400px;
  padding: var(--spacing-lg);
  animation: slideUp 250ms ease-out;
}

.bottom-nav-menu-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);
}

.bottom-nav-menu-header span {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

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

.bottom-nav-menu-close:hover {
  background: var(--primary-500);
  color: var(--text-primary);
}

.bottom-nav-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: var(--spacing-md);
  gap: var(--spacing-md);
}

.bottom-nav-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.bottom-nav-menu-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}

.bottom-nav-menu-item:active {
  transform: scale(0.95);
}

.bottom-nav-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-full);
  color: var(--gold);
}

.bottom-nav-menu-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

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

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

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

/* ============================================
   MAIN CONTENT PADDING (for bottom nav space)
   ============================================ */

@media (max-width: 768px) {
  .dashboard-layout,
  .page-container,
  .main-content {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 16px));
  }
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/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/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
   ============================================ */
/*!**************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/notifications.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   TIMASTER - NOTIFICATION STYLES
   Toast & Reward Modal Components
   ============================================ */

/* ============================================
   TOAST CONTAINER & ITEMS
   ============================================ */
.toast-container {
  position: fixed;
  top: var(--spacing-xl);
  right: var(--spacing-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 400px;
  width: calc(100% - var(--spacing-2xl));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  animation: toastSlideIn 200ms ease-out;
}

.toast-success {
  border-left: 3px solid var(--success);
}

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

.toast-warning {
  border-left: 3px solid var(--warning);
}

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

.toast-error {
  border-left: 3px solid var(--danger);
}

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

.toast-info {
  border-left: 3px solid var(--info);
}

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

.toast-reward {
  border-left: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(212, 175, 55, 0.05) 100%);
}

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

.toast-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

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

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

.toast-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.toast-reward-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--gold);
}

.toast-reward-info svg {
  flex-shrink: 0;
}

.toast-dismiss {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition);
}

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

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

.reward-modal {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  animation: rewardModalSlideIn 300ms ease-out;
}

.reward-modal-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
}

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

.reward-modal-celebration {
  padding: var(--spacing-2xl) var(--spacing-xl);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  display: flex;
  justify-content: center;
}

.reward-modal-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: var(--radius-full);
  color: var(--primary-900);
  animation: celebrationPulse 2s ease-in-out infinite;
}

.reward-modal-sparkles {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: var(--radius-full);
  animation: sparkleFloat 1.5s ease-in-out infinite;
}

.sparkle-1 {
  top: 0;
  left: 50%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 50%;
  right: 0;
  animation-delay: 0.3s;
}

.sparkle-3 {
  bottom: 0;
  left: 50%;
  animation-delay: 0.6s;
}

.sparkle-4 {
  top: 50%;
  left: 0;
  animation-delay: 0.9s;
}

.reward-modal-content {
  padding: 0 var(--spacing-xl) var(--spacing-xl);
  text-align: center;
}

.reward-modal-congrats {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--gold);
  margin: 0 0 var(--spacing-sm);
}

.reward-modal-type-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md);
}

.reward-modal-title {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-sm);
}

.reward-modal-message {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 0;
}

.reward-modal-reward-section {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
}

.reward-modal-reward-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: var(--text-sm);
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
}

.reward-modal-reward-value {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.reward-modal-actions {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl);
}

.reward-modal-actions .btn {
  flex: 1 1;
}

/* ============================================
   REWARD DISPLAY IN CARDS (Goals, Tasks, Habits)
   ============================================ */
.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.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--gold);
}

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

.motivation-text {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
  padding-left: var(--spacing-md);
  border-left: 2px solid var(--platinum);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes celebrationPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px rgba(212, 175, 55, 0.2);
  }
}

@keyframes sparkleFloat {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .toast-container {
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    left: var(--spacing-lg);
    max-width: none;
    width: auto;
  }

  .reward-modal {
    width: 95%;
    max-width: none;
    margin: var(--spacing-lg);
  }

  .reward-modal-actions {
    flex-direction: column;
  }
}

