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

:root {
    --color-bg: #FDFBD4;
    --color-accent:  #2E6F40;
    --color-text: #232B25;
    --font-header: "DM Serif Display", serif;
    --font-body: "Lora", serif;
}

body {
    background-color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400; 
    line-height: 1.65;
    padding: 0 0 2rem 0;
    text-shadow: 0 0 4px rgba(196, 155, 77, 0.4); 
    
}

h1, h2, h3 {
    color: var(--color-accent);
    font-family: var(--font-header);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    line-height: 1.4;
    
}

h4 {
  font-family:var(--font-header);
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 400;
  margin-bottom: 12px;
}

img {
  border-radius: 12px;
}

/* Unvisited link (default state) */
a:link {
  color: var(--color-accent); 
}

/* Visited link (already clicked) */
a:visited {
  color: #707d6c; 
}

/* Hover state (mouse pointer is over it) */
a:hover {
  color: #A3B19B; 
}

/* Active state (the exact moment it is clicked) */
a:active {
  color: var(--color-accent); 
}
/* --- Forces subpages to display instantly, bypassing all layout delays --- */
.content.always-visible,
.content.always-visible .main-layout,
.content.always-visible .tab-header,
.content.always-visible main,
.content.always-visible main a,
.content.always-visible main .CR-section-container,
.content.always-visible main .footer {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition-delay: 0s !important; /* Overrides the 2s pause timer */
}

.hero{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; 

  display: flex;
  flex-direction: column;
  justify-content:center;
  align-items: center;
  
  background-color: var(--color-bg);
  z-index: 67;
  margin: 0;
  transition: opacity 1s ease, visibility 1s ease;
}
.poem {
  display: block;
  margin:0;
}
.poem span {
    display: block;
    opacity: 0;
    text-align: center;
    margin-bottom: 1em;
    margin-top: 1em;
    text-shadow: 0 0 8px rgba(196, 155, 77, 0.4); /* muted gold glow */
    animation: fadeIn 2s  ease forwards;
}

.hero.hidden {
  opacity:0;
  visibility: hidden;
  pointer-events: none;
}

.poem span:nth-child(1) { animation-delay: 0s; }
.poem span:nth-child(2) { animation-delay: 2.5s; }
.poem span:nth-child(3) { animation-delay: 5s; }
.poem span:nth-child(4) { animation-delay: 7.5s; }

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

.skip-hint {
  position: absolute;
  bottom: 2.5rem;               
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: #7a6c58;              
  opacity: 0.5;
  letter-spacing: 0.05em;
}

.main-layout {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
  transition-delay: 0s;      
}


.welcome {
  margin-top: 2em;
  text-align: center; 
  margin-bottom: 2rem;
}

.content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
  padding: 0 0 2rem 0;
}

.content.visible {
  opacity: 1;
  visibility: visible;
}

.content.visible .main-layout {
  opacity: 1;
  visibility: visible;
  transition-delay: 1s;       
}

.button-style, button {
  display: block;       
  margin: 0 auto;       
  width: max-content;
  background-color: var(--color-accent); 
  color:var(--color-bg);             
  padding: 10px 20px;        /* Spacing inside the button */
  border: none;              /* Removes the default ugly border */
  border-radius: 5px;        /* Rounds the corners slightly */
  font-size: 16px;           
  cursor: pointer;           /* Changes mouse cursor to a pointing hand */
  text-decoration: none;     /* Removes underline if using an <a> tag */

}

.button-style:visited, button:visited {
  color: var(--color-bg); 
}

.button-style:hover, button:hover {
  background-color:#A3B19B; 
}

.button-style:link, button:link {
  color: var(--color-bg); 
}

.footer{
  margin-top: 2em;
  margin-bottom: 2em;
  text-align: center;
}

.tab-header,
main {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
  transition-delay: 0s; /* Fallback default state */
}


.content.visible .tab-header,
.content.visible main {
  opacity: 1;
  visibility: visible;
  transition-delay: 1s; /* Holds back the rest of the site for 2 seconds */
}

/* --NAVIGATION--------------------------------------------*/
.tab-header {
  background-color: var(--color-accent); 
  width: 100%;
  padding-top: 12px;       
  padding-left: 2rem;      /* body padding */
  padding-right: 2rem;
  box-sizing: border-box;

  display:flex; /*FLEX BOX!! */
  align-items: flex-end;
}

