:root {
  /* Backgrounds */
  /* --color-bg: #0f0f0f;    */
  --color-bg: #000;
  --color-panel-bg: #1a1a1a;  /* slightly lighter */
  --color-surface: #161b26;
  --color-surface-light: #1d2433;
  --primary-btn: #2c2c2c;
  --primary-btn-hover:#666;
      --color-doom: #ff3d3d;
  --color-doom-light: #ff5c5c;
  --color-doom-dark: #cc2e2e;
  --color-text-primary:  #ffffff;
    --color-text-secondary: #888;
    --color-primary: #666;       /* medium blue */
  --color-primary-light: rgba(11, 219, 219, 0.1); /* soft green */
  --color-primary-dark: rgba(0, 230, 255, 0.22);  /* bright green*/
  
  /* Secondary Accents */
  --color-secondary: #4ecdc4;  /* teal */
  --color-secondary-dark: #369a94;
  
  /* Tertiary Accents */
  --color-tertiary: #ff6b6b;  /* soft red */
  --color-tertiary-dark: #cc5454;
  
  /* Text */
  --color-text-muted: #7a8496;
  --color-text-accent: var(--color-primary);
  --color-text-dark: #0b0e14;
  
  /* Status Colors */
  --color-success: #4caf50;
  --color-warning: #ffb400;
  --color-error: #e74c3c;
  --color-info: var(--color-primary);
  
  /* Border Radius */
  --radius-small: 5px;
  --radius-medium: 20px;
  --radius-large: 40px;
  --radius-xlarge: 60px;
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --spacing-xxl: 40px;
  
  /* Typography */
  --font-size-xs: 10px;
  --font-size-sm: 11px;
  --font-size-base: 12px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-xxl: 24px;
  --font-size-hero: 2.5em;
  
  /* Shadows and Effects */
  --shadow-glow: 0 0 20px rgba(74, 158, 255, 0.3);
  --shadow-glow-strong: 0 0 30px rgba(74, 158, 255, 0.5);
  --shadow-button: 0 5px 20px rgba(74, 158, 255, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

::-webkit-scrollbar{
  background: transparent;
  width: 7px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #434343, var(--color-bg));
  border-radius: 100px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.audiowide-regular {
  font-family: "Audiowide", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  font-family:"Lexend", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: var(--color-bg);
  color: var(--color-text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}
.layout {
      display: grid;
      grid-template-columns: 260px 1fr;
      height: 100vh;
      gap: 0;
}
    
	/* Sidebar layout and base styling */
	aside.sidebar {
	  background: var(--color-panel-bg);
	  /* border-right: 1px solid #666; */
	  padding: 16px;
	  display: flex;
	  flex-direction: column;
	  gap: 14px;
	  min-width: 240px;
	  color: var(--color-text-primary);
	  /* subtle elevation on modern UIs */
	  /* box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 8px 20px rgba(0,0,0,0.25); */
	  /* border-radius: 0 6px 6px 0; */
	  backdrop-filter: saturate(1.05);
	}
	
	/* Logo / branding */
	.logo.mobile {
    display: none;
	}

.logo .name {
  display: block;
  font-family: "Audiowide", sans-serif;
  letter-spacing: 1.5px;
  font-size: 1.6rem;
  text-transform: uppercase;
  /* Gradient Text */
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Optional: subtle glow */
  text-shadow: 0 0 8px rgba(255,255,255,0.1);
}
	/* Optional section header styling (kept minimal) */
	.nav-section {
	  font-size: 12px;
	  color: var(--color-text-primary);
	  opacity: 0.9;
	  margin-top: 6px;
	  text-transform: uppercase;
	  letter-spacing: 0.6px;
	  padding: 6px 8px;
	}
	
	/* Nav list & items */
	.nav-list {
	  display: flex;
	  flex-direction: column;
	  gap: 8px;
	}
	.nav-item {
	  display: flex;
	  align-items: center;
	  gap: 8px;
	  padding: 12px 14px;
	  cursor: pointer;
	  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
	  color: var(--color-text-primary);
	}
	.nav-item a {
	  color: inherit;
	  text-decoration: none;
	  display: inline-block;
	  width: 100%;
	}
	.nav-item:hover {
	  transform: translateX(2px);
	  background: linear-gradient(90deg, #222, #333);
	  border-color: #2c2c2c;
	}
	.nav-item:focus-within {
	  outline: 2px solid rgba(255,255,255,0.12);
	  outline-offset: 2px;
	}
	.nav-item.active {
	  background: #2c2c2c;
	  border-color: #666;
	  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15);
	}
	.nav-item.doom-nav {
	  /* border-color: var(--color-doom-dark); */
	}
	.nav-item .icon {
	  width: 10px;
	  height: 10px;
	  border-radius: 50%;
	  background: var(--blue, var(--color-primary));
	  box-shadow: 0 0 8px var(--blue, var(--color-primary));
	}

  /* Timer widget container remains the same, add a wrap-enabled button row */
.timer-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #666;
  background: linear-gradient(180deg, rgba(26,26,26,0.9), rgba(26,26,26,0.75));
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Allow timer buttons to wrap to new lines instead of overflowing */
.timer-buttons {
  display: flex;
  flex-wrap: wrap;          /* enable wrapping */
  gap: 8px;
  /* optional: keep within width even on narrow panes */
  align-items: stretch;
}
.timer-buttons button {
  flex: 1 1 28%;            /* allow buttons to share space and wrap if needed */
  min-width: 90px;            /* ensure buttons stay usable when wrapped */
  padding: 8px 10px;
  border-radius: 8px;
  /* border: 1px solid rgba(0, 255, 255, 0.25); */
  /* background: linear-gradient(135deg, rgba(0, 120, 255, 0.25), rgba(0,0,0,0.15)); */
  background: #2c2c2c;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.timer-buttons button:hover {
  transform: translateY(-1px);
  /* background: linear-gradient(135deg, rgba(0, 180, 255, 0.32), rgba(0,0,0,0.16)); */
  background: #666;
}
.timer-buttons button:active {
  transform: translateY(0);
}
	#start-timer { border-color: rgba(0,255,255,0.6); }
	#pause-timer { border-color: rgba(255,255,255,0.5); }
	#reset-timer { border-color: rgba(255,255,255,0.5); }
	#save-timer { border-color: rgba(0,255,255,0.8); }
	
	.productivity-label {
	  font-size: 12px;
	  color: var(--color-text-primary);
	  opacity: 0.9;
	  text-transform: uppercase;
	  letter-spacing: 0.8px;
	  margin-bottom: 4px;
	}
	
	/* Summary widget under timer */
	.summary-widget {
	  padding: 12px;
	  border-radius: 12px;
	  border: 1px solid #666;
	  background: linear-gradient(180deg, rgba(26,26,26,0.95), rgba(26,26,26,0.75));
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	}
	.summary-widget span {
	  font-weight: 700;
	  color: #ffffff;
	}
	#summary-minutes {
	  font-family: "Lexend", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	  font-feature-settings: "tnum" 1;
	  font-variant-numeric: tabular-nums;
	  font-size: 1.1rem;
	  color: #ffffff;
	}
	
	/* Sidebar actions (auth area) */
	.sidebar-actions {
	  margin-top: auto;
	  padding: 12px;
	  border-radius: 12px;
	  background: linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,.08));
	  border: 1px solid #666;
	}
	.sidebar-actions ul {
	  list-style: none;
	  padding: 0;
	  margin: 0;
	  display: flex;
	  flex-direction: column;
	  gap: 6px;
	}
	.sidebar-actions li {
	  display: block;
	}
	.sidebar-actions a, .sidebar-actions button {
	  text-decoration: none;
	  color: #fff;
	  display: inline-block;
	  padding: 8px 10px;
	  border-radius: 6px;
	}
	.sidebar-actions .nav-button {
	  background: rgba(0, 120, 255, 0.25);
	  border: 1px solid rgba(0, 120, 255, 0.6);
	  cursor: pointer;
	}
	.sidebar-actions form {
	  display: inline;
	}
	.sidebar-actions button[type="submit"] {
	  background: rgba(255, 0, 0, 0.2);
	  border: 1px solid rgba(255, 0, 0, 0.6);
	  color: #fff;
	  padding: 8px 12px;
	  border-radius: 6px;
	  cursor: pointer;
	}
	.sidebar-actions button[type="submit"]:hover {
	  background: rgba(255,0,0,0.3);
	}

  .close-btn {
  position: absolute;      /* or fixed if needed */
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 2000;
}

.close-btn div {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #fff;  /* change color to match your theme */
  top: 50%;
  left: 0;
  transform-origin: center;
  transition: 0.3s ease;
}

.close-btn div:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.close-btn div:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

/* Optional hover effect */
.close-btn:hover div {
  background-color: #00ff88; /* example accent color */
}



/* claude nav mobile css */

/* Mobile Navigation - Bottom Bar */
@media (max-width: 768px) {
  /* Hide desktop sidebar on mobile */
.logo.mobile{
  display: block;
}

  aside.sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    transition: left 0.3s ease;
    border-radius: 0;
  }
  
  /* Show sidebar when menu is open */
  aside.sidebar.mobile-menu-open {
    left: 0;
  }
  
  /* Mobile overlay */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(4px);
  }
  
  .mobile-overlay.active {
    display: block;
  }
  
  /* Bottom Navigation Bar */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-panel-bg);
   
    padding: 8px 12px 12px;
    z-index: 998;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
      transition: transform 0.3s ease, opacity 0.3s ease;

  }

  .mobile-bottom-nav.minimized {
  transform: translateY(65%);
  opacity: 0.8;
}
  main{
    margin-bottom: 180px;
      transition: margin-bottom 0.3s ease; 
    /* padding-bottom: 120px; */
  }
