

/* Import ADHD-friendly fonts */
:root {
  --color1: #85bac2; /*teal blue*/
  --color2: #ada9c8; /* lavendar*/
  --color3: #a8c7c2; /*sage green*/
  --color4: #d3e0e7; /*pale grey-blue*/
  --color5: #e4e0bd; /*beigey yellow*/
  --color6: #333333; /* charcoal for headings*/
  --color7: #555555; /* lighter charcoal*/
  --color8: #888888; /* light grey*/
  --white: #F9F9F6;  /*white*/
  --black: #4a4a4a; /*charcoal fo rbody text darker*/
  
--titlefont: "Atkinson Hyperlegible", "Arial", sans-serif;
  --subtitlefont: "Open Sans", "Helvetica", sans-serif;}
* {
  box-sizing: border-box;
}
body, body * { font-family: var(--subtitlefont); }

@font-face {
  font-family: "NewYork";
  src: url(fonts/NewYork.otf);
}

@font-face {
  font-family: "OpenDyslexic";
  src: url(fonts/OpenDyslexic-Regular.otf) format("opentype");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url(fonts/OpenDyslexic-Italic.otf) format("opentype");
  font-style: italic;
  font-weight: 400;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url(fonts/OpenDyslexic-BoldItalic.otf) format("opentype");
  font-style: italic;
  font-weight: 700;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url(fonts/OpenDyslexic-Bold.otf) format("opentype");
  font-style: normal;
  font-weight: 700;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

body {
  margin: 0;
  color: var(--black);
  background-color: var(--white);
  font-family: var(--subtitlefont);
}

.fab, .fas {
  padding: 2px;
}

a, a:link, a:visited, a:active {
  color: var(--color1);
}

a, a:link, a:visited, a:active, a:hover {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

i:hover {
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

select {
  color: var(--color1);
  border: 1px solid var(--color2);
  padding: 2px;
  background-color: var(--white);
}

textarea {
  background: var(--white);
  color: var(--black);
  resize: none;
  width: 100%;
  min-height: 120px;
max-height: 200px;
  border: 2px solid var(--color2);
  padding: 5px;
  min-width: 100%;
font-family: var(--subtitlefont) !important;
}

textarea:focus, textarea:hover {
  background: var(--white) !important;
  color: var(--black) !important;
}

input[type=text] {
  border: 1px solid var(--color2);
  padding: 5px;
  margin: 5px 0;
  min-width: auto;
   color: var(--black);  /* Dark text */
  background-color: var(--white);  /* Light background */
  font-family: var(--subtitlefont) !important;
}

input:not(:disabled):focus, input:not(:disabled):hover, select:not(:disabled):focus, select:not(:disabled):hover, textarea:not(:disabled):focus, textarea:not(:disabled):hover {
  background-color: var(--white);
  border-color: var(--color2);
  color: var(--black)
}

.hidden {
  visibility: hidden;
}

button {
font-family: var(--subtitlefont);
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

ul {
  list-style-type: none;
}


#notify {
  position: fixed;
  display: block;
  z-index: 5;
  max-width: 50vw;
  right: -50vw;
  top: 17vh;
  padding: 0.7rem;
  background: var(--color3);
  color: var(--white);
  text-align: center;
  font-family: var(--titlefont);
  border: 10px solid var(--white);
  font-size: 1rem;
  -webkit-transition: right 0.3s;
  -moz-transition: right 0.3s;
  -o-transition: right 0.3s;
  transition: right 0.3s;
}

#notify.open {
  right: 0;
}

/* === HIDE TWINE'S BUILT-IN UI === */
#ui-bar,
#ui-bar-toggle,
#ui-bar-history,
.ui-bar,
.ui-bar-toggle {
    display: none !important;
    visibility: hidden !important;
}

/* Make sure your content uses full width */
#story {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

#passages {
    margin: 90px auto !important;
    padding: 24px 16px;
    max-width: 700px;
    min-width: 320px;
    width: 100%;
    box-sizing: border-box;
    background: var(--white, #fff);   /* Optional: can delete */
    border-radius: 20px;              /* Optional: for softer look */
    box-shadow: 0 2px 12px 2px rgba(40,40,80,0.06); /* Optional: soft shadow */
}

.wide-passage #passages {
    max-width: 100vw;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
}


#main {
  margin: 2vh auto 12vh;
  position: relative;
}

#passage-loading-page {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  background: var(--color1);
  width: 100%;
  height: 100%;
  padding: 1rem;
}
#passage-loading-page h1, #passage-loading-page h2, #passage-loading-page h3 {
  color: var(--white);
}
#passage-loading-page h3 {
  width: 100%;
}

#passage-loading-page h1 {
  text-transform: uppercase !important;
}

#passage-loading-page .main {
  position: absolute;
  width: 30%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#passage-loading-page nav {
  width: 80%;
  margin: 2rem auto;
  text-align: center;
  font-family: var(--subtitlefont);
}
#passage-loading-page .link-internal {
  color: var(--white) !important;
  margin: 0 5px;
}

/* Slimline header styles scoped */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--color1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#site-header #menu-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

#site-header .header-title {
  font-family: var(--titlefont);
  color: var(--white);
  font-size: 1.2rem;
  text-transform: uppercase;
}
#side-menu {
  position: fixed;
  top: 60px;
  left: -220px;
  width: 200px;
  height: calc(100% - 60px);
  background: #222;          /* solid dark background */
  color: #fff;
  transition: left 0.3s ease;
  z-index: 1001;
  padding: 1rem 0.5rem;
}
#side-menu.open {
  left: 0;
}

#side-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  color: inherit;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  text-align: left !important;
}
#side-menu button:hover {
  background: rgba(255,255,255,0.1);
}

/* Title next to hamburger */
.header-title {
  font-family: var(--titlefont);
  color: var(--white);
  font-size: 1.2rem;
  text-transform: uppercase;
}



footer {
   position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;        /* Add this */
    right: 0 !important;       /* Add this */
    z-index: 2;
    background: var(--color1);
    height: 6vh;
    width: 100vw !important;   /* Change to 100vw instead of 100% */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    border-top: 0px solid var(--white);
    padding: 0 1rem;
    margin: 0 !important;      /* Add this */
    max-width: none !important; /* Add this */
}

/* Left side buttons */
.footer-left {
  display: flex;
  gap: 1rem;
}

/* Right arrows */
.footer-right {
  display: flex;
  gap: 1rem;
}

footer span {
  margin: 0;
  text-align: center;
  display: flex;           /* Add this */
  align-items: center;     /* Add this */
  height: 100%;           /* Add this */
}

#backwards-button,
#forwards-button {
    cursor: pointer !important;
    pointer-events: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
    margin: 0 0.5rem !important;
    padding: 0.5rem !important;
}

#backwards-button i.fas.fa-chevron-left,
#forwards-button i.fas.fa-chevron-right {
    pointer-events: auto !important;
    cursor: pointer !important;
    color: var(--white) !important;
    font-size: 1.2em !important;
    transition: all 0.3s ease !important;
}

/* Add hover effects for your navigation spans */
#backwards-button:hover,
#forwards-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
    border-radius: 6px !important;
}

#backwards-button:hover i,
#forwards-button:hover i {
    text-shadow: 2px 2px 0px var(--color3) !important;
    transform: scale(1.1) !important;
}

/* Fix your existing footer span rule */
footer span {
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    height: auto !important; /* Changed from 100% - this was causing issues */
    cursor: pointer !important; /* ADDED - this was missing */
    transition: all 0.3s ease !important; /* ADDED */
}

/* Ensure footer is properly clickable */
footer {
    pointer-events: auto !important;
    z-index: 1000 !important;
}

footer * {
    pointer-events: auto !important;
}

/* Active state for better user feedback */
#backwards-button:active,
#forwards-button:active {
    transform: scale(0.95) !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Mobile responsive - larger touch targets */
@media (max-width: 768px) {
    #backwards-button,
    #forwards-button {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 8px !important;
    }
    
    #backwards-button i,
    #forwards-button i {
        font-size: 1.3em !important;
    }
}

/* Ensure proper z-index for navigation */
#backwards-button,
#forwards-button {
    z-index: 1001 !important;
    position: relative !important;
}

/* OVERRIDE your existing footer i hover rule for navigation specifically */
#backwards-button i:hover,
#forwards-button i:hover {
    text-shadow: 2px 2px 0px var(--color3) !important;
    transform: scale(1.1) !important;
}

footer i {
  color: var(--white);
  font-size: 100%;
  padding: 0;
  cursor: pointer;
}