.tab-header h1 {
  color: var(--color-bg);
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 32px 8px 0;
  white-space: nowrap;
  line-height: 1;
}

.navigation {
  display: flex;
}
.navigation ul {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.navigation li{
  padding: 0;
  margin: 0;
  display: flex;
}

.navigation a:link, .navigation a:visited{
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration:none;
  padding: 8px 20px;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;

  background-color: rgba(255, 255, 255, 0.15);
   color: #d1ebd6 !important;
}

.navigation a:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--color-bg) !important;
}

.navigation a.active, .navigation a.active:hover, .navigation a.active:visited {
  background-color: var(--color-bg) !important;
  color: var(--color-text) !important;
  font-weight: 500;
  padding-bottom: 9px;
  position: relative;
  z-index: 1;
}
/* -- NAVIGATION (END) -------------------------------------*/

/* --CURRENTLY READING--------------------------------------------*/

.CR-section-container { /* Using display:flex sets up a flex box. Now elements in the flexbox are aligned to notebook */
  display:flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 2rem auto;
}

.CR-section-container h2 {
  margin-bottom: 1rem;
}

.currently-reading{
  display:flex;
  gap: 32px;
  max-width: 650px;
  background-color: rgba(255, 255, 255, 0.5); /* #f4ecd0;*/
  padding: 32px;
  box-sizing: border-box;
  text-shadow: none;

  border: 1px solid rgba(46, 111, 64, 0.15);
  border-radius: 12px;

  filter: drop-shadow(2px 6px 12px rgba(40, 30, 10, 0.04)); 

  transform: rotate(-1.5deg);               /* Tilts the paper slightly to the left */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.currently-reading:hover {
  transform: rotate(-0.5deg) translateY(-4px); /* straightens slightly and lifts up */
  filter: drop-shadow(4px 12px 20px rgba(40, 30, 10, 0.12)) 
          drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.06)); /* Deepens shadow as it lifts */
}

.CR-book-wrapper{
  flex-shrink:0;
  width: 160px;
  display: flex;
  align-items: center;
}

.book-cover{
  width: 100%;
  height: auto;
  max-height: 250px;   
  object-fit: contain; 
  display: block;
  border-radius: 4px;
  box-shadow: 3px 5px 12px rgba(45, 35, 20, 0.25); /* delete?? */
}

.CR-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.CR-book-title {
  color: var(--color-text);
  font-size: 1.5rem;
  margin: 0 0 4px 0;
}

.CR-book-author {
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 16px 0;
  color: #5a4e3f; 
}

.progress-zone {
  margin-bottom: 20px;        /* Spacing before thoughts block */
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #5a4e3f;
  margin-bottom: 6px;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background-color: #ede5ca;  /* Darker paper groove color */
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-accent); 
  border-radius: 4px;
  transition: width 0.4s ease-out;
}
.progress-labels {
    justify-content: space-around;
  }

.book-thoughts h4 {
  margin-bottom: 8px;
} 

.book-thoughts p{
  background-image: linear-gradient(color-mix(in srgb, #5a4e3f 30%, transparent) 1px, transparent 1px); 
  background-size: 100% 30px;
  line-height: 30px;   
  font-size: 1.05rem;
}

@media (max-width: 520px) { /*480px captures almost all mobiles in portrait*/
  .currently-reading {
    flex-direction: column;     /* Stacks cover on top of text on mobile */
    align-items: center;
    text-align: center;
    padding:24px;
    gap: 20px;
  }
  .CR-book-wrapper {
    width: 130px;               /* Slightly bigger cover when centered alone */
  }
}

/* --CURRENTLY READING (END) -------------------------------------*/

/* READING JOURNAL -----------------------------------------------*/
.reading-journal-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto 0 auto;
}

.search-container {
  width: 100%;
  max-width: 500px;
  position: relative;
}

#journal-search {
  width: 100%;
  font-family: 'Lora', serif;
  font-size: 16px;
  padding: 12px 20px;
  border: 1px solid rgba(46, 111, 64, 0.3);
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.5);
  color: #232B25;
  box-sizing:border-box;
}

#journal-search:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #FFFFFF;
  box-shadow: 0 0 8px rgba(46, 111, 64, 0.15);
}

.search-error-msg {
  color: #C87A53;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
  display: none;
}

.journal-interface {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}

.nav-arrow-btn {
  background: none;
  border: 1px solid rgba(46, 111, 64, 0.4);
  color: #2E6F40;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 36px;
}