.toggle-arrow {
   transform: rotate(180deg);
}

.toggle-arrow.flipped {
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

  /* .mobile-nav-toggle svg {
  transition: transform 0.3s ease;
}

.mobile-bottom-nav.minimized + .mobile-nav-toggle svg {
  transform: rotate(180deg);
} */


main.mobile{
  margin-bottom: 67px;
}

/* Small floating button to toggle */
.mobile-nav-toggle {
  position: fixed;
  bottom: 130px;
  right: 16px;
  background: var(--color-primary);
  color: #000000;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  cursor: pointer;
  z-index: 1000;
}
  
  /* Timer in mobile nav */
  .mobile-timer-widget {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #666;
    background: linear-gradient(180deg, rgba(26,26,26,0.9), rgba(26,26,26,0.75));
  }
  
  .mobile-timer-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
    font-size: 1.3rem;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
  }
  
  .mobile-timer-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .mobile-timer-controls button {
    flex: 1 1 22%;
    min-width: 65px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #2c2c2c;
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
  }

  .mobile-timer-controls button:hover{
    background: #666;
  }
  
  .mobile-timer-controls button:active {
    transform: scale(0.95);
  }
  
  /* Main navigation items */
  .mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #666;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 90px;
    text-decoration: none;
    color: var(--color-text-primary);
  }
  
  .mobile-nav-item:active {
    transform: scale(0.95);
  }
  
  .mobile-nav-item.active {
    background: rgba(0, 230, 255, 0.22);
    border-color: rgba(0, 255, 255, 0.6);
  }
  
  .mobile-nav-item.doom {
    border-color: var(--color-doom-dark);
  }
  
  .mobile-nav-item .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }
  
  .mobile-nav-item .nav-label {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.1;
    opacity: 0.9;
  }
  
  /* Hamburger menu button */
  .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.25);
  }
  
  .mobile-menu-btn .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .mobile-menu-btn .hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-primary-light);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Hide desktop timer and nav items on mobile */
  aside.sidebar .timer-widget,
  aside.sidebar .summary-widget,
  aside.sidebar .nav-list {
    display: none;
  }
  
  /* Keep logo and user actions in sidebar for when menu opens */
  aside.sidebar .logo,
  aside.sidebar .sidebar-actions,
  aside.sidebar .nav-list {
    display: flex;
  }

  .sidebar-actions{
    margin-top: 20px;
  }
  
  /* Add some padding to body to account for bottom nav */
  body {
    overflow-y: hidden;
    
  }

  .layout{
    display: flex;
    flex-direction: column;
    
  }



  .grid-single-row-wrapper{
      padding: 18px;
      display: flex; 
      flex-direction: column;
      width: 100%;
    }
}