footer i:hover {
  text-shadow: 2px 2px 0px var(--color3);
}

footer .link-internal {
  color: var(--white);
  text-decoration: none;
}

footer .link-internal:hover {
  color: var(--white);
}

footer .link-internal i:hover {
  text-shadow: 2px 2px 0px var(--color3);
}

#passages {
  padding: 0;
  line-height: 1.6;
  text-align: justify;
  /*.link-internal.macro-link {
      background-color: var(--white);
      -webkit-background-clip: border-box;
      -webkit-text-fill-color: var(--white);
      padding: 7px 10px;
      border-radius: 15px 15px 0 15px;
  }

  .link-internal.macro-link:hover {
      margin: 0 0 0 1rem;
  }*/
}
#passages u {
  text-decoration: none;
  border-bottom: 1px solid var(--color2);
}
#passages hr {
  border: 1px solid var(--color2);
}
#passages ul {
  padding: 0;
}

#passages li {
  padding: 0.5rem 0;
}
#passages .macro-cycle {
  font-style: italic;
}
#passages .macro-cycle:hover {
  color: var(--color2);
}
#passages li .link-internal:hover {
  margin-left: 5px;
}
#passages .link-internal {
  letter-spacing: 1px;
  color: var(--color1);
font-family: var(--subtitlefont);
}
#passages .link-internal:hover {
  color: var(--color2);
  letter-spacing: 2px;
}



/* Your existing default button */
#passages .link-internal.macro-button {
  width: 100%;
  background: var(--color2);
  color: var(--white);
  padding: 12px 7px;
  margin: 0.1rem auto;
  border: 0;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Small compact button */
#passages .link-internal.btn-small {
  width: auto;
  background: var(--color1);
  color: var(--white);
  padding: 6px 12px;
  margin: 0.5rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-block;
}

/* Success/positive button */
#passages .link-internal.btn-success {
  width: 100%;
  background: #28a745;
  color: white;
  padding: 12px 7px;
  margin: 1rem auto;
  border-radius: 6px;
  font-weight: bold;
}

/* Warning/caution button */
#passages .link-internal.btn-warning {
  width: 100%;
  background: #ffc107;
  color: #212529;
  padding: 12px 7px;
  margin: 1rem auto;
  border-radius: 6px;
}


/* Outline button */
#passages .link-internal.btn-outline {
  width: 100%;
  background: transparent;
  color: var(--color2);
  padding: 12px 7px;
  margin: 1rem auto;
  border: 2px solid var(--color2);
  border-radius: 6px;
}

/* Pill/rounded button */
#passages .link-internal.btn-pill {
  width: auto;
  background: var(--color2);
  color: var(--white);
  padding: 8px 20px;
  margin: 0.5rem;
  border-radius: 25px;
  font-size: 0.95rem;
  display: inline-block;
}

/* Icon button */
#passages .link-internal.btn-icon {
  width: 50px;
  height: 50px;
  background: var(--color2);
  color: var(--white);
  padding: 0;
  margin: 0.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.passage {
  text-align: justify;
}
.passage h1 {
  font-family: var(--titlefont);
  color: var(--color1);
  text-align: center;
  margin: 0;
  font-size: 2rem;
text-transform: uppercase;
}
.passage h2 {
  font-family: var(--subtitlefont);
  color: var(--color2);
  font-weight: normal;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-align: center;
  margin: 0;
}
.passage h3 {
  border-bottom: 1px solid var(--color2);
  width: fit-content;
  margin: 0.5rem auto;
  font-family:  var(--subtitlefont);
  font-size: 0.9rem;
  color: var(--color3);
  font-weight: normal;
  font-style: italic;
  letter-spacing: 1px;
}

.page-container {
  max-width: 1200px;        /* Maximum width */
  margin: 0 auto;           /* Center the container */
  padding: 0 1rem;          /* Side padding */
  margin-top: 60px;         /* Space for fixed header */
}

.content-wrapper {
  width: 100%;
  min-height: calc(100vh - 60px); /* Full height minus header */
}

/* Mobile responsive */
@media (max-width: 768px) {
  .page-container {
    padding: 0 0.5rem;
    margin-top: 60px;
  }
}

#ui-overlay {
  visibility: hidden;
  opacity: 0;
  z-index: 100000;
  position: fixed;
  top: -50%;
  left: -50%;
  height: 200%;
  width: 200%;
  background: var(--color1);
}

#ui-overlay.open {
  opacity: 0.5;
  visibility: visible;
}

#ui-dialog {
  z-index: 100100;
  position: fixed;
  display: none;
  width: 90vw;
  max-width: 500px;
  top: 50px;
  left: 5vw;
  right: auto;
  margin: 0;
  padding: 5px;
  border-radius: 30px 30px 0 0;
  opacity: 0;
  background-color: var(--white);
}

#ui-dialog.open {
  display: block;
  opacity: 1;
}

#ui-dialog-titlebar {
  position: relative;
  background-color: var(--white);
  border-radius: 30px 30px 0 0;
  background: var(--color1);
}

#ui-dialog-title {
  margin: 0;
  padding: 1rem;
  font-size: 1.5em;
  text-align: center;
  letter-spacing: 2px;
  font-family: var(--titlefont);
  color: var(--white);
  text-transform: uppercase !important;
}

#ui-dialog-close {
  display: block;
  color: var(--white);
  position: absolute;
  right: 0;
  top: 0;
  white-space: nowrap;
  font-size: 120%;
  margin: 0;
  padding: 0;
  width: 3.6em;
  height: 92%;
  background-color: transparent;
  border: none;
}

#ui-dialog-close:hover {
  background-color: transparent;
  border-color: transparent;
  color: var(--white);
  text-shadow: 1px 1px 0px var(--color2);
}

#ui-dialog-body {
  overflow: auto;
  width: 100%;
  min-width: 280px;
  height: auto;
  border: none;
  line-height: 1.5;
  padding: 0;
  margin: 5px 0 0;
  font-size: 1rem;
  background-color: var(--white);
}

#ui-dialog-body.settings {
  padding: 1rem;
}

#ui-dialog-body ul.buttons {
font-family: var(--subtitlefont);
  background-color: var(--white);
  margin: 10px 0 0;
  padding: 5px 0 0;
  list-style: none;
}

#ui-dialog-body ul.buttons li {
font-family: var(--subtitlefont);
  display: block;
  margin: 5px auto;
  padding: 0;
}

#ui-dialog-body ul.buttons li:first-child {
font-family: var(--subtitlefont);
  margin: 0 auto;
}

#ui-dialog-body ul.buttons > li + li > button {
font-family: var(--subtitlefont);
  margin-left: 0;
}

#ui-dialog-body ul.buttons button {
font-family: var(--subtitlefont);
  background: var(--color3);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: none;
  width: 100%;
  padding: 7px;
}

#ui-dialog-body ul.buttons button:hover {
font-family: var(--subtitlefont);
  outline: 1px solid var(--white);
  outline-offset: -4px;
}

#ui-dialog-body #saves-load-auto {
  background: var(--color3);
  color: var(--white);
  border: none;
  width: 100%;
  padding: 7px;
}

#ui-dialog-body.saves table {
  border-spacing: 0;
  width: 100%;
  text-align: center;
  font-family: var(--subtitlefont);
  padding: 10px;
}

#ui-dialog-body.saves td {
  padding: 0.33em 0.33em;
  color: var(--color1);
}

#ui-dialog-body.saves td:first-child {
  min-width: 1.5em;
  text-align: center;
}

#ui-dialog-body.saves .empty {
  color: var(--color2);
}

#ui-dialog-body button.save {
  background: var(--color3);
  border: 0;
  color: var(--white);
  width: 100%;
  padding: 7px;
}

#ui-dialog-body button.save:hover {
  outline: 1px solid var(--white);
  outline-offset: -4px;
}

#ui-dialog-body button.delete {
font-family: var(--subtitlefont);
  background: var(--color3);
  border: 0;
  color: var(--white);
  width: 100%;
  padding: 7px;
}

#ui-dialog-body button.delete:hover {
  outline: 1px solid var(--white);
  outline-offset: -4px;
}

#ui-dialog-body.saves > :not(:first-child) {
  border-top: none;
}

#ui-dialog-body.saves ul.buttons li {
  padding: 0;
}

#ui-dialog-body.saves button[id=saves-clear]:before, #ui-dialog-body.saves button[id=saves-import]:before, #ui-dialog-body.saves button[id=saves-export]:before {
  content: "";
}