.nav-arrow-btn:hover {
  background-color: var(--color-accent);
  color: #FDFBD4;
}

.journal-view-window {
  flex-grow: 1;
  max-width: 900px;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.journal-card {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(46, 111, 64, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(35, 43, 37, 0.06);
  padding: 40px;
  display: flex;
  gap: 40px;
  box-sizing: border-box;
  width: 100%;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

#journal-card-container {
  touch-action: pan-y; /*NTS: Should prevent browser from shifting the whole page vertically on smaller screens */
}

@media (max-width: 600px) { /* For smaller screens */
  .journal-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }
  .journal-interface {gap: 5px}
  .journal-card-wrapper {
    width: 160px;
    margin-bottom: 15px;
  }
  .featured-content-layout {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .featured-review-divider {
    margin: 0 auto 16px auto;
  }
  .featured-badge {
    left: 50%;
    transform: translateX(-50%);
  }
  .shelf-row.mixed-library {
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 10px;
  }
  .tab-header {
    padding: 12px 0 8px 0;
    display: flex;
    flex-direction:column;
    align-items: center;
    gap: 8px;
    background-color: var(--color-accent);
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(46, 111, 64, 0.1);
  }
  .tab-header h1 {
    font-size: 18px;
    margin: 0;
    letter-spacing: 0.05em;
    font-family: var(--font-header);
    color: #FAF6E8 !important;
  }
  .navigation {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
  }
  .navigation a {
    background: none !important;
    border: none !important;
    padding: 4px 2px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(250, 246, 232, 0.65);
    box-shadow: none !important;
    border-radius: 0;
    white-space: nowrap;
    transition: color 0.2s ease;
  }

  .navigation a.active {
    color: #FAF6E8;
    font-weight: 700;
    border-bottom: 2px solid #D4A373 !important;
  }

  .navigation::-webkit-scrollbar {
    display: none;
  }

  .navigation ul {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 0 20px 4px 20px;
    margin: 0;
  }
}

.journal-card-wrapper {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  align-items: center;
}

.journal-card-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.15);
}

.journal-details {
  flex-grow: 1;
}

.journal-details h2 {
  font-family: 'DM Serif Display', serif;
  color: var(--color-accent);
  font-size: 28px;
  margin: 0 0 4px 0;
}

.journal-author {
  font-style: italic;
  color: #555;
  margin: 0 0 16px 0;
}