/* Desktop - hide mobile nav */
@media (min-width: 769px) {
  .mobile-bottom-nav,
  .mobile-overlay {
    display: none !important;
  }
}

/* Desktop - hide mobile nav */
@media (min-width: 769px) {
  .mobile-bottom-nav,
  .mobile-overlay {
    display: none !important;
  }
}


/* Header */
.header {
   grid-column: 1 / -1;
  background: var(--color-surface-light);
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-lg);
  border-radius: 0 0 var(--radius-large) 0;
}

.header h1 {
  color: var(--color-secondary);
  font-weight: 900;
  font-size: var(--font-size-xxl);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Side Panels */
.left-panel {
  grid-column: 1;
  grid-row: 2;
  border-radius: 0 var(--radius-large) var(--radius-large) 0;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.right-panel {
  grid-column: 3;
  grid-row: 2;
  border-radius: var(--radius-large) 0 0 var(--radius-large);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

a{
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
a:hover{
  text-decoration: underline;
}

strong{
  text-decoration: underline;
}

 main{
  display: block;
  height: 100%;
  overflow-y: auto;

    }

    .grid-single-row-wrapper{
          padding: 18px;
       display: grid; 
      grid-template-rows: auto auto 1fr;  
    }

    .two-row-grid-wrapper {
display: grid;
  grid-template-columns: 2fr 1fr; /* left column twice as wide as right */
  gap: 12px; /* space between columns */
  height: 100%;
  margin-right: 50px;
}


/* Footer */
.footer {
  grid-column: 1 / -1;
  background: var(--color-surface-light);
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-weight: 700;
}


/* Dashboard Sections */
.dashboard-section {
  margin-bottom: var(--spacing-xl);
  background-color: var(--color-panel-bg);
}

.section-title {
  color: var(--color-text-accent);
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--color-primary-dark);
}


/* Missions */
.missions-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Mission list container */
.missions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;

}

/* Individual mission card */
#mission-list .mission-card {
  background: var(--color-panel-bg);
  border: rgba(11, 219, 219, 0.1)  1px solid;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mission-list .mission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.45);
}