#ui-dialog-body.saves ul.buttons li:last-child {
  float: none;
}

#ui-dialog-body.restart p {
  background-color: var(--white);
  color: #2a271f;
  padding: 10px;
  margin: 0;
}

  #passages {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
  }
}

/*# sourceMappingURL=style.css.map */


.login-input {
  width: 100% !important;
  padding: 10px !important;
  margin: 6px 0 !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  background: rgba(255,255,255,0.2) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-size: 16px !important;
}

/* === SCOPED TASK LIST STYLES === */
/* Main container accounting for fixed header/footer */
body:has(.custom-task-app) #passages {
    max-width: none !important;  /* Remove 800px limit */
    padding: 1rem !important;    /* Reduce side padding */
}

.custom-task-app {
    max-width: 100vw;  /* Use 95% of viewport width */
    margin: 1rem auto;
    padding: 1rem;
}

/* Header section using your typography */
.custom-task-app .task-header {
    text-align: center;
    margin-bottom: 2rem;
}

.custom-task-app .task-header h1 {
    font-family: var(--titlefont);
    color: var(--color1);
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: normal;
text-transform: uppercase;
}

.custom-task-app .task-header h2 {
    font-family: var(--subtitlefont);
    color: var(--color2);
    font-weight: normal; 
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin: 0 0 1rem 0;
}

/* Navigation controls using your button style */
.custom-task-app .task-nav-controls {
font-family: var(--subtitlefont);
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Button overrides for custom task app */
.custom-task-app button {
font-family: var(--subtitlefont);
    transition: all 0.3s ease;
    background-color: var(--color1);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1rem;
    margin: 5px;
}

.custom-task-app button:hover { 
    background-color: var(--color2);
}

.custom-task-app button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Floating filter panel - starts hidden */
.custom-task-app .task-filters-section {
    position: fixed;
    top: 140px; /* Below header */
    right: -190px; /* Start hidden off-screen */
    background: var(--white);
    border: 2px solid var(--color2);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 200px;
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
    transition: right 0.3s ease; /* Smooth slide animation */
}

.custom-task-app .task-filters-section.show {
    right: 20px; /* Slide into view */
}

/* Toggle button for filters */
.custom-task-app .filter-toggle-btn {
    position: fixed;
    top: 140px;
    right: 20px;
    background: var(--color1);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 101;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.custom-task-app .filter-toggle-btn:hover {
    background: var(--color2);
    transform: scale(1.1);
}

.custom-task-app .filter-toggle-btn.active {
    right: 240px; /* Move when panel is open */
    background: var(--color3);
}

.custom-task-app .task-filters-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.custom-task-app .task-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.custom-task-app .task-filter-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--subtitlefont);
}

.custom-task-app .task-filter-group select {
    font-size: 0.8rem;
    padding: 0.4rem;
    margin: 0;
    color: var(--color1);
    border: 1px solid var(--color2);
    background-color: var(--white);
    border-radius: 4px;
}

.custom-task-app .task-search-container {
   gap: 0.1rem;
}

.custom-task-app .task-search-input {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.4rem;
    border: 1px solid var(--color2);
    background-color: var(--white);
    border-radius: 4px;
    color: inherit;
}

.custom-task-app .task-bulk-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color2);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.custom-task-app .task-bulk-select-btn, 
.custom-task-app .task-bulk-delete-btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
}

/* Fixed filter bar */
.custom-task-app .task-fixed-filters-bar {
    position: fixed;
    top: 62px; /* adjust based on header height */
    left: 50%;
    transform: translateX(-50%); /* This centers it */
    width: 100%;
    background-color: #f6f5f3; /* or var(--white) if themed */
    padding: 4px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ccc;
    flex-wrap: wrap;
}
.custom-task-app .task-fixed-filters-bar .button-group {
      display: flex;
    gap: 10px;
    justify-content: center;
}

/* Higher specificity rule to hide filter bar when header is toggled */
body:has(header.toggled) .custom-task-app .task-fixed-filters-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(-100px) !important;
    transition: all 0.3s ease !important;
}
.custom-task-app .task-fixed-filters-bar select,
.custom-task-app .task-fixed-filters-bar input[type="text"] {
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--color2);
    color: var(--color1);
    background-color: var(--white);
}

/* Responsive task grid - optimized for different screen sizes */
.custom-task-app .tasks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Increased from 260px to 320px for wider cards */
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-in;
}

/* Task cards with your design language */
.custom-task-app .task-card {
    background: #F6F5F3;
    border: 1px solid var(--color2);
    border-radius: 3px; /* Less rounded corners */
    padding: 1.2rem;
    padding-bottom: 2.5rem; /* Extra space for bottom-right buttons */
    transition: all 0.3s ease;
    border-left: 4px solid var(--color2);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left !important; /* Force left alignment */
}

.custom-task-app .task-card * {
    text-align: left !important; /* Ensure all child elements are left-aligned */
}

.custom-task-app .task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--color1);
}

.custom-task-app .task-card.task-selected {
    background: linear-gradient(150deg, rgba(148, 187, 233, 0.1), rgba(151, 147, 200, 0.1), rgba(238, 174, 202, 0.1));
    border-left-color: var(--color3);
}

/* Priority color coding - intuitive colors */
.custom-task-app .task-card.task-urgent {
    border-left-color: #e74c3c; /* Red for urgent */
}

.custom-task-app .task-card.task-high {
    border-left-color: #e67e22; /* Dark orange for high */
}

.custom-task-app .task-card.task-medium {
    border-left-color: #f39c12; /* Yellow for medium */
}

.custom-task-app .task-card.task-low {
    border-left-color: #27ae60; /* Green for low */
}

.custom-task-app .task-card-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    margin-bottom: 1rem;
}


.custom-task-app .task-title {
    margin-right: 0 !important;
    order: 999 !important; /* STRONGER ORDER */
    font-weight: 400;
    font-size: 1.2rem !important;
    color: var(--black);
    line-height: 1.4;
    flex: 1 !important;
    font-family: var(--titlefont);
}

.custom-task-app .task-number {
    background-color: var(--color2);
    color: var(--white);
    font-size: 0.9rem !important;
    padding: 0 !important; /* REMOVE PADDING - This was breaking the circle */
    font-weight: 600;
    border-radius: 50% !important;
    width: 24px !important; /* FIXED WIDTH */
    height: 24px !important; /* SAME HEIGHT AS WIDTH */
    min-width: 24px;
    display: flex !important; /* NEEDED TO CENTER THE NUMBER */
    align-items: center !important; /* CENTER VERTICALLY */
    justify-content: center !important; /* CENTER HORIZONTALLY */
    text-align: center;
    margin-right: 0.5rem !important;
    order: -1 !important;
  font-family: var(--titlefont);
}


/* Task tags using your color scheme */
.custom-task-app .task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.custom-task-app .task-tag {
    padding: 0.3rem 0.6rem;
    border-radius: 6px; /* Less rounded */
    font-size: 1rem !important; /* 15% bigger - increased from 0.7rem */
    font-weight: 500;
    color: var(--white);
    display: flex;
    align-items: center;
font-family: var(--titlefont);
}

.custom-task-app .task-tag.task-tag-category {
    background: var(--color1);
font-family: var(--titlefont);
}

.custom-task-app .task-tag.task-tag-time {
    background: var(--color3);
}

.custom-task-app .task-tag.task-tag-priority {
    background: var(--color2);
}

.custom-task-app .task-tag.task-tag-priority.task-urgent {
    background: #e74c3c; /* Red for urgent */
}

.custom-task-app .task-tag.task-tag-priority.task-high {
    background: #e67e22; /* Dark orange for high */
}

.custom-task-app .task-tag.task-tag-priority.task-medium {
    background: #f39c12; /* Yellow for medium */
}

.custom-task-app .task-tag.task-tag-priority.task-low {
    background: #27ae60; /* Green for low */
}

.custom-task-app .task-tag.task-tag-status {
    background: #95a5a6; /* Default grey */
}

.custom-task-app .task-tag.task-tag-status.task-pending {
    background: #95a5a6; /* Grey for pending */
}

.custom-task-app .task-tag.task-tag-status.task-in_progress {
    background: #74b9ff; /* Pale blue for in progress */
}

.custom-task-app .task-tag.task-tag-status.task-completed {
    background: #27ae60; /* Green for completed */
}

/* Task actions - small icon buttons in bottom right */
.custom-task-app .task-actions {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    display: flex;
    gap: 0.3rem;
}