.journal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.journal-badge {
  background-color: #E2EFCB;
  color: var(--color-accent);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.journal-stars {
  color: #D4A373;
  font-size: 18px;
  display: inline-block;
}

.journal-thoughts-box {
  border-top: 1px solid rgba(46, 111, 64, 0.1);
  padding-top: 15px;
}

.journal-thoughts-box h4 {
  font-family: 'DM Serif Display', serif;
  color: #2E6F40;
  margin: 0 0 8px 0;
  font-size: 18px;
}

.journal-thoughts-box p {
  white-space: pre-line;
  line-height: 1.65;
  margin: 0;
  font-size: 15px;
  color: #333;
}

.slide-out-left {
  transform: translateX(-120%);
  opacity: 0;
}

.slide-out-right {
  transform: translateX(120%);
  opacity: 0;
}

.slide-in-right {
  animation: slideInRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideInRight {
  from {transform: translateX(120%); opacity: 0; }
  to {transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from {transform: translateX(-120%); opacity: 0; }
  to {transform: translateX(0); opacity: 1; }
}
/* READING JOURNAL END-----------------------------------------------*/
/* BOOKSHELF - TBR SHELF -----------------------------------------------*/
.shelf-label-tent {
  position: relative;
  width: 110px;
  height: 40px;
  margin: 0 auto -10px 40px;
  perspective: 600px;
  transform-style: preserve-3d;
}

.shelf-label {
  display: inline-block;
  position: relative;
  background-color:  #FFFDF0;
  border: 1px solid rgba(46, 111, 64, 0.15);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  font-family: 'Lora', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  margin: 0 0 10px 24px;
  color: var(--color-accent);
  z-index: 5;
}

.bookshelf-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
  width: 100%;
  max-width: 800px;
  margin: 3rem auto 0 auto;
  box-sizing: border-box;
}

.bookshelf {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.shelf-row.mixed-library {
  display: flex;
  align-items: flex-end;
  padding: 50px 25px 13px 25px;
  border-top: 10px solid #6d4c41;
  border-left: 14px solid #5d4037;
  border-right: 14px solid #5d4037;
  border-bottom: 16px solid #4e342e;
  background-color: #2b1d19;
  border-radius: 6px;
  gap: 12px;
  overflow-y: visible;
  overflow-x: auto;
  scrollbar-width: thin;
}
.shelf-row.mixed-library::-webkit-scrollbar {
  height: 8px;
}
.shelf-row.mixed-library::-webkit-scrollbar-track {
  border-radius: 4px;
  background:  #1e1412;
}
.shelf-row.mixed-library::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background:   #6d4c41;
}
.shelf-row.mixed-library::-webkit-scrollbar-thumb:hover {
  border-radius: 4px;
  background: #8d6e63;
}

.shelf-book.mixed-style {
  position: relative;
  display: flex;
  height: 220px;
  width: 45px;
  cursor: pointer;
  margin-bottom: -4px;
  border-radius: 4px 4px 0 0;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
  z-index: 2;
  overflow: hidden;
}

.book-spine-view {
  width: 45px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px 0 0 0;
  box-shadow: inset 3px 0 5px rgba(0, 0, 0, 0.15), 2px 0 5px rgba(0, 0, 0, 0.15);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.spine-text {
  font-family: 'DM Serif Display', serif;
  color: #FFFFFF;
  font-size: 14px;
  white-space: nowrap;
  transform: rotate(-90deg);
  transform-origin: center;
  letter-spacing: 0.05em;
}


.book-cover-view {
  width: 145px;
  height: 100%;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.book-cover-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 4px 0 0;
}

.shelf-book.mixed-style:hover {
  width: 145px;
  transform: translateY(-15px);
  filter: drop-shadow(5px 12px 16px rgba(0, 0, 0, 0.6));
  z-index: 10;
}

.shelf-book.mixed-style:hover .book-cover-view {
  opacity: 1;
  transform: translateX(0) 
}

.shelf-book.mixed-style:hover .book-spine-view {
  opacity: 0;
  width: 0px;
}
.shelf-book.mixed-style.on-stand {
  width: 145px;
  overflow: visible;
}
.shelf-book.mixed-style.on-stand .book-cover-view {
  opacity: 1;
  transform: translateX(0);
}
.shelf-book.mixed-style.on-stand:hover {
  transform: translateY(-10px) scale(1.02);
  width: 145px;
}

/* BOOKSHELF - FEATURED -----------------------------------------------*/
.featured-book {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(46, 111, 64, 0.1);
  border-radius: 12px;
  padding: 40px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 24px rgba(35, 43, 37, 0.06);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 30px;
  background-color: #D4A373;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 8px rgba(212, 163, 115, 0.2);
}

.featured-content-layout {
  display: flex;
  gap: 40px;
  align-items: center;
}

.featured-cover-frame {
  flex-shrink: 0;
  width: 180px;
}

.featured-cover-frame img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.15);
}

.featured-text-details {
  flex-grow: 1;
}
.featured-text-details h2 {
  font-family: 'DM Serif Display', serif;
  color: var(--color-accent);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.featured-author {
  font-style: italic;
  color: #555;
  margin: 0 0 16px 0;
  font-size: 16px;
}

.featured-review-divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
  opacity: 0.2;
  margin-bottom: 16px;
}

.featured-note {
  line-height: 1.65;
  margin: 0;
  color: #333;
}
/* LOUNGE -----------------------------------------------*/
.workspace-grid-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  width: 100%;
  max-width: 1100px;
  margin: 3rem auto 0 auto;
  box-sizing: border-box;
}

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

.workspace-card {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(46, 111, 64, 0.15);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(35, 43, 37, 0.06);
  box-sizing: border-box;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.workspace-card  h3 {
  font-family: var(--font-header);
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 20px 0;
}

.controller-box {
  padding: 12px;
  display: flex;
  justify-content: center;
}
/* LOUNGE - "DARK" MODE -----------------------------------------------*/
#dim-lights-btn, .step-btn, .timer-btn {
  font-family: var(--font-body);
  background-color: #FFFFFF;
  color: var(--color-accent);
  border: 1px solid rgba(46, 111, 64, 0.3);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

#dim-lights-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 4px 12px rgba(46, 111, 64, 0.15);
}