.mission-card{
 /* background: rgba(11, 219, 219, 0.1);  */
  margin-bottom: 15px;
  padding: 1rem;
  border-radius: 10px;
}


/* Mission title */
.mission-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

/* Mission type (status) */
.mission-type {
  font-size: 0.9rem;
  font-weight: 600;
  color: #bbb;
}

/* Active vs Completed styling */
.mission-type::before {
  content: "● ";
  font-size: 1rem;
}
.mission-type:contains("Active") {
  color: #4caf50; /* green for active */
}
.mission-type:contains("Completed") {
  color: #ff5252; /* red for completed */
}

/* Mission description */
.mission-description {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* Actions row */
.mission-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

/* Buttons */
.mission-actions .edit-btn,
.mission-actions .delete-btn,
.mission-roadmap .roadmap-btn {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mission-actions .edit-btn {
  background: #2c2c2c;
  color: #fff;
}
.mission-actions .edit-btn:hover {
  background: #666;
}

.mission-actions .delete-btn {
  background: #e74c3c;
  color: #fff;
}
.mission-actions .delete-btn:hover {
  background: #c0392b;
}

.mission-roadmap .roadmap-btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--color-text-secondary);
  color: #fff;
  text-decoration: none;
  text-align: center;
}
.mission-roadmap .roadmap-btn:hover {
  background: #666;
}

/* Progress Bars */
.progress-container {
  position: relative;
}

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

.progress-bar {
  height: 12px;
  background: var(--color-surface-light);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-primary-dark);
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  transition: width var(--transition-normal);
  position: relative;
}

.time-remaining {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* 
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
  }
} */

/* Status Indicator */
.status-indicator {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  animation: pulse 2s infinite;
}

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

/* Buttons */
 .roadmap-btn {
  background: var(--color-primary-dark);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  color: var(--color-text-dark);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-normal);
  border-radius: 0 25px 0 25px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-main);
}

.roadmap-btn {
  padding: 8px var(--spacing-lg);
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-xxl);
}

.step {
  display: flex;
  align-items: center;
  margin: 0 var(--spacing-md);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: var(--spacing-sm);
  color: var(--color-text-dark);
}