.custom-task-app .task-btn-small {
    padding: 0.4rem;
    font-size: 0.7rem;
    border-radius: 4px; /* Less rounded */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: var(--color3);
    color: var(--black);
}

.custom-task-app .task-btn-edit:hover {
    background: var(--color3);
    transform: translateY(-1px);
}

.custom-task-app .task-btn-delete:hover {
    background: var(--color3);
    color: var(--white);
    transform: translateY(-1px);
}

.custom-task-app .task-suggestion {
    background-color: var(--color2);
    padding: 0.6rem;
    border-radius: 8px;
    font-style: italic;
    color: var(--color2);
    margin-top: 0.8rem;
    border-left: 3px solid var(--color3);
    font-size: 1rem;
    line-height: 1.3;
font-family: var(--titlefont);
}

/* Compact suggestion with expandable option */
.custom-task-app .task-suggestion-compact {
    color: var(--black); /* Darker text for better readability */
    font-size: 0.85rem; /* Bigger text - increased from 0.75rem */
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4; /* Better line spacing */
font-family: var(--titlefont);

}

.custom-task-app .task-suggestion-compact:hover {
    color: var(--color1);
}

.custom-task-app .task-suggestion-dots {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    background: var(--color3);
    color: var(--white);
    border-radius: 6px; /* Less rounded */
    font-size: 0.6rem;
    margin-right: 0.3rem;
    cursor: pointer;
font-family: var(--titlefont);

}

.custom-task-app .task-meta {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--color2);
    display: flex;
    justify-content: space-between;
    align-items: center;
font-family: var(--titlefont);
font-family: var(--titlefont);

}

.custom-task-app .task-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 18px;
    height: 18px;
}

/* Status messages using your patterns */
.custom-task-app .task-status-message {
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in;
}

.custom-task-app .task-status-message.task-success {
    background: #27ae60;
    color: var(--white);
}

.custom-task-app .task-status-message.task-error {
    background: #e74c3c;
    color: var(--white);
}

.custom-task-app .task-status-message.task-info {
    Background: var(--color3);
    color: var(--white);
}

/* Empty state */
.custom-task-app .task-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color2);
    background: var(--white);
    border: 1px solid var(--color2);
    border-radius: 8px; /* Less rounded */
    margin: 2rem 0;
}

.custom-task-app .task-empty-state h3 {
    margin-bottom: 1rem;
    color: var(--color1);
    font-family: var(--titlefont);
}

/* Modal using your design system */
.custom-task-app .task-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.3s ease-in;
}

.custom-task-app .task-modal-content {
    background: var(--white);
    border: 1px solid var(--color2);
    border-radius: 8px; /* Less rounded */
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.custom-task-app .task-modal h3 {
    margin-bottom: 1.5rem;
    color: var(--color1);
    font-family: var(--titlefont);
    font-size: 1.5rem;
}

.custom-task-app .task-form-group {
    margin-bottom: 1rem;
}

.custom-task-app .task-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color2);
    font-family: var(--subtitlefont);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.custom-task-app .task-modal textarea {
    width: 100%;
    border: 1px solid var(--color2);
    padding: 0.8rem;
    border-radius: 6px;
    font-family: var(--subtitlefont);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--black);
    background-color: var(--white);
    resize: vertical;
    min-height: 80px;
}

.custom-task-app .task-modal textarea:focus {
    outline: none;
    border-color: var(--color1);
}

.custom-task-app .task-modal input[type="text"], 
.custom-task-app .task-modal input[type="number"] {
    width: 100%;
    border: 1px solid var(--color2);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--black);
    background-color: var(--white);
}

.custom-task-app .task-modal input:focus {
    outline: none;
    border-color: var(--color1);
}

.custom-task-app .task-modal select {
    width: 100%;
    border: 1px solid var(--color2);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--color1);
    background-color: var(--white);
}

.custom-task-app .task-modal-actions {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* Fancy buttons styling */
.custom-task-app .fancy-buttons {
font-family: var(--subtitlefont);   
 display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
    margin-bottom: 0;
}

.custom-task-app .fancy-buttons a {
font-family: var(--subtitlefont);    
display: inline-block;
    background-color: var(--color1);
    color: white;
    padding: 2px 2px;
    margin: 0;
    border: none;
    border-radius: 2px;
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.custom-task-app .fancy-buttons a:hover {
    background-color: #3c918b;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .custom-task-app .task-filters-section {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        max-height: 40vh;
    }
    
    .custom-task-app .task-filters-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .custom-task-app .task-bulk-section {
        margin-top: 1rem;
        padding-top: 0;
        border-top: none;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;  
    }
}

/* Mobile phones - 1 column */
@media (max-width: 480px) {
    .custom-task-app .tasks-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .custom-task-app {
        padding: 0.5rem;
        margin: 1rem auto;
    }
    
    .custom-task-app .task-filters-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-task-app .task-bulk-section {
        justify-content: center;
    }
    
    .custom-task-app .task-card {
        padding: 1rem;
    }
    
    .custom-task-app .task-actions {
        flex-direction: column;
    }
    
    .custom-task-app .task-nav-controls {
        flex-direction: column;
        align-items: center;
    }
}

/* Tablets - 2 columns */
@media (min-width: 481px) and (max-width: 768px) {
    .custom-task-app .tasks-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .custom-task-app {
        padding: 1rem;
    }
    
    .custom-task-app .task-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptops (like your 13" MacBook) - 3 columns */
@media (min-width: 769px) and (max-width: 1200px) {
    .custom-task-app .tasks-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1rem;
    }
}

/* Large screens - max 3-4 columns */
@media (min-width: 1201px) {
    .custom-task-app .tasks-container {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 1.2rem;
    }
}

/* === END SCOPED TASK LIST STYLES === */

/* FORCE BUTTONS ON SAME LINE */
.custom-task-app .fancy-buttons {
    display: flex !important;
    flex-direction: row !important; /* Force horizontal */
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 10px;
    flex-wrap: nowrap !important; /* Don't wrap to new line */
}

/* MAKE SURE BUTTONS STAY INLINE */
.custom-task-app .fancy-buttons a,
.custom-task-app .fancy-buttons button {
    display: inline-block !important;
    width: auto !important; /* Don't take full width */
    margin: 0 !important;
    white-space: nowrap !important; /* Don't wrap text */
    flex-shrink: 0 !important; /* Don't shrink */
}

/* FORCE ALL BUTTONS TO SAME HEIGHT */
.custom-task-app .fancy-buttons a,
.custom-task-app .fancy-buttons button,
.custom-task-app .task-bulk-select-btn,
.custom-task-app .task-bulk-delete-btn {
  	border-radius: 4px !important; /* Less rounded - was probably 16px+ */
    height: 36px !important; /* Fixed height for all buttons */
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 8px 12px !important; /* Consistent padding */
    display: inline-flex !important; /* Use flexbox for centering */
    align-items: center !important; /* Center content vertically */
    justify-content: center !important; /* Center content horizontally */
    font-size: 0.9rem !important; /* Consistent font size */
    line-height: 1 !important; /* Prevent line-height issues */
    box-sizing: border-box !important; /* Include padding in height */
    vertical-align: top !important; /* Align tops */
}
#edit-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
  justify-content: center;
  align-items: center;
font-family: var(--subtitlefont);
}

.task-modal-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}



.link-internal.macro-button {
  display: inline-flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: nowrap;
  background: #8ed19f;
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-family: var(--subtitlefont);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
   min-width: 120px;
}

.link-internal.macro-button:hover {
  background: #480d63;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
 
}

.link-internal.macro-button.secondary {
  background: #56baa3;
  color: white;
  border: 2px solid ;
   min-width: 120px;
}

.link-internal.macro-button.secondary:hover {
  background: #480d63;
  color: var(--white);
}