body.espresso-dark-mode {
  background-color: #1E1A17 !important;
  color: #FAF6E8 !important;
}
body.espresso-dark-mode .tab-header {
  background-color: #1E1A17;
}
body.espresso-dark-mode .workspace-card {
  background-color: rgba(28, 24, 22, 0.85);
  border-color: rgba(212, 163, 115, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
body.espresso-dark-mode .workspace-card h3, body.espresso-dark-mode .timer-display {
  color: #D4A373 !important;
}
body.espresso-dark-mode .duration-label, body.espresso-dark-mode .sound-row label {
  color: #c9c1ad !important;
}
body.espresso-dark-mode .step-btn, body.espresso-dark-mode .timer-btn, body.espresso-dark-mode #dim-lights-btn {
  background-color: #2A2420;
  border-color: rgba(212, 163, 115, 0.2);
  color: #D4A373;
}
body.espresso-dark-mode .timer-btn.btn-active, body.espresso-dark-mode .timer-btn:hover, body.espresso-dark-mode #dim-lights-btn:hover {
  background-color: #D4A373;
  color: #1E1A17;
  border-color: #D4A373;
}

body.espresso-dark-mode .media-input-bar input, body.espresso-dark-mode .scratchpad-deck textarea {
  background-color: #14110F;
  border-color: rgba(212, 163, 115, 0.15);
  color: #FAF6E8;
}

body.espresso-dark-mode .timer-circle-fill {
  stroke:#D4A373;
}
body.espresso-dark-mode .btn-primary {
  background-color: #D4A373;
  color: #1E1A17;
}
body.espresso-dark-mode .tab-header h1,
body.espresso-dark-mode .navigation a:hover, body.espresso-dark-mode .navigation a.active, 
body.espresso-dark-mode .navigation a.active:hover, 
body.espresso-dark-mode .navigation a.active:visited,
body.espresso-dark-mode .navigation a:link, body.espresso-dark-mode .navigation a:visited,
body.espresso-dark-mode .navigation, body.espresso-dark-mode .footer
 {
  background-color: #1E1A17 !important;
  color: #1E1A17 !important;
  text-shadow: 0 0 4px #1E1A17; 
}


/* LOUNGE - POMODORO -----------------------------------------------*/
.timer-visual-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px auto;
}

.timer-ring-track {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-svg {
  width: 100%;
  height: 100%;
}

.timer-circle-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.timer-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-display {
  font-family: var(--font-header);
  font-size: 40px;
  color: var(--color-accent);
  line-height: 1;
}

.timer-session-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8c8269;
  margin-top: 6px;
}

.timer-controls-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.timer-btn.btn-active, .timer-btn:hover {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

.timer-duration-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px dashed rgba(140, 130, 105,0.2);
  padding-top: 16px;
}

.duration-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.duration-label {
  font-size: 13px;
  font-weight: 600;
  color: #555555;
}

.stepper-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-btn {
  padding: 0;
  justify-content:center;
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

.step-value {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

/* LOUNGE - SOUNDSCAPE -----------------------------------------------*/

.soundscape-mixer .sound-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.soundscape-mixer .sound-row:last-child {
  margin-bottom: 0;
}
.sound-row label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.sound-row input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(46, 111, 64, 0.15);
  cursor: pointer;
  outline: none;
  appearance: none;
}

.sound-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.sound-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* LOUNGE - MEDIA CONTROL  -----------------------------------------------*/
.media-input-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.media-input-bar input {
  flex-grow: 1;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(46, 111, 64, 0.15);
  border-radius: 6px;
  background-color: #FFFFFF;
}

.media-input-bar input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.btn-primary {
  font-family: var(--font-body);
  background-color: var(--color-accent);
  color: #FFFFFF;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.media-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1e1412;
  border-radius: 6px;
  overflow: hidden;
}

.fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  box-sizing: border-box;
  color: #8c8269;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
}

#global-iframe-player {
  display: none;
  width: 100%;
  height: 100%;
}

/* LOUNGE - SCRATCHPAD  -----------------------------------------------*/
.scratchpad-deck textarea {
  width: 100%;
  height: 200px;
  border: 1px solid rgba(46, 111, 64, 0.15);
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  background-color: #FFFFFF;
  color: #232B25;
  resize: vertical;
}

.scratchpad-deck textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(46, 111, 64, 0.1);
}

@media (max-width: 768px) {
  .workspace-grid-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }
}