.step-inactive .step-number {
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.step-text {
  color: var(--color-text-accent);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step-inactive .step-text {
  color: var(--color-text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {


  .mission-header h1 {
    font-size: 2em;
  }
  
  .form-content {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .progress-indicator {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    margin: var(--spacing-sm) 0;
  }
  
  .main-content {
    grid-template-columns: 1fr;
  }
}



/* Main Title */
h1 {
  font-size: 2.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 3rem;
  color: var(--color-primary);
  position: relative;
}


/* Form Container */
.form-container {
  background: var(--color-surface);
  border: 1px solid var(--color-primary-light);
  margin-bottom: 2rem;
  position: relative;
}

/* .form-container::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 6px;
  height: 2rem;
  background: var(--lcars-block-4);
} */


label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
}

input[type="text"] {
  background: var(--color-panel-bg);
  border: 2px solid var(--color-surface-light);
  color: var(--color-text-primary);
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

input[type="text"]:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}


/* Roadmap Container */

/* Roadmap Page Styling */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  color: var(--color-text-primary);
  /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
}

/* Page Title */
#roadmap-title {
  color: var(--color-text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  text-align: center;
}

/* Form Container */
.form-container {
  background: var(--color-panel-bg);
  border: 1px solid var(--color-primary-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
 
}

.form-wrapper {
  margin-bottom: 1rem;
}

.form-wrapper label {
  display: block;
  color: var(--color-text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#stages {
  width: 100%;
  background: var(--color-panel-bg);
  border: 1px solid rgba(0,255,255,.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

#stages:focus {
  outline: none;
  border-color: var(--color-secondary-dark);
}

#stages::placeholder {
  color: #666;
}

.form-btn {
  background: rgba(0, 230, 255, 0.22);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.form-btn:active {
  background: var(--color-primary-dark);
}

/* Roadmap Container */
.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Empty State */
.empty-state p {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 3rem;
  background: var(--color-panel-bg);
  border: 1px solid var(--color-surface-light);
  border-radius: 8px;
}

/* Stage Styling */
.stage {
  background: var(--color-surface);
  border: 1px solid var(--color-primary-dark);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(61, 126, 255, 0.1);
  transition: all 0.2s ease;
}

.stage:hover {
  border-color: var(--color-secondary-dark);
  box-shadow: 0 4px 12px rgba(61, 126, 255, 0.15);
}

.stage.completed {
  opacity: 0.7;
  background: var(--color-panel-bg);
  border-color: var(--color-surface-light);
}

.stage-header {
  background:  rgba(11, 219, 219, 0.1);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--color-surface-light);
  position: relative;
}

.stage.completed .stage-header {
  background: var(--color-panel-bg);
}

/* Stage Title and Actions */
.stage-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.stage.completed .stage-title {
  text-decoration: line-through;
  color: #888;
}

/* Step Styling */
.step {
  background: var(--color-panel-bg);
  border-bottom: 1px solid var(--color-surface-light);
  margin: 0;
}

.step:last-child {
  border-bottom: none;
}

.step.completed {
  opacity: 0.7;
  background: var(--color-bg);
}

.step-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  padding-left: 2.5rem;
}

.step-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.step.completed .step-title {
  text-decoration: line-through;
  color: #888;
}

/* Substep Styling */
.substeps {
  background: var(--color-bg);
  border-top: 1px solid var(--color-surface-light);
}

.substep-header {
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 4rem;
  transition: background-color 0.2s ease;
}

.substep-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.substep-header:last-child {
  border-bottom: none;
}

.substep-header.completed {
  opacity: 0.6;
}

.substep-title {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.substep-header.completed .substep-title {
  text-decoration: line-through;
  color: #666;
}

/* Checkbox Styling */
.stage-checkbox,
.step-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.complete-btn {
  background: transparent;
  border: 2px solid rgba(0, 255, 255, 0.15);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  color: var(--color-text-primary);
}

.complete-btn:hover {
  border-color: var(--color-secondary-dark);
  background: rgba(61, 126, 255, 0.1);
}

.completed .complete-btn {
  background: #059669;
  border-color: #059669;
  color: white;
}

/* Action Buttons */
.stage-actions,
.step-actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.stage:hover .stage-actions,
.step:hover .step-actions {
  opacity: 1;
}

.action-button {
  background: var(--color-panel-bg);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-button:hover {
  border-color: var(--color-secondary-dark);
  background: var(--color-surface);
}

.action-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-button:disabled:hover {
  border-color: var(--color-surface-light);
  background: var(--color-panel-bg);
}

/* Specific button colors */
.edit-btn:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.delete-btn:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
}

.item-actd-btn:hover:not(:disabled) {
  background: #059669;
  border-color: #059669;
}

/* Nested Forms */
.nested-form {
  background: var(--color-bg);
  border-top: 1px solid var(--color-surface-light);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nested-form.hidden {
  display: none;
}

.nested-form input {
  flex: 1;
  background: var(--color-panel-bg);
  border: 1px solid var(--color-surface-light);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.nested-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.nested-form input::placeholder {
  color: #666;
}

/* Editor Styling */
.stage-title input,
.step-title input,
.substep-title input {
  background: var(--color-panel-bg);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  color: var(--color-text-primary);
  font-size: inherit;
  font-weight: inherit;
  margin-right: 0.5rem;
}

.editor-update {
  background: var(--color-primary);
  color: white;
  margin-right: 0.25rem;
}

.editor-cancel {
  background: #666;
  color: white;
}

/* Hierarchical Indicators */
.stage::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  /* background: var(--color-primary); */
}

.step-header::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  width: 8px;
  height: 2px;
  background: var(--color-primary-light);
  transform: translateY(-50%);
}

.substep-header::before {
  content: '•';
  position: absolute;
  left: 3rem;
  color: var(--color-primary-light);
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  #roadmap-title {
    font-size: 1.5rem;
  }
  
  .stage-header,
  .step-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .stage-actions,
  .step-actions {
    justify-content: center;
    opacity: 1;
  }
  
  .nested-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .substep-header {
    padding-left: 2rem;
  }
  
  .step-header {
    padding-left: 1.5rem;
  }
}

/* productivity timer */

.timer-widget {
  background: #111;
  color: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  /* box-shadow: 0 0 10px rgba(0,255,255,0.3); */
}

.timer-display {
  font-size: 1.5rem;
  letter-spacing: .3rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.timer-buttons button {
  margin: 0 5px;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}


/* Doom Page Specific Styles */

/* Main heading */
main .doom-heading {
  color: var(--color-doom);
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(255, 61, 61, 0.3);
  border-bottom: 2px solid var(--color-doom-dark);
  padding-bottom: 1rem;
}
h2{

}
/* Form styling */
.doom-form{
  background: var(--color-panel-bg);
  border: 1px solid var(--color-doom-dark);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(255, 61, 61, 0.1);
}

.doom-form label {
  display: block;
  color: var(--color-doom-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* Input styling */
.doom-form input[type="number"],
.doom-form input[type="date"],
.doom-form select {
  background: var(--color-bg);
  border: 1px solid var(--color-doom-dark);
  border-radius: 4px;
  padding: 0.75rem;
  color: var(--color-text-primary);
  font-size: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  min-width: 120px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.doom-form input[type="number"]:focus,
.doom-form input[type="date"]:focus,
.doom-form select:focus {
  outline: none;
  border-color: var(--color-doom);
  box-shadow: 0 0 0 2px rgba(255, 61, 61, 0.2);
}

.doom-form input::placeholder {
  color: #666;
}

/* Button styling */
.doom-form button[type="submit"] {
  background: linear-gradient(135deg, var(--color-doom), var(--color-doom-dark));
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doom-form button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--color-doom-light), var(--color-doom));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 61, 61, 0.3);
}

.doom-form button[type="submit"]:active {
  transform: translateY(0);
}

/* Doom Timer Styling */
#doom-timer {
  background: var(--color-panel-bg);
  border: 2px solid var(--color-doom);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 61, 61, 0.2);
}

#doom-display {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-doom);
  font-family: 'Courier New', monospace;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 61, 61, 0.5);
  letter-spacing: 0.1em;
}

#doom-timer select {
  background: var(--color-bg);
  border: 1px solid var(--color-doom-dark);
  border-radius: 4px;
  padding: 0.5rem;
  color: var(--color-text-primary);
  margin: 0 0.5rem 1rem 0.5rem;
  min-width: 140px;
}