.link-internal.macro-button.primary {
  background: linear-gradient(135deg, var(--color1), #480d63);
}

.link-internal.macro-button.primary:hover {
  background: linear-gradient(135deg, var(--color2), #480d63);
}

/* Change category color to light green */
.custom-task-app .task-tag.task-tag-category {
    background: #6ec277 !important;
    color: var(--black) !important; /* Dark text for better contrast on light green */
    font-family: var(--titlefont);
}

/* Add demand level color coding */
.custom-task-app .task-tag.task-tag-demand {
    font-family: var(--titlefont);
    color: var(--white);
}

.custom-task-app .task-tag.task-tag-demand.demand-high {
    background: #e74c3c !important; /* Red for high */
}

.custom-task-app .task-tag.task-tag-demand.demand-moderate,
.custom-task-app .task-tag.task-tag-demand.demand-medium {
    background: #e67e22 !important; /* Orange for moderate/medium */
}

.custom-task-app .task-tag.task-tag-demand.demand-low {
    background: #27ae60 !important; /* Green for low */
}


  .todo-stats {
      display: flex;
      gap: 2rem;
      margin-bottom: 1rem;
      padding: 1rem;
      background: var(--color4);
      border-radius: 8px;
      justify-content: center;
      flex-wrap: wrap;
    }
    
    .todo-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.3rem;
    }
    
    .todo-stat-label {
      font-size: 0.8rem;
      color: var(--color2);
      font-family: var(--subtitlefont);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .todo-stat-value {
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--black);
      font-family: var(--titlefont);
    }
    
/* === BRAIN PROFILE SELECTION STYLES === */

.brain-profiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1rem;
}

.brain-card {
  background: var(--white);
  border: 2px solid var(--color2);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.brain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: var(--color1);
}

.brain-card.selected {
  background: linear-gradient(135deg, var(--color1), var(--color2));
  border-color: var(--color3);
  color: var(--white);
}

.brain-card.selected .brain-name,
.brain-card.selected .brain-description {
  color: var(--white);
}

.brain-card.selected .brain-trait-tag {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.brain-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brain-emoji {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.brain-info {
  flex: 1;
}

.brain-name {
  font-family: var(--titlefont);
  font-size: 1.3rem;
  color: var(--color1);
  margin: 0 0 0.5rem 0;
  font-weight: normal;
  letter-spacing: 1px;
}

.brain-description {
  font-family: var(--subtitlefont);
  font-size: 0.9rem;
  color: var(--black);
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}

.brain-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.brain-trait-tag {
  background: var(--color3);
  color: var(--white);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--subtitlefont);
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.brain-trait-tag:hover {
  background: var(--color2);
  transform: translateY(-1px);
}

.brain-card-footer {
  text-align: center;
  margin-top: 1rem;
}

.brain-select-btn {
  background: var(--color1);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-family: var(--subtitlefont);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  width: 100%;
}

.brain-select-btn:hover {
  background: var(--color2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.brain-card.selected .brain-select-btn {
  background: var(--white);
  color: var(--color1);
}

.brain-card.selected .brain-select-btn:hover {
  background: var(--color3);
  color: var(--white);
}

.brain-selection-actions {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
}

.secondary-btn {
  background: transparent;
  color: var(--color2);
  border: 2px solid var(--color2);
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: var(--subtitlefont);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.secondary-btn:hover {
  background: var(--color2);
  color: var(--white);
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .brain-profiles-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }
  
  .brain-card {
    padding: 1rem;
  }
  
  .brain-card-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .brain-emoji {
    font-size: 2.5rem;
    align-self: center;
  }
  
  .brain-name {
    font-size: 1.1rem;
  }
  
  .brain-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .brain-traits {
    justify-content: center;
  }
  
  .brain-trait-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Animation for when profiles load */
.brain-card {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.brain-card:nth-child(1) { animation-delay: 0.1s; }
.brain-card:nth-child(2) { animation-delay: 0.2s; }
.brain-card:nth-child(3) { animation-delay: 0.3s; }
.brain-card:nth-child(4) { animation-delay: 0.4s; }
.brain-card:nth-child(5) { animation-delay: 0.5s; }
.brain-card:nth-child(6) { animation-delay: 0.6s; }

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

/* === END BRAIN PROFILE SELECTION STYLES === */

/* === DAILY SCHEDULE STYLES (Flutter-inspired) === */

.schedule-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Context Bar (like Flutter ContextBar) */
.context-bar {
  background: var(--white);
  border: 2px solid var(--color2);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: justify;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.context-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--subtitlefont);
}

.context-icon {
  font-size: 1.4rem;
}

.context-label {
  font-weight: 600;
  color: var(--color1);
  font-size: 0.9rem;
}

.context-value {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Schedule Controls */
.schedule-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.control-btn {
  background: var(--color1);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-family: var(--subtitlefont);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.control-btn:hover {
  background: var(--color2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.control-btn.secondary {
  background: transparent;
  color: var(--color1);
  border: 2px solid var(--color1);
}

.control-btn.secondary:hover {
  background: var(--color1);
  color: var(--white);
}

.control-btn.primary {
  background: linear-gradient(135deg, var(--color1), var(--color2));
}

.control-btn.primary:hover {
  background: linear-gradient(135deg, var(--color2), var(--color3));
}

/* Schedule Timeline */
.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Schedule Block Cards (like Flutter ScheduleBlockCard) */
.schedule-block {
  background: var(--white);
  border: 1px solid var(--color2);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--color2);
}

.schedule-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Block Type Color Coding (matching Flutter colors but using your palette) */
.schedule-block.block-focus {
  border-left-color: #74b9ff; /* Blue */
  background: linear-gradient(135deg, rgba(116, 185, 255, 0.05), rgba(116, 185, 255, 0.02));
}

.schedule-block.block-break {
  border-left-color: #27ae60; /* Green */
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(39, 174, 96, 0.02));
}

.schedule-block.block-meeting {
  border-left-color: #e67e22; /* Orange */
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.05), rgba(230, 126, 34, 0.02));
}

.schedule-block.block-non-negotiable {
  border-left-color: #e74c3c; /* Red */
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(231, 76, 60, 0.02));
}

.schedule-block.block-task {
  border-left-color: var(--color3);
  background: linear-gradient(135deg, rgba(247, 231, 166, 0.1), rgba(247, 231, 166, 0.02));
}

/* Block Header */
.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.block-time {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.block-icon {
  font-size: 1.2rem;
}

.time-range {
  font-family: var(--titlefont);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color1);
  letter-spacing: 1px;
}

.block-importance {
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--subtitlefont);
}

.importance-must {
  background: #e74c3c;
  color: white;
}

.importance-could {
  background: var(--color3);
  color: var(--black);
}

.importance-medium {
  background: var(--color2);
  color: white;
}

/* Block Content */
.block-content {
  margin-bottom: 1rem;
}

.block-task {
  font-family: var(--titlefont);
  font-size: 1.3rem;
  color: var(--black);
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  line-height: 1.3;
}

.block-instructions {
  font-family: var(--subtitlefont);
  font-size: 0.95rem;
  color: var(--color2);
  margin: 0;
  font-style: italic;
  line-height: 1.4;
}

/* Block Footer */
.block-footer {
  border-top: 1px solid rgba(157, 139, 163, 0.2);
  padding-top: 1rem;
}

.block-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.meta-label {
  font-weight: 600;
  color: var(--color2);
  font-family: var(--subtitlefont);
}

.meta-value {
  color: var(--black);
  font-family: var(--subtitlefont);
}

.meta-value.demand-high {
  color: #e74c3c;
  font-weight: 600;
}

.meta-value.demand-medium {
  color: #e67e22;
  font-weight: 600;
}

.meta-value.demand-low {
  color: #27ae60;
  font-weight: 600;
}

/* Overflow Section (like Flutter overflow handling) */
.overflow-section {
  background: rgba(231, 76, 60, 0.05);
  border: 2px solid rgba(231, 76, 60, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.overflow-title {
  font-family: var(--titlefont);
  color: #e74c3c;
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.overflow-subtitle {
  font-family: var(--subtitlefont);
  color: var(--color2);
  font-size: 0.9rem;
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

.overflow-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Overflow Task Cards */
.overflow-task {
  background: white;
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 6px;
  padding: 1rem;
  border-left: 4px solid #e74c3c;
}

.overflow-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.overflow-warning {
  color: #e74c3c;
  font-size: 1.1rem;
}

.overflow-task-title {
  font-family: var(--titlefont);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
}

.overflow-task .overflow-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color2);
}

/* Empty State */
.schedule-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border: 2px dashed var(--color2);
  border-radius: 8px;
  margin: 2rem 0;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.schedule-empty h3 {
  font-family: var(--titlefont);
  color: var(--color1);
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.schedule-empty p {
  font-family: var(--subtitlefont);
  color: var(--color2);
  font-size: 1rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.empty-action-btn {
  background: linear-gradient(135deg, var(--color1), var(--color2));
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--subtitlefont);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.empty-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .schedule-container {
    padding: 0.5rem;
  }
  
  .context-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  
  .context-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .schedule-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .control-btn {
    width: 100%;
    justify-content: center;
  }
  
  .schedule-block {
    padding: 1rem;
  }
  
  .block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .block-meta {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .overflow-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .schedule-empty {
    padding: 2rem 1rem;
  }
  
  .empty-icon {
    font-size: 3rem;
  }
  
  .schedule-empty h3 {
    font-size: 1.2rem;
  }
  
  .schedule-empty p {
    font-size: 0.9rem;
  }
}

/* Animation for schedule blocks */
.schedule-block {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.schedule-block:nth-child(1) { animation-delay: 0.1s; }
.schedule-block:nth-child(2) { animation-delay: 0.2s; }
.schedule-block:nth-child(3) { animation-delay: 0.3s; }
.schedule-block:nth-child(4) { animation-delay: 0.4s; }
.schedule-block:nth-child(5) { animation-delay: 0.5s; }
.schedule-block:nth-child(6) { animation-delay: 0.6s; }
.schedule-block:nth-child(7) { animation-delay: 0.7s; }
.schedule-block:nth-child(8) { animation-delay: 0.8s; }

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

/* === END DAILY SCHEDULE STYLES === */


       
#brain-dump-text-two {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 200px !important;
  height: 75px !important;
  box-sizing: border-box;
  display: block;
    margin: 0 auto !important;
}


/* === ADDITIONAL STYLING FOR PURPLE MIC BUTTONS === */
.mic-btn-inbox {
    position: absolute;
    right: 12px; /* Slightly more spacing */
    top: 50%;
    transform: translateY(-50%); /* Perfect vertical center */
    background: var(--color2) !important; /* Purple background like in screenshot */
    color: white !important; /* White icon */
    border: none;
    border-radius: 2px; /* Rounded like in screenshot */
    width: 32px; /* Fixed width */
    height: 32px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9em;
    z-index: 999;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
}

.mic-btn-inbox:hover {
    background: var(--color1) !important; /* Lighter purple on hover */
    transform: translateY(-50%) scale(1.05); /* Slight grow on hover */
}

.mic-btn-inbox.recording {
    background: #ff4757 !important; /* Red when recording */
    animation: pulse 1s infinite; /* Pulsing animation */
}

/* Pulsing animation for recording state */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Ensure textarea has proper padding for the button */
.voice-textarea-wrapper textarea {
    padding-right: 50px !important; /* More space for the wider button */
}

.action-button {
    background: var(--color1, #c4afcc);
    color: var(--white, #f5b7b1);
    padding: 4px 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--subtitlefont, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 5px; /* Add spacing between buttons */
    min-width: 160px; /* Ensure consistent button sizes */
  text-align: center;
    vertical-align: middle !important;
}

.action-button:hover {
    background: var(--color2, #9d8ba3);
    transform: translateY(-1px);
}

/* Optional: Different colors for different button types */
.action-button.primary {
    background: var(--color1, #c4afcc);
}

.action-button.secondary {
    background: var(--color2, #9d8ba3);
}

.action-button.clear {
    background: #e67e22; /* Orange for clear/delete actions */
}

.action-button.clear:hover {
    background: #d35400;
}

 /* Fixed width constraints and voice input positioning */        .custom-task-app { 
            max-width: 800px; /* Match your passage width */
            margin: 1rem auto; 
            padding: 1rem;
            width: 100%; /* Ensure it takes available width */
        }        

    .task-form-group { 
            margin-bottom: 1.5rem; /* More breathing room */
        }
        
        .task-form-label { 
            display: block; 
            margin-bottom: 0.5rem; 
            font-weight: 600; 
            color: var(--color2, #9d8ba3); 
            font-family: var(--subtitlefont, sans-serif);
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 1px;
        }
        
/* Fixed voice input wrapper */
.voice-textarea-wrapper { 
    position: relative; 
    display: block;
    width: 100%; 
    margin: 0;
}

/* Fixed textarea positioning */
.voice-textarea-wrapper textarea { 
    width: 100%; 
    padding: 8px 40px 8px 8px; /* Space for button on right */
    box-sizing: border-box;
    border: 2px solid var(--color2, #9d8ba3);
    resize: none;
    min-height: 80px;
    font-family: var(--subtitlefont, sans-serif) !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}        
    
        
        input, select {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
            border: 1px solid var(--color2, #9d8ba3);
            background-color: var(--white, #f5b7b1);
            color: var(--black, #4a4a4a);
            font-family: var(--subtitlefont, sans-serif) !important;
        }
        
        /* Regular textarea (without voice input) */
        textarea:not(.voice-textarea-wrapper textarea) {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
            border: 2px solid var(--color2, #9d8ba3);
            background-color: var(--white, #f5b7b1);
            color: var(--black, #4a4a4a);
            font-family: var(--subtitlefont, sans-serif) !important;
            resize: none;
            min-height: 80px;
        }
        
        button[type="submit"] {
            background: var(--color1, #c4afcc);
            color: var(--white, #f5b7b1);
            padding: 12px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
            width: 100%;
            transition: all 0.3s ease;
            font-family: var(--subtitlefont, sans-serif);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        button[type="submit"]:hover {
            background: var(--color2, #9d8ba3);
            transform: translateY(-1px);
        }
        
        /* Vibe checkboxes styling */
        #vibe {
            display: flex !important;
            gap: 1rem !important;
            flex-wrap: wrap !important;
            align-items: center;
            margin-top: 0.5rem;
        }
        
        #vibe label {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.9rem;
            color: var(--black, #4a4a4a);
            cursor: pointer;
            font-family: var(--subtitlefont, sans-serif);
        }
        
        #vibe input[type="checkbox"] {
            width: auto;
            margin: 0;
        }
        
        /* Brain profile display styling */
        #display-brain-profile {
            font-weight: bold; 
            color: var(--color2); 
            padding: 12px; 
            background: rgba(196, 175, 204, 0.1); 
            border-radius: 6px;
            border: 1px solid rgba(196, 175, 204, 0.3);
            margin-bottom: 0.5rem;
        }
        
        /* Mobile responsive */
        @media (max-width: 768px) {
            .custom-task-app {
                padding: 0.5rem;
                margin: 0.5rem auto;
            }
            
            #vibe {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }

.schedule-block.dragging { opacity: 0.5; }
.schedule-block.drag-over { border: 2px dashed #94bbe9; }
.drag-handle { user-select: none; font-size: 1.2em; margin-left: 10px; }

.schedule-controls-green {
  background: transparent!;
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Schedule Controls green*/
.control-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 120px;
  background: #480d63;
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-family: var(--subtitlefont);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.control-btn-green:hover {
  background: #360a4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.control-btn-greeny {
  background: #6ec277;
  color: #480d63;
  border: 2px solid #480d63;
}

.control-btn-greeny:hover {
  background: #480d63;
  color: var(--white);
}

.control-btn-greens {
  background: linear-gradient(135deg, var(--color1), #480d63);
}

.control-btn-greens:hover {
  background: linear-gradient(135deg, var(--color2), #480d63);
}


.brain-details {
  margin-top: 1rem;
  border-top: 1px solid var(--color2);
  padding-top: 1rem;
}

.brain-card-header {
  cursor: pointer;
}

.brain-card-header:hover {
  background-color: rgba(157, 139, 163, 0.1);
}

.brain-extra p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--black);
}


/* Show header on main-page class */
.main-page #site-header,
.main-page #custom-header,
.main-page .custom-header,
.main-page header,
.main-page .header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* Specific targeting for Loading Page - multiple approaches */
body[data-passage="Loading Page"] #site-header,
body[data-passage="Loading Page"] #custom-header,
body[data-passage="Loading Page"] .custom-header,
body[data-passage="Loading Page"] header,
body[data-passage="Loading Page"] .header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Also target by passage title attribute if Twine uses it */
[data-passage-title="Loading Page"] #site-header,
[data-passage-title="Loading Page"] #custom-header,
[data-passage-title="Loading Page"] .custom-header,
[data-passage-title="Loading Page"] header,
[data-passage-title="Loading Page"] .header {
    display: none !important;
    visibility: hidden !important;
}

/* Hide any navigation or UI elements that might show on Loading Page */
.sign-in #ui-bar,
.sign-in #ui-bar-toggle,
.sign-in .navigation,
.sign-in .menu,
.sign-in #side-menu {
    display: none !important;
}

/* Ensure Loading Page takes full viewport */
body[data-passage="Loading Page"] {
    margin: 0;
    padding: 0;
}

body[data-passage="Loading Page"] #passages {
    margin-top: 0 !important;
    padding-top: 2rem !important; /* Keep some padding for content */
}

body[data-passage="Loading Page"] .passage {
    margin-top: 0;
}


#processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(133, 186, 194, 0.95); /* Your color1 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

#processing-overlay .loading-content {
    text-align: center;
    color: var(--white);
}

#processing-overlay h2 {
    margin-bottom: 1rem;
    font-family: var(--titlefont);
    color: var(--white);
}

#processing-overlay p {
    color: var(--white);
    font-family: var(--subtitlefont);
}


/* Debug styles - uncomment these if you need to troubleshoot */
/*
.start-page::before {
    content: "START PAGE MODE";
    position: fixed;
    top: 0;
    left: 0;
    background: red;
    color: white;
    padding: 5px;
    z-index: 9999;
}

.main-page::before {
    content: "MAIN PAGE MODE";
    position: fixed;
    top: 0;
    left: 0;
    background: green;
    color: white;
    padding: 5px;
    z-index: 9999;
}
*/
/* === SIGNUP PAGE STYLING (matches Loading Page) === */


/* Make signup inputs match login inputs */
#signup-email,
#signup-password,
#signup-confirm-password {
  width: 100% !important;
  padding: 10px !important;
  margin: 6px 0 !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  background: rgba(255,255,255,0.2) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-size: 16px !important;
}

#signup-email::placeholder,
#signup-password::placeholder,
#signup-confirm-password::placeholder {
  color: rgba(255,255,255,0.7) !important;
}

/* Success section styling */
#signup-success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  border-radius: 8px;
  padding: 1.5rem;
}



/* === SIGNUP PAGE STYLING (matches Loading Page) === */

#passage-signup {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  background: var(--color2);
  width: 100%;
  height: 100%;
  padding: 1rem;
  padding-top: 1rem;
  overflow-y: auto; /* ADD THIS - allows vertical scrolling */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

#passage-signup h1, 
#passage-signup h2,
#passage-signup h3 {
  color: var(--4a4a4a);
}

#passage-signup h1 {
  text-transform: uppercase !important;
  font-family: var(--titlefont);
  color: var(--4a4a4a);
  text-align: center;
  margin: 0;
  font-size: 2rem;
}

#passage-signup h2 {
  font-family: var(--subtitlefont);
  color: var(--4a4a4a);
  font-weight: normal;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-align: center;
  margin: 0;
}

#passage-signup .main {
  position: absolute;
  width: 100%;
  top: 80px;
  left: 50%;
  transform: translateX(-50%); /* Only center horizontally */
  
}

#passage-signup nav {
  width: 80%;
  margin: 2rem auto;
  text-align: center;
  font-family: var(--subtitlefont);
}

#passage-signup .link-internal {
  color: var(--white) !important;
  margin: 0 5px;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 1.5rem 0;
  padding: 0;
}

.feature-card {
  background: var(--color3);
  border-radius: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07), 0 0.5px 2px rgba(60,60,120,0.12);
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  display: flex;
  left: 50%;
transform: translateX(-50%); /* Only center horizontally */
  flex-direction: row;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.14s;
  position: relative;
  min-height: 120px;
  font-family: 'Poppins', 'Quicksand', 'Merriweather', Arial, sans-serif;
  width: 70%;
}

.feature-card-min {
  background: transparent;
  border-radius: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07), 0 0.5px 2px rgba(60,60,120,0.12);
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  display: flex;
  left: 50%;
transform: translateX(-50%); /* Only center horizontally */
  flex-direction: row;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.14s;
  position: relative;
  min-height: 60px;
  font-family: 'Poppins', 'Quicksand', 'Merriweather', Arial, sans-serif;
  width: 70%;
  color: var(--color1)
}
.feature-card-min:hover {
  box-shadow: 0 1px 2px rgba(50, 50, 100, 0.05);
  transform: translateX(-50%) translateY(-0.5px);
}


.feature-emoji {
  font-size: 2.4rem;
  width: 3.1rem;
  height: 3.1rem;
  background: var(--color4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.4rem;
  margin-top: 0.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  flex-shrink: 0;
}

.feature-emoji-min {
  font-size: 2.4rem;
  width: 3.1rem;
  height: 3.1rem;
  background: var(--color3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.4rem;
  margin-top: 0.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  flex-shrink: 0;
}


.feature-content-min h3 {
  font-family: 'Poppins', 'Quicksand', Arial, sans-serif;
  font-size: 1.27rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.33em 0;
  color: var(--black);
  letter-spacing: 0.01em;
}
.feature-content-min p {
  font-family: 'Quicksand', 'Poppins', Arial, sans-serif;
  font-size: 1.04rem;
  margin-bottom: 0.5em;
  color: var(--black);
  font-weight: 500;
}
.feature-link-min {
  display: inline-block;
  margin-right: 0.8em;
  margin-bottom: 0.6em;
  background: var(--color1);
  color: var(--white);
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  padding: 0.7em 1.6em;
  font-family: 'Poppins', 'Quicksand', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.13s;
  box-shadow: 0 2px 8px 0 rgba(130,160,160,0.05);
}
.feature-link-min:hover,
.feature-link-min:focus {
  background: var(--color1);
  outline: none;
}

.feature-content {
  flex: 1;
  min-width: 0;
}
.feature-content h3 {
  font-family: 'Poppins', 'Quicksand', Arial, sans-serif;
  font-size: 1.27rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.33em 0;
  color: var(--white);
  letter-spacing: 0.01em;
}
.feature-content p {
  font-family: 'Quicksand', 'Poppins', Arial, sans-serif;
  font-size: 1.04rem;
  margin-bottom: 0.5em;
  color: var(--white);
  font-weight: 500;
}
.feature-link {
  display: inline-block;
  margin-right: 0.8em;
  margin-bottom: 0.6em;
  background: var(--color5);
  color: var(--black);
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  padding: 0.7em 1.6em;
  font-family: 'Poppins', 'Quicksand', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.13s;
  box-shadow: 0 2px 8px 0 rgba(130,160,160,0.05);
}
.feature-link:hover,
.feature-link:focus {
  background: var(--color4);
  outline: none;
}

.toggle-details {
  background: var(--color4);
  border: none;
  color: var(--color1);
  font-size: 0.98rem;
  font-family: 'Poppins', 'Quicksand', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3em 0.7em;
  border-radius: 2rem;
  transition: background 0.12s;
  margin-bottom: 0.7em;
}
.toggle-details:hover,
.toggle-details:focus {
  background: var(--color4);
  color: var(--color1);
}

.feature-details {
  font-size: 0.97rem;
  background: var(--color4);
  color: var(--black);
  border-radius: 1.3rem;
  box-shadow: 0 1px 6px rgba(120,120,120,0.05);
  padding: 1em 1.2em;
  margin-top: 0.2em;
  margin-bottom: 0.1em;
  line-height: 1.7;
  font-family: 'Quicksand', 'Poppins', Arial, sans-serif;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Responsive for smaller screens */
@media (max-width: 700px) {
  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .feature-card {
    padding: 1.3rem 0.9rem;
    min-height: 135px;
  }
  .feature-emoji {
    font-size: 2rem;
    width: 2.2rem;
    height: 2.2rem;
    margin-right: 0.8rem;
  }
  .feature-content h3 {
    font-size: 1.08rem;
  }
}

.user-context-section {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.user-context-section h3 {
  margin-top: 0;
}

.user-context-section label {
  display: block;
  margin: 5px 0;
}

.user-context-section input,
.user-context-section textarea {
  width: 100%;
  box-sizing: border-box;
}
.day-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(133, 186, 194, 0.9); /* matches --color1 with opacity */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

#loading-overlay.hidden {
  display: none;
}

.loading-content {
  text-align: center;
  color: var(--white);
  font-family: var(--subtitlefont);
}

.loading-content h2 {
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.spinner {
  border: 6px solid var(--color2);
  border-top: 6px solid var(--white);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* ========== OVERFLOW CONTAINER STYLES (ADD TO YOUR EXISTING CSS) ========== */

/* Main container adjustments */
.daily-planner-container {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Main schedule area */
.schedule-main {
    flex: 1;
    transition: margin-right 0.3s ease;
}

.schedule-main.overflow-open {
    margin-right: 350px;
}

/* Overflow toggle button - uses your color1 */
.overflow-toggle {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color1); /* Your teal blue */
    color: var(--white);
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 15px 8px;
    cursor: pointer;
    z-index: 1000;
    font-size: 12px;
    font-weight: bold;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    line-height: 1.2;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--subtitlefont);
}

.overflow-toggle:hover {
    background: var(--color2); /* Your lavender */
    transform: translateY(-50%) translateX(-2px);
}

.overflow-toggle.open {
    right: 350px;
    border-radius: 0 8px 8px 0;
    writing-mode: vertical-rl;
}

.overflow-toggle small {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Overflow panel */
.overflow-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--white);
    border-left: 2px solid var(--color1);
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.overflow-panel.open {
    right: 0;
}

/* Overflow panel header - uses your color1 */
.overflow-header {
    background: var(--color1); /* Your teal blue */
    color: var(--white);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.overflow-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    font-family: var(--titlefont);
    text-transform: uppercase;
}

.overflow-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-family: var(--subtitlefont);
}

.overflow-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
}

/* Overflow content */
.overflow-content {
    padding: 20px;
}

.overflow-empty {
    text-align: center;
    color: var(--color2); /* Your lavender */
    padding: 40px 20px;
}

.overflow-empty .emoji {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.overflow-empty h4 {
    margin: 0 0 10px 0;
    color: var(--black);
    font-family: var(--titlefont);
}

.overflow-empty p {
    margin: 0;
    line-height: 1.5;
    font-family: var(--subtitlefont);
}

/* Overflow task items - using your design language */
.overflow-task {
    background: var(--color4); /* Your pale grey-blue */
    border: 1px solid var(--color2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    border-left: 4px solid var(--color2);
}

.overflow-task:hover {
    border-color: var(--color1);
    box-shadow: 0 2px 8px rgba(133, 186, 194, 0.1); /* Using your color1 with opacity */
    transform: translateY(-1px);
}

.overflow-task-title {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.3;
    word-wrap: break-word;
    font-family: var(--titlefont);
}

.overflow-task-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}

.overflow-task-meta span {
    background: var(--color3); /* Your sage green */
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--white);
    white-space: nowrap;
    font-family: var(--subtitlefont);
}

.overflow-task-meta .priority {
    font-weight: 600;
}

.overflow-task-meta .priority.urgent { 
    background: #e74c3c; 
    color: var(--white); 
}

.overflow-task-meta .priority.high { 
    background: #e67e22; 
    color: var(--white); 
}

.overflow-task-meta .priority.medium { 
    background: var(--color2); /* Your lavender */
    color: var(--white); 
}

.overflow-task-meta .priority.low { 
    background: var(--color3); /* Your sage green */
    color: var(--white); 
}

.overflow-task-suggestion {
    color: var(--black);
    font-size: 13px;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.4;
    background: rgba(133, 186, 194, 0.1); /* Your color1 with low opacity */
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--color1);
    font-family: var(--subtitlefont);
}

.overflow-task-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.overflow-action-btn {
    background: var(--color1); /* Your teal blue */
    color: var(--white);
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
    text-align: center;
    font-family: var(--subtitlefont);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overflow-action-btn:hover {
    background: var(--color2); /* Your lavender */
    transform: translateY(-1px);
}

.overflow-action-btn.secondary {
    background: var(--color3); /* Your sage green */
}

.overflow-action-btn.secondary:hover {
    background: var(--color2); /* Your lavender */
}

/* Responsive design */
@media (max-width: 768px) {
    .overflow-panel {
        width: 100vw;
        right: -100vw;
    }

    .overflow-toggle.open {
        right: 0;
    }

    .schedule-main.overflow-open {
        margin-right: 0;
    }

    .overflow-toggle {
        right: 5px;
        padding: 12px 6px;
        font-size: 11px;
    }

    .overflow-task-actions {
        flex-direction: column;
    }

    .overflow-action-btn {
        flex: none;
        width: 100%;
    }
}

/* Dark mode support - adapts to your existing theme system */
body.dark-theme .overflow-panel {
    background: var(--black);
    color: var(--white);
    border-left-color: var(--color1);
}

body.dark-theme .overflow-task {
    background: var(--color6); /* Your charcoal */
    border-color: var(--color7); /* Your lighter charcoal */
    color: var(--white);
}

body.dark-theme .overflow-task-title {
    color: var(--white);
}

body.dark-theme .overflow-task-suggestion {
    background: rgba(255,255,255,0.05);
    color: var(--color8); /* Your light grey */
}

body.dark-theme .overflow-empty {
    color: var(--color8);
}

body.dark-theme .overflow-empty h4 {
    color: var(--white);
}

/* Ensure overflow panel appears above other elements */
.overflow-panel {
    z-index: 9999;
}

.overflow-toggle {
    z-index: 10000;
}

/* Animation for task removal */
.overflow-task.removing {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

/* Loading state */
.overflow-content.loading::after {
    content: "Loading overflow tasks...";
    display: block;
    text-align: center;
    color: var(--color2);
    font-style: italic;
    padding: 20px;
    font-family: var(--subtitlefont);
}
.date-switcher-item {
    position: relative;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.date-switcher-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.date-nav-btn {
    background: var(--color3);
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.date-nav-btn:hover {
    background: var(--color1);
    transform: scale(1.1);
}

.date-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.current-date-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: rgba(133, 186, 194, 0.1);
    border: 1px solid transparent;
    min-width: 120px;
    justify-content: center;
}

.current-date-display:hover {
    background: rgba(133, 186, 194, 0.2);
    border-color: var(--color1);
}

.date-picker-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

.date-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--color1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 1rem;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

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

.quick-date-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-date-option {
    background: var(--color3);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 70px;
    font-family: var(--subtitlefont);
}

.quick-date-option:hover {
    background: var(--color1);
}

.date-picker-input-container {
    margin-bottom: 1rem;
}

.context-date-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color2);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--subtitlefont);
}

.context-date-input:focus {
    outline: none;
    border-color: var(--color1);
}

.date-picker-input-container small {
    color: var(--color2);
    font-size: 0.7rem;
    font-style: italic;
    display: block;
    margin-top: 0.3rem;
}

.date-picker-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.load-date-btn,
.cancel-date-btn,
.full-selector-btn {
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--subtitlefont);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.load-date-btn {
    background: var(--color1);
    color: var(--white);
    flex: 1;
}

.load-date-btn:hover {
    background: var(--color2);
}

.cancel-date-btn {
    background: var(--color3);
    color: var(--white);
}

.cancel-date-btn:hover {
    background: var(--color2);
}

.full-selector-btn {
    background: transparent;
    color: var(--color1);
    border: 1px solid var(--color1);
    font-size: 0.7rem;
}

.full-selector-btn:hover {
    background: var(--color1);
    color: var(--white);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .date-switcher-widget {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .current-date-display {
        min-width: 100px;
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .date-picker-dropdown {
        left: -1rem;
        right: -1rem;
    }
    
    .quick-date-options {
        flex-direction: column;
    }
    
    .date-picker-actions {
        flex-direction: column;
    }
}

/* Context bar layout adjustment */
.context-bar {
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .context-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-switcher-item {
        width: 100%;
        align-items: center !important;
    }
}

/* Plan Options Modal */
.plan-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.plan-options-content {
    background: var(--white);
    border: 2px solid var(--color1);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

.plan-options-content h3 {
    color: var(--color1);
    font-family: var(--titlefont);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-options-content p {
    color: var(--black);
    font-family: var(--subtitlefont);
    margin: 0 0 2rem 0;
    font-size: 1rem;
}

.plan-options-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-option-btn {
    background: var(--white);
    border: 2px solid var(--color2);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    font-family: var(--subtitlefont);
}

.plan-option-btn:hover {
    border-color: var(--color1);
    background: var(--color4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.plan-option-btn i {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
    color: var(--color1);
}

.plan-option-btn span {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
}

.plan-option-btn small {
    color: var(--color2);
    font-size: 0.8rem;
    font-style: italic;
    display: block;
    margin-top: 0.2rem;
}

.plan-option-btn.create-btn:hover {
    border-color: var(--color3);
    background: rgba(168, 199, 194, 0.1);
}

.plan-option-btn.create-btn:hover i {
    color: var(--color3);
}

.plan-option-btn.copy-btn:hover {
    border-color: var(--color2);
    background: rgba(173, 169, 200, 0.1);
}

.plan-option-btn.copy-btn:hover i {
    color: var(--color2);
}

.plan-option-btn.cancel-btn:hover {
    border-color: var(--color8);
    background: rgba(136, 136, 136, 0.1);
}

.plan-option-btn.cancel-btn:hover i {
    color: var(--color8);
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal mobile responsive */
@media (max-width: 480px) {
    .plan-options-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .plan-option-btn {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .plan-option-btn i {
        width: auto;
    }
}