#doom-timer button {
  background: var(--color-panel-bg);
  border: 1px solid var(--color-doom);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--color-doom);
  font-weight: 600;
  cursor: pointer;
  margin: 0.25rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}

#doom-timer button:hover {
  background: var(--color-doom);
  color: white;
  transform: translateY(-2px);
}

#doom-start {
  background: var(--color-doom) !important;
  color: white !important;
}

#doom-start:hover {
  background: var(--color-doom-light) !important;
}

/* Doom Stats */
#doom-stats {
  background: var(--color-panel-bg);
  border: 1px solid var(--color-doom-dark);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-doom);
}

#doom-stats h3 {
  color: var(--color-doom-light);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

#doom-total {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Chart container */
#doomWeeklyChart {
  background: var(--color-panel-bg);
  border: 1px solid var(--color-doom-dark);
  border-radius: 8px;
  margin-top: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar doom nav item styling */
.doom-nav {
  background: rgba(255, 61, 61, 0.1) !important;
  /* border-left: 3px solid var(--color-doom) !important; */
}

.doom-nav:hover {
  background: rgba(255, 61, 61, 0.2) !important;
}

.doom-nav a {
  color: var(--color-doom-light) !important;
  font-weight: 600 !important;
}
.nav-item.doom-nav.active{
   background: rgba(255, 61, 61, 0.2) !important;
}

/* Responsive design */
@media (max-width: 768px) {
  main h2 {
    font-size: 2rem;
  }
  
  #doom-display {
    font-size: 2rem;
  }
  
  form input[type="number"],
  form input[type="date"],
  form select {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  #doom-timer button {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}
/* Todo list  */
        /* Daily Todos Styling */
#daily-todos {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  color: var(--color-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Countdown Timer */
#daily-countdown {
  background: var(--color-surface);
  border: 1px solid var(--color-primary-dark);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(61, 126, 255, 0.1);
}

/* Header Section */
.daily-header {
  margin-bottom: 2rem;
}

.daily-header h2 {
  color: var(--color-text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.daily-header .hint {
  color: #888;
  font-size: 0.9rem;
  margin: 0 0 1.5rem 0;
}

/* Date Picker */
#actions-date {
  background: var(--color-surface);
  border: 1px solid #666;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

#actions-date:focus {
  outline: none;
  border: 1px solid #666;
}

/* Add Action Form */
#add-action-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

#action-title {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-light);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

#action-title:focus {
  outline: none;
  border-color: rgba(0, 230, 255, 0.22);
}

#action-title::placeholder {
  color: #666;
}

#add-action-form button[type="submit"] {
  background: var(--primary-btn);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-width: 80px;
}

#add-action-form button[type="submit"]:hover {
  background: var(--primary-btn-hover);
}

#add-action-form button[type="submit"]:active {
  background: var(--color-primary-dark);
}

.streak-text{
  margin-bottom: 20px;
  font-weight: 500;
}

/* Actions List */
#actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#actions-list > p {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 2rem;
  margin-bottom: 10px;
}

/* Action Items */
.action-item {
  /* background: rgba(11, 219, 219, 0.1) ; */
  border: 1px solid var(--color-surface-light);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
}

.action-item:hover {
  border-color: var(--color-surface-light);
  transform: translateY(-1px);
}

/* Priority Items (First 3) */
.action-item.priority {
  background: var(--color-surface);
  border-color: var(--color-primary-dark);
  box-shadow: 0 2px 8px rgba(61, 126, 255, 0.1);
}

.action-item.priority::before {
  content: "★";
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.2rem;
  background: var(--color-bg);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-item.priority:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(61, 126, 255, 0.15);
}

/* Action Item Text */
.action-item > span {
  flex: 1;
  font-size: 1rem;
  line-height: 1.4;
  margin-right: 1rem;
}

/* Status States */
.action-item.completed {
  opacity: 0.7;
  background: var(--color-surface);
}

.action-item.completed > span {
  text-decoration: line-through;
  color: #888;
}

.action-item.completed.priority::before {
  content: "✓";
  color: #4ade80;
}

.action-item.failed {
  opacity: 0.6;
  background: var(--color-surface);
}

.action-item.failed > span {
  text-decoration: line-through;
  color: #666;
}

.action-item.failed.priority::before {
  content: "✗";
  color: #f87171;
}

/* Action Buttons */
.action-item .actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.action-item:hover .actions {
  opacity: 1;
}

.action-item .actions button {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-light);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.action-item .actions button:hover {
  border-color: var(--color-primary);
  transform: scale(1.05);
}

/* Specific button colors */
.action-item .actions button[data-status="completed"]:hover {
  background: #059669;
  border-color: #059669;
}

.action-item .actions button[data-status="failed"]:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.action-item .actions button[data-delete="true"]:hover {
  background: #7c2d12;
  border-color: #7c2d12;
}

/* Responsive Design */
@media (max-width: 768px) {
  #daily-todos {
    padding: 1rem;
  }
  
  #add-action-form {
    flex-direction: column;
  }
  
  #add-action-form button[type="submit"] {
    min-width: unset;
  }
  
  .action-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .action-item > span {
    margin-right: 0;
  }
  
  .action-item .actions {
    justify-content: center;
    opacity: 1;
  }
}
   