/* Main CottagOS Styles */

/* Color Variables */
:root {
  /* Primary Colors */
  --cottage-beige: #F5E6D3;
  --cottage-sage: #9CAF88;
  --cottage-rose: #E7C4B5;
  --cottage-lavender: #D3C0E6;
  
  /* Accent Colors */
  --cottage-goldenrod: #E9B44C;
  --cottage-moss: #6D8B74;
  --cottage-raspberry: #C45C66;
  
  /* Text Colors */
  --cottage-sepia: #4A3F35;
  --cottage-softblack: #2E2E2E;
  
  /* UI Colors */
  --window-border: #9CAF88;
  --window-titlebar: #E7C4B5;
  --window-background: rgba(245, 230, 211, 0.95);
  --taskbar-background: rgba(245, 230, 211, 0.85);
  
  /* Animation Timings */
  --hover-transition: 0.2s ease-out;
  
  /* Default Font */
  font-family: 'Quicksand', sans-serif;
}

/* THEME: Meadow (default) */
[data-theme="meadow"] {
  --cottage-beige: #F5E6D3;
  --cottage-sage: #9CAF88;
  --cottage-rose: #E7C4B5;
  --cottage-lavender: #D3C0E6;
  --cottage-goldenrod: #E9B44C;
  --cottage-moss: #6D8B74;
  --cottage-raspberry: #C45C66;
  --window-titlebar: #E7C4B5;
  --window-background: rgba(245, 230, 211, 0.95);
  --taskbar-background: rgba(245, 230, 211, 0.85);
  --cottage-sepia: #4A3F35;
}

/* THEME: Lavender */
[data-theme="lavender"] {
  --cottage-beige: #F3EAFB;
  --cottage-sage: #B6B6D8;
  --cottage-rose: #E6D3E6;
  --cottage-lavender: #BFAEE0;
  --cottage-goldenrod: #E9B44C;
  --cottage-moss: #A3A3C2;
  --cottage-raspberry: #B97EBB;
  --window-titlebar: #BFAEE0;
  --window-background: rgba(243, 234, 251, 0.97);
  --taskbar-background: rgba(243, 234, 251, 0.90);
  --cottage-sepia: #5A4A6B;
}

/* THEME: Sunset */
[data-theme="sunset"] {
  --cottage-beige: #FFE5D0;
  --cottage-sage: #F7B267;
  --cottage-rose: #F4845F;
  --cottage-lavender: #F27059;
  --cottage-goldenrod: #F7B267;
  --cottage-moss: #F25C54;
  --cottage-raspberry: #A53860;
  --window-titlebar: #F4845F;
  --window-background: rgba(255, 229, 208, 0.97);
  --taskbar-background: rgba(255, 229, 208, 0.90);
  --cottage-sepia: #6B3A2E;
}

/* NIGHT MODE */
body.night-mode {
  --cottage-beige: #23212B;
  --cottage-sage: #3A4D39;
  --cottage-rose: #4B3B47;
  --cottage-lavender: #3B3553;
  --cottage-goldenrod: #BFAE80;
  --cottage-moss: #2C3A2F;
  --cottage-raspberry: #6B3A4A;
  --window-titlebar: #3B3553;
  --window-background: rgba(35, 33, 43, 0.97);
  --taskbar-background: rgba(35, 33, 43, 0.60);
  --cottage-sepia: #E6E1D3;
  background-image: url('../assets/wallpapers/cherry-blossom-night.gif') !important;
  background-size: cover;
  background-position: center;
  transition: background-image 5s ease;
}

body.night-mode .window-content,
body.night-mode .cottage-window,
body.night-mode .taskbar,
body.night-mode .topbar,
body.night-mode .desktop,
body.night-mode .settings-container {
  background: transparent !important;
  color: var(--cottage-sepia) !important;
}

body.night-mode .window-titlebar {
  background: var(--window-titlebar) !important;
  color: var(--cottage-sepia) !important;
}

body.night-mode .taskbar {
  background: var(--taskbar-background) !important;
}

body.night-mode .desktop-icon .icon-label {
  background: rgba(59, 53, 83, 0.85) !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

body.night-mode .desktop-icon .icon-img {
  background-color: rgba(59, 53, 83, 0.85) !important;
  border-color: #bfae80 !important;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: inherit;
  color: var(--cottage-sepia);
  background-color: var(--cottage-beige);
  cursor: url('../assets/cursors/leaf-cursor.png'), auto;
}

/* Custom cursor for clickable elements */
a, button, .desktop-icon, .window-controls button, .resize-handle, .taskbar-app {
  cursor: url('../assets/cursors/flower-cursor.png'), pointer !important;
}

/* Day Cycle Backgrounds */
body {
  background-image: url('../assets/wallpapers/cherry-blossom-day.gif');
  background-size: cover;
  background-position: center;
  transition: background-image 5s ease;
}

body.night-mode {
  --cottage-beige: #23212B;
  --cottage-sage: #3A4D39;
  --cottage-rose: #4B3B47;
  --cottage-lavender: #3B3553;
  --cottage-goldenrod: #BFAE80;
  --cottage-moss: #2C3A2F;
  --cottage-raspberry: #6B3A4A;
  --window-titlebar: #3B3553;
  --window-background: rgba(35, 33, 43, 0.97);
  --taskbar-background: rgba(35, 33, 43, 0.60);
  --cottage-sepia: #E6E1D3;
  background-color: #23212B !important;
  color: var(--cottage-sepia) !important;
  background-image: url('../assets/wallpapers/cherry-blossom-night.gif') !important;
  background-size: cover;
  background-position: center;
  transition: background-image 5s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
}

.handwritten {
  font-family: 'Nanum Pen Script', cursive;
}

.monospace {
  font-family: 'Fira Code', monospace;
}

/* Font Selection */
:root[data-font="quicksand"] {
  font-family: 'Quicksand', sans-serif;
}

:root[data-font="cormorant"] {
  font-family: 'Cormorant Garamond', serif;
}

:root[data-font="nanum"] {
  font-family: 'Nanum Pen Script', cursive;
}

/* CottagOS Container */
.cottage-os {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Desktop */
.desktop {
  width: 100%;
  height: calc(100% - 90px);
  position: relative;
  overflow: hidden;
  padding: 20px;
  margin-top: 40px; /* Space for topbar */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

.desktop-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

/* Desktop Icons */
.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  margin: 15px;
  position: relative;
  cursor: pointer;
  transition: transform var(--hover-transition);
  user-select: none;
}

.desktop-icon.draggable {
  position: absolute !important;
  z-index: 10;
}

.desktop-icon:hover {
  transform: translateY(-5px);
}

.icon-img {
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 2px solid var(--cottage-sage);
  margin-bottom: 8px;
  transition: all var(--hover-transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.desktop-icon:hover .icon-img {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--cottage-goldenrod);
}

.icon-img img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.icon-label {
  text-align: center;
  color: var(--cottage-sepia);
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.5);
  padding: 3px 6px;
  border-radius: 10px;
}

/* Topbar */
.topbar {
  height: 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(231, 196, 181, 0.65);
  background-image: url('../assets/textures/linen-texture.png');
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  border-bottom: 2px solid var(--cottage-sage);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  backdrop-filter: blur(8px) saturate(1.2);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-menu {
  display: flex;
  gap: 20px;
}

.topbar-menu-item {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--cottage-sepia);
  cursor: pointer;
  position: relative;
}

.topbar-menu-item:hover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--cottage-goldenrod);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-icon {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Taskbar */
.taskbar {
  height: 50px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(245, 230, 211, 0.60);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  border-top: 2px solid var(--cottage-rose);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px) saturate(1.2);
  z-index: 1000;
}

/* Taskbar Left (OS Logo) */
.taskbar-left {
  display: flex;
  align-items: center;
}

.os-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-flower {
  position: relative;
  width: 24px;
  height: 24px;
  animation: spin-slow 8s linear infinite;
}

.petal {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--cottage-rose);
  border-radius: 50% 50% 0 50%;
  transform-origin: bottom right;
}

.petal:nth-child(1) {
  top: 2px;
  left: 2px;
  transform: rotate(0deg);
}

.petal:nth-child(2) {
  top: 2px;
  right: 2px;
  transform: rotate(90deg);
}

.petal:nth-child(3) {
  bottom: 2px;
  right: 2px;
  transform: rotate(180deg);
}

.petal:nth-child(4) {
  bottom: 2px;
  left: 2px;
  transform: rotate(270deg);
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--cottage-goldenrod);
  border-radius: 50%;
}

.os-logo span {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--cottage-sepia);
}

/* Taskbar Center (Open Apps) */
.taskbar-center {
  display: flex;
  gap: 10px;
}

.taskbar-app {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--cottage-sage);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.taskbar-app:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

.taskbar-app.active {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--cottage-goldenrod);
}

.taskbar-app img {
  width: 24px;
  height: 24px;
}

.taskbar-app::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cottage-goldenrod);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.taskbar-app.active::after {
  opacity: 1;
}

/* Taskbar Right (System Tray) */
.taskbar-right {
  display: flex;
  align-items: center;
}

.system-tray {
  display: flex;
  gap: 15px;
  align-items: center;
}

.tray-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clock Styling */
.pocket-watch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--cottage-goldenrod);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cottage-sepia);
  position: relative;
  font-size: 10px;
  font-weight: bold;
  color: var(--cottage-sepia);
}

.pocket-watch::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--cottage-goldenrod);
  border-radius: 50%;
  border: 1px solid var(--cottage-sepia);
}

/* Volume Control */
.pitcher {
  width: 25px;
  height: 25px;
  background-color: var(--cottage-lavender);
  border-radius: 5px 5px 10px 10px;
  position: relative;
  overflow: hidden;
}

.pitcher::before {
  content: '';
  position: absolute;
  top: 3px;
  right: -3px;
  width: 8px;
  height: 10px;
  border: 2px solid var(--cottage-lavender);
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.pitcher-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-color: rgba(173, 216, 230, 0.6);
}

/* Theme Toggle */
.theme-toggle {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-color: var(--cottage-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.sun-moon {
  width: 20px;
  height: 20px;
  background-color: var(--cottage-goldenrod);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.theme-toggle.night .sun-moon {
  background-color: var(--cottage-lavender);
  box-shadow: inset -3px 0 0 5px var(--cottage-beige);
  transform: rotate(-45deg);
}

/* Window Styles */
.cottage-window {
  position: absolute;
  background: var(--window-background);
  border: 2px solid var(--window-border);
  border-radius: 15px;
  min-width: 350px;
  min-height: 250px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: opacity 0.2s ease, filter 0.2s ease;
  z-index: 100;
  top: 80px;
  left: 80px;
  color: var(--cottage-sepia);
}

.cottage-window:not(.active) {
  opacity: 0.8;
  filter: grayscale(20%) blur(1px);
}

.window-titlebar {
  height: 35px;
  background: var(--window-titlebar);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  cursor: move;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  background-image: url('../assets/textures/linen-texture.png');
  background-size: cover;
  border-bottom: 2px solid var(--window-border);
  color: var(--cottage-sepia);
}

.window-title {
  color: var(--cottage-sepia);
  font-size: 16px;
}

.window-controls {
  display: flex;
  gap: 10px;
}

.window-controls button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cottage-sepia);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.window-minimize {
  background-color: var(--cottage-sage) !important;
}

.window-close {
  background-color: var(--cottage-raspberry) !important;
}

.window-controls button:hover {
  transform: scale(1.1);
}

.window-content {
  padding: 15px;
  height: calc(100% - 35px);
  overflow: auto;
}

.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  cursor: nwse-resize;
  background-image: url('../assets/icons/resize-handle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
}

/* SYNEVA Styling */
.syneva-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--cottage-beige);
  background-image: url('../assets/textures/paper-texture.png');
  border-radius: 0 0 10px 10px;
}

.syneva-output {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  font-family: 'Fira Code', monospace;
  color: var(--cottage-moss);
  line-height: 1.5;
}

.syneva-output p {
  margin-bottom: 10px;
}

.typing-indicator {
  padding: 8px;
  color: var(--cottage-moss);
  font-family: 'Nanum Pen Script', cursive;
  font-size: 16px;
  text-align: center;
  border-top: 1px dashed var(--cottage-sage);
  background-color: rgba(255, 255, 255, 0.5);
  display: none;
}

.syneva-input-container {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--cottage-sage);
  padding: 10px 15px;
}

.quill-icon {
  margin-right: 10px;
  font-size: 18px;
}

.syneva-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 18px;
  color: var(--cottage-sepia);
  outline: none;
}

.syneva-link {
  text-align: center;
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-top: 1px dashed var(--cottage-sage);
  font-size: 12px;
}

.syneva-link a {
  color: var(--cottage-moss);
  text-decoration: none;
}

.syneva-link a:hover {
  text-decoration: underline;
  color: var(--cottage-raspberry);
}

/* Mossbell Pet (Duck) Styling */
.mossbell-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background-color: var(--cottage-beige);
  background-image: url('../assets/textures/moss-background.png');
  background-size: cover;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.pond {
  position: absolute;
  bottom: 20px;
  width: 90%;
  height: 25%;
  background: linear-gradient(to bottom, rgba(173, 216, 230, 0.7), rgba(64, 164, 223, 0.5));
  border-radius: 50% / 20%;
  box-shadow: 0 0 10px rgba(173, 216, 230, 0.4);
  overflow: hidden;
}

.pond::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/textures/water-texture.png');
  opacity: 0.3;
  animation: drift 20s linear infinite;
}

.lily-pad {
  position: absolute;
  width: 40px;
  height: 35px;
  background-color: var(--cottage-sage);
  border-radius: 50%;
  bottom: 30px;
}

.lily-pad:nth-child(1) {
  left: 20%;
  transform: scale(0.8);
}

.lily-pad:nth-child(2) {
  left: 60%;
  transform: scale(1.2);
}

.mossbell-pet {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 20px 0;
  z-index: 5;
}

.duck-body {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 80px;
  height: 60px;
  background-color: #FFFFCC;
  border-radius: 60% 60% 50% 50%;
  transform-origin: bottom center;
  z-index: 3;
  transition: all 0.5s ease;
}

.duck-head {
  position: absolute;
  top: -30px;
  left: 50px;
  width: 50px;
  height: 40px;
  background-color: #FFFFCC;
  border-radius: 60% 80% 60% 70%;
  z-index: 4;
  transition: all 0.5s ease;
}

.duck-beak {
  position: absolute;
  top: 15px;
  right: -10px;
  width: 30px;
  height: 15px;
  background-color: var(--cottage-goldenrod);
  border-radius: 50% 50% 50% 50%;
  transform: rotate(10deg);
  z-index: 4;
}

.duck-eye {
  position: absolute;
  top: 8px;
  right: 15px;
  width: 8px;
  height: 8px;
  background-color: var(--cottage-softblack);
  border-radius: 50%;
  z-index: 5;
}

.duck-wing {
  position: absolute;
  top: 20px;
  left: -5px;
  width: 30px;
  height: 25px;
  background-color: #FFEE99;
  border-radius: 60% 50% 50% 40%;
  transform: rotate(-10deg);
  transform-origin: right center;
  z-index: 2;
  transition: transform 0.3s ease;
}

.duck-tail {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 25px;
  height: 15px;
  background-color: #FFEE99;
  border-radius: 30% 50% 50% 30%;
  transform: rotate(-15deg);
  z-index: 1;
}

.duck-feet {
  position: absolute;
  bottom: -10px;
  left: 35px;
  width: 15px;
  height: 10px;
  background-color: var(--cottage-goldenrod);
  border-radius: 50% 50% 0 0;
  z-index: 2;
  transform: rotate(-10deg);
}

.duck-feet::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -15px;
  width: 15px;
  height: 10px;
  background-color: var(--cottage-goldenrod);
  border-radius: 50% 50% 0 0;
  transform: rotate(-10deg);
}

/* Duck animations */
.duck-swimming .duck-body {
  transform: translate(10px, 5px) rotate(5deg);
  animation: float 3s ease-in-out infinite;
}

.duck-swimming .duck-head {
  transform: rotate(5deg);
  animation: float 3s ease-in-out infinite reverse;
}

.duck-swimming .duck-wing {
  animation: flutter 2s ease-in-out infinite;
}

.duck-sleeping .duck-body {
  transform: rotate(-5deg);
}

.duck-sleeping .duck-head {
  transform: rotate(-20deg) translate(0, 5px);
}

.duck-sleeping .duck-eye {
  height: 1px;
  transform: rotate(-10deg);
}

.duck-excited .duck-body {
  transform: translate(0, -5px);
  animation: bounce-gentle 0.5s ease-in-out infinite;
}

.duck-excited .duck-head {
  transform: translate(0, -5px) rotate(5deg);
  animation: bounce-gentle 0.5s ease-in-out infinite reverse;
}

.duck-excited .duck-wing {
  transform: rotate(20deg);
  animation: flutter 0.5s ease-in-out infinite;
}

.duck-hungry .duck-body {
  transform: rotate(5deg);
}

.duck-hungry .duck-head {
  transform: translate(5px, 0) rotate(15deg);
}

.duck-hungry .duck-beak {
  animation: flutter 1s ease-in-out infinite;
}

.mood-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 18px;
}

.status-bubbles {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.status-bubble {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--cottage-sage);
}

.status-bubble.active {
  background-color: var(--cottage-goldenrod);
  animation: pulse-gentle 2s infinite;
}

.hunger-meter {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hunger-label {
  font-family: 'Nanum Pen Script', cursive;
  font-size: 18px;
  margin-bottom: 5px;
}

.acorn-bowl {
  display: flex;
  gap: 5px;
  background-color: var(--cottage-sage);
  border-radius: 10px;
  padding: 5px 10px;
}

.acorn {
  width: 15px;
  height: 20px;
  background-color: var(--cottage-goldenrod);
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: opacity 0.3s ease;
}

.acorn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 8px;
  background-color: var(--cottage-sepia);
  border-radius: 8px 8px 0 0;
}

.happiness-meter {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.happiness-label {
  font-family: 'Nanum Pen Script', cursive;
  font-size: 18px;
  margin-bottom: 5px;
}

.flower-row {
  display: flex;
  gap: 5px;
  background-color: var(--cottage-lavender);
  border-radius: 10px;
  padding: 5px 10px;
}

.flower {
  width: 15px;
  height: 15px;
  position: relative;
  transition: opacity 0.3s ease;
}

.flower::before {
  content: '❀';
  font-size: 15px;
  color: var(--cottage-rose);
}

.energy-meter {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.energy-label {
  font-family: 'Nanum Pen Script', cursive;
  font-size: 18px;
  margin-bottom: 5px;
}

.sunbeam-row {
  display: flex;
  gap: 5px;
  background-color: var(--cottage-goldenrod);
  border-radius: 10px;
  padding: 5px 10px;
}

.sunbeam {
  width: 15px;
  height: 15px;
  position: relative;
  transition: opacity 0.3s ease;
}

.sunbeam::before {
  content: '☀';
  font-size: 15px;
  color: #FFEE99;
}

.pet-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.pet-controls button {
  background-color: var(--cottage-sage);
  border: none;
  border-radius: 15px;
  padding: 8px 15px;
  color: white;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pet-controls button:hover {
  background-color: var(--cottage-moss);
  transform: translateY(-2px);
}

.food-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
  display: none;
}

.food-options.visible {
  display: flex;
}

.food-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--cottage-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.food-option:hover {
  transform: scale(1.1);
}

.food-option.bread::before {
  content: '🍞';
  font-size: 20px;
}

.food-option.berries::before {
  content: '🫐';
  font-size: 20px;
}

.food-option.corn::before {
  content: '🌽';
  font-size: 20px;
}

.play-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
  display: none;
}

.play-options.visible {
  display: flex;
}

.play-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--cottage-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.play-option:hover {
  transform: scale(1.1);
}

.play-option.ball::before {
  content: '🏐';
  font-size: 20px;
}

.play-option.bubbles::before {
  content: '🫧';
  font-size: 20px;
}

.play-option.music::before {
  content: '🎵';
  font-size: 20px;
}

.duck-toy {
  position: absolute;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

.duck-toy.visible {
  opacity: 1;
}

.duck-food {
  position: absolute;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

.duck-food.visible {
  opacity: 1;
}

/* Mossbell (Tamagotchi) styles */
.mossbell-container {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  height: 480px;
  width: 360px;
  background-color: #ffe44b;
  color: rgb(70, 152, 206);
  font-family: 'Syncopate', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mossbell-container header {
  margin-top: 40px;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.mossbell-container .screen {
  margin: 10px 0 30px;
  height: 40%;
  width: 50%;
  border: 3px solid rgb(210, 0, 0);
  border-radius: 10px;
  padding: 10px;
  background: #cfe4f1;
  color: #222;
  font-family: 'VCR-Mono', monospace;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  transition: 1s ease-in-out;
}
.mossbell-container .pet-container {
  height: 50%;
  width: 100%;
  display: flex;
}
.mossbell-container .center-pet {
  justify-content: center;
}
.mossbell-container .pet {
  margin: 0;
  height: 100%;
  width: 40%;
  background-image: url('../assets/graphics/pacing.gif');
  background-size: 100% 100%;
  transition: 0s;
}
.mossbell-container .pacing {
  animation: pacing 10s alternate infinite;
}
@keyframes pacing {
  0% {
    justify-content: flex-start;
  }
  50% {
    justify-content: center;
  }
  100% {
    justify-content: flex-end;
  }
}
.mossbell-container .playing {
  background-image: url('../assets/graphics/dancing.gif');
  background-size: 100% 100%;
  animation: playing 0.2s alternate infinite;
}
@keyframes playing {
  0% {
    bottom: 10px;
  }
  100% {
    bottom: 0;
  }
}
.mossbell-container .sleeping {
  background-image: url('../assets/graphics/sleeping.gif');
  background-size: 100% 100%;
}
.mossbell-container .eating {
  background-image: url('../assets/graphics/eating.gif');
  background-size: 100% 100%;
}
.mossbell-container .button-container {
  height: 10%;
  width: 50%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mossbell-container .disable-buttons {
  pointer-events: none;
}
.mossbell-container .middle-button {
  align-self: flex-end;
}
.mossbell-container button {
  height: 30px;
  width: 30px;
  border: none;
  border-radius: 50%;
  box-shadow: 4px 4px 4px rgba(0, 0, 255, 0.1);
  background-color: rgb(140, 123, 252);
  cursor: pointer;
}
.mossbell-container .button-text {
  position: absolute;
  margin-top: 7px;
  font-size: 0.7rem;
  display: none;
}
.mossbell-container button:hover + .button-text {
  display: block;
}
@media (max-width: 800px) {
  .mossbell-container .button-text {
    display: block;
  }
}

/* Mossbell Pet Styles */
.mossbell-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cottage-beige);
  background-image: url('../assets/textures/moss-background.png');
  background-size: cover;
  padding: 15px;
  font-family: var(--font-quicksand);
}

.mossbell-mood-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mood-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.1em;
}

.mood-icon {
  font-size: 1.2em;
}

.status-bars {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-bar {
  margin-bottom: 10px;
}

.status-bar .label {
  font-size: 0.9em;
  margin-bottom: 4px;
  color: var(--cottage-sepia);
}

.meter {
  display: flex;
  gap: 8px;
}

.meter > div {
  font-size: 1.2em;
  transition: opacity 0.3s ease;
}

.pet-area {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pond {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 30%;
  background: linear-gradient(to bottom, #a2d2df, #89c8d6);
  border-radius: 50% 50% 0 0;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.mossbell-pet {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  transition: all 0.5s ease;
}

.duck-body {
  position: absolute;
  width: 60px;
  height: 40px;
  background: #f4e4bc;
  border-radius: 50% 60% 50% 50%;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.duck-head {
  position: absolute;
  top: -20px;
  left: 40px;
  width: 30px;
  height: 30px;
  background: #f4e4bc;
  border-radius: 50%;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

.duck-head::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 20px;
  width: 20px;
  height: 10px;
  background: #ffa726;
  border-radius: 50% 50% 50% 50%;
  transform: rotate(30deg);
}

.duck-wing {
  position: absolute;
  top: 5px;
  left: 10px;
  width: 25px;
  height: 20px;
  background: #ede0c8;
  border-radius: 60% 50% 50% 40%;
  transform-origin: top left;
  transform: rotate(-10deg);
  transition: transform 0.3s ease;
}

.interaction-area {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.primary-actions, .secondary-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.action-options {
  display: none;
  gap: 10px;
  margin: 10px 0;
  justify-content: center;
}

.action-options.visible {
  display: flex;
}

.feed-button, .play-button, .pat-button, .sleep-button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: var(--cottage-sage);
  color: white;
  font-family: var(--font-quicksand);
  cursor: pointer;
  transition: all 0.2s ease;
}

.feed-button:hover, .play-button:hover, .pat-button:hover, .sleep-button:hover {
  background: var(--cottage-moss);
  transform: translateY(-2px);
}

.food-option, .play-option {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.food-option:hover, .play-option:hover {
  transform: translateY(-2px) scale(1.1);
}

/* Duck States */
.duck-hungry .duck-body { transform: scale(0.95); }
.duck-hungry .duck-head { transform: rotate(-10deg); }

.duck-sleepy .duck-head { transform: rotate(20deg); }
.duck-sleepy .duck-wing { transform: rotate(0deg); }

.duck-excited .duck-body { animation: bounce 1s infinite; }
.duck-excited .duck-wing { animation: flap 0.5s infinite; }

.duck-swimming .duck-body { animation: float 2s infinite; }
.duck-swimming .duck-wing { animation: paddle 1s infinite; }

.duck-sleeping .duck-body { transform: scale(0.9); }
.duck-sleeping .duck-head { transform: rotate(40deg); }
.duck-sleeping .duck-wing { transform: rotate(20deg); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes flap {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(20deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes paddle {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

/* Weather Widget Styling */
.weather-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Added for vertical centering */
  height: 100%;
  padding: 15px;
  background-color: var(--cottage-beige);
  background-image: url('../assets/textures/paper-texture.png');
  background-size: cover;
  box-sizing: border-box; /* Added for consistent padding behavior */
}

.stained-glass {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 15px solid var(--cottage-sepia);
  overflow: hidden;
  background-color: rgba(211, 235, 255, 0.5);
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(74, 63, 53, 0.3);
}

.stained-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/textures/stained-glass-texture.png');
  opacity: 0.3;
  pointer-events: none;
  z-index: 5;
}

.stained-glass-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  background: transparent;
  border: 2px solid var(--cottage-goldenrod);
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
}

.stained-glass-frame::before, .stained-glass-frame::after {
  content: '';
  position: absolute;
  background-color: var(--cottage-sepia);
  z-index: 6;
}

.stained-glass-frame::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.stained-glass-frame::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.weather-animation {
  width: 100%;
  height: 100%;
  position: absolute;
}

.weather-animation.sunny {
  background: radial-gradient(circle, var(--cottage-goldenrod) 0%, transparent 70%);
  animation: pulse-gentle 4s ease-in-out infinite;
}

.sun-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}

.sun-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 2px;
  background-color: rgba(255, 220, 100, 0.7);
  transform-origin: 0 0;
}

.sun-ray:nth-child(1) { transform: rotate(0deg) translateY(-1px); }
.sun-ray:nth-child(2) { transform: rotate(45deg) translateY(-1px); }
.sun-ray:nth-child(3) { transform: rotate(90deg) translateY(-1px); }
.sun-ray:nth-child(4) { transform: rotate(135deg) translateY(-1px); }
.sun-ray:nth-child(5) { transform: rotate(180deg) translateY(-1px); }
.sun-ray:nth-child(6) { transform: rotate(225deg) translateY(-1px); }
.sun-ray:nth-child(7) { transform: rotate(270deg) translateY(-1px); }
.sun-ray:nth-child(8) { transform: rotate(315deg) translateY(-1px); }

.weather-animation.rain {
  background-color: rgba(100, 149, 237, 0.3);
}

.raindrop {
  position: absolute;
  width: 2px;
  height: 15px;
  background-color: rgba(173, 216, 230, 0.7);
  border-radius: 0 0 5px 5px;
  animation: raindrop 1.5s linear infinite;
}

.cloud {
  position: absolute;
  width: 60px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.cloud::before {
  width: 30px;
  height: 30px;
  top: -15px;
  left: 10px;
}

.cloud::after {
  width: 25px;
  height: 25px;
  top: -10px;
  left: 30px;
}

.weather-animation.snow {
  background-color: rgba(240, 248, 255, 0.5);
}

.snowflake {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  animation: snowfall 8s linear infinite;
}

.weather-animation.cloudy .cloud {
  animation: drift 10s ease-in-out infinite;
}

.weather-animation.cloudy::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  top: 60px;
  left: 30px;
  z-index: 2;
  animation: drift 12s ease-in-out infinite reverse;
}

.weather-animation.stormy {
  background-color: rgba(50, 50, 80, 0.4);
}

.lightning {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 40px;
  background-color: #FFF8B0;
  z-index: 4;
  opacity: 0;
  box-shadow: 0 0 10px #FFF8B0, 0 0 20px #FFFFB0;
  animation: lightning 4s ease-in-out infinite;
}

.weather-info {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 15px;
  border: 2px solid var(--cottage-sage);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.weather-status {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  margin-bottom: 5px;
  color: var(--cottage-sepia);
}

.weather-temp {
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--cottage-sepia);
}

.weather-details {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.weather-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-label {
  font-size: 12px;
  color: var(--cottage-softblack);
  margin-bottom: 5px;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--cottage-sepia);
}

.forecast {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 10px;
  width: 100%;
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.day-name {
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--cottage-sepia);
}

.day-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

.day-temp {
  font-size: 12px;
  color: var(--cottage-sepia);
}

/* Enhanced targeting for forecast text in light theme */
body:not(.night-mode) .forecast *,
body:not(.night-mode) .forecast .day-name,
body:not(.night-mode) .forecast .day-temp,
body:not(.night-mode) .mobile-app-modal .forecast *,
body:not(.night-mode) .mobile-app-modal .weather-container .forecast * {
  color: #000000 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* For mobile view specifically */
.mobile-app-modal .forecast,
.mobile-app-modal .forecast-day,
.mobile-app-modal .day-name,
.mobile-app-modal .day-icon,
.mobile-app-modal .day-temp {
  text-shadow: none;
}

body:not(.night-mode) .mobile-app-modal .day-name,
body:not(.night-mode) .mobile-app-modal .day-temp {
  color: #000000 !important;
  font-weight: 600 !important;
}

/* Apply these styles specifically within the mobile app modal */
.mobile-app-modal .weather-container {
  padding: 20px; /* Add some padding around the content */
  width: 100%;
  max-width: 500px; /* Increase max-width for a larger appearance */
  margin: auto; /* Center the container */
  height: auto; /* Allow height to be determined by content or specific values below */
  min-height: 80vh; /* Ensure it takes up a good portion of the screen */
  justify-content: center; /* Center content vertically */
}

/* Garden Planner Styling */
.garden-container { /* This is likely the main container used by garden.js */
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--cottage-beige);
  background-image: url('../assets/textures/paper-texture.png');
  padding: 15px; /* Add some padding */
  box-sizing: border-box; /* Ensure padding is included in height/width */
}

.garden-game { /* This is the direct container from the template */
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Info Bar at the top */
.garden-info-bar {
  display: flex;
  justify-content: space-between; /* Distribute items like Day, Weather etc. */
  align-items: center;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--cottage-sage);
  width: 100%; /* Make it full width */
  box-sizing: border-box;
}

.garden-info-bar > div { /* Style for individual info items */
  font-size: 1em;
  color: var(--cottage-sepia);
}

/* Toolbar for actions like Plant, Water */
.garden-actions-toolbar {
  display: flex;
  justify-content: center; /* Center the buttons */
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid var(--cottage-sage);
  width: 100%; /* Make it full width */
  box-sizing: border-box;
}

.garden-actions-toolbar button {
  padding: 8px 15px;
  border: 1px solid var(--cottage-moss);
  background-color: var(--cottage-rose);
  color: var(--cottage-sepia);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.garden-actions-toolbar button.selected {
  background-color: var(--cottage-sage);
  color: white;
  border-color: var(--cottage-goldenrod);
}

/* Plant selection toolbar */
.garden-plant-selection-toolbar {
  display: flex;
  justify-content: center; /* Center the plant items */
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid var(--cottage-sage);
  width: 100%; /* Make it full width */
  box-sizing: border-box;
}

.garden-plant-selection-toolbar .plant-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.garden-plant-selection-toolbar .plant-item.selected {
  border-color: var(--cottage-goldenrod);
  background-color: rgba(255,223,186,0.5); /* Light orange tint */
}

.garden-plant-selection-toolbar .plant-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

.garden-plant-selection-toolbar .plant-name {
  font-size: 0.8em;
  text-align: center;
}

.garden-toolbar {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  background: #f9f5ef;
  border-radius: 12px;
  padding: 16px 24px 12px 24px;
  align-items: center;
  box-shadow: 0 2px 8px #e7c4b5;
  border: 2px solid #d3c0e6;
  position: relative;
}
.garden-toolbar .garden-tool {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #e7c4b5;
  border: 2px solid #9caf88;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cottage-sepia);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(156, 175, 136, 0.08);
  transition: background 0.2s, border 0.2s, box-shadow 0.2s, color 0.2s, transform 0.1s;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.garden-toolbar .garden-tool.selected {
  background: #9caf88;
  color: #fff;
  border-color: #e7c4b5;
  box-shadow: 0 4px 16px #a17f6c;
  transform: scale(1.08);
  z-index: 1;
}
.garden-toolbar .garden-tool:hover {
  background: #d3c0e6;
  color: #7d5a50;
  border-color: #c45c66;
  box-shadow: 0 4px 16px #e7c4b5;
  transform: translateY(-2px) scale(1.04);
}

.garden-tool {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cottage-sage);
  transition: all 0.2s ease;
  cursor: pointer;
}

.garden-tool:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.garden-tool.active {
  background-color: var(--cottage-sage);
  color: white;
}

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

.garden-plot {
  flex: 1;
  background-color: var(--cottage-moss);
  background-image: url('../assets/textures/soil-texture.png');
  background-size: cover;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  padding: 20px;
  overflow: auto;
}

.plot-cell {
  background-color: rgba(109, 139, 116, 0.8);
  border-radius: 15px; /* Make ovals more rounded */
  min-height: 50px; /* Ensure cells have some height */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border: 1px dashed rgba(255,255,255,0.2); /* Add a subtle border */
}

.plot-cell:hover {
  background-color: rgba(156, 175, 136, 0.8);
}

.plot-cell.planted::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-image: url('../assets/icons/seedling.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.5s ease;
}

.plot-cell.watered::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-color: rgba(173, 216, 230, 0.3);
  animation: pulse-gentle 2s infinite;
}

.garden-panel {
  width: 200px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-left: 2px solid var(--cottage-sage);
}

.plant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.plant-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plant-item:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.plant-icon {
  width: 30px;
  height: 30px;
}

.plant-name {
  font-size: 14px;
  color: var(--cottage-sepia);
}

/* Settings Cottage Styling */
.settings-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--cottage-beige);
  background-image: url('../assets/textures/wood-texture.png');
  background-size: cover;
  padding: 15px;
}

.settings-header {
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--cottage-sepia);
}

.settings-group {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 15px;
  border: 2px solid var(--cottage-sage);
}

.settings-group-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--cottage-sepia);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--cottage-sage);
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.setting-label {
  font-size: 14px;
  color: var(--cottage-sepia);
}

.setting-control {
  display: flex;
  align-items: center;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  border-radius: 12px;
  background-color: var(--cottage-rose);
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch.active {
  background-color: var(--cottage-sage);
}

.toggle-switch::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.toggle-switch.active::before {
  left: calc(100% - 22px);
}

.slider-control {
  display: flex;
  flex-direction: column;
  width: 120px;
}

.slider-track {
  height: 10px;
  background-color: var(--cottage-lavender);
  border-radius: 5px;
  position: relative;
  margin-bottom: 10px;
}

.slider-handle {
  width: 20px;
  height: 20px;
  background-color: var(--cottage-rose);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--cottage-sepia);
}

.theme-selector {
  display: flex;
  gap: 10px;
}

.theme-option {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-option:hover {
  transform: scale(1.1);
}

.theme-option.selected {
  border-color: var(--cottage-goldenrod);
}

.theme-meadow {
  background: linear-gradient(to bottom, #9CAF88, #F5E6D3);
}

.theme-lavender {
  background: linear-gradient(to bottom, #D3C0E6, #E7C4B5);
}

.theme-sunset {
  background: linear-gradient(to bottom, #E9B44C, #C45C66);
}

.font-selector {
  display: flex;
  gap: 10px;
}

.font-option {
  padding: 5px 10px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-option:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.font-option.selected {
  background-color: var(--cottage-sage);
  color: white;
}

.font-option.cormorant {
  font-family: 'Cormorant Garamond', serif;
}

.font-option.quicksand {
  font-family: 'Quicksand', sans-serif;
}

.font-option.nanum {
  font-family: 'Nanum Pen Script', cursive;
}

.cursor-selector {
  display: flex;
  gap: 10px;
}

.cursor-option {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.cursor-option:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.cursor-option.selected {
  border-color: var(--cottage-goldenrod);
}

.cursor-option.leaf::before {
  content: '🍃';
  font-size: 18px;
}

.cursor-option.flower::before {
  content: '🌸';
  font-size: 18px;
}

.cursor-option.mushroom::before {
  content: '🍄';
  font-size: 18px;
}

/* Terminal Styling */
.terminal-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--cottage-sepia);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

/* Fix for terminal container in dark mode */
body.night-mode .terminal-container {
  background-color: #000000 !important;
  border-radius: 0 0 10px 10px !important;
}

.terminal-frame {
  flex: 1;
  border: none;
  background-color: var(--cottage-sepia);
  color: var(--cottage-sage);
  font-family: 'Fira Code', monospace;
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.terminal-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.05) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 10;
}

.terminal-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 20px rgba(156, 175, 136, 0.3);
  pointer-events: none;
  z-index: 11;
}

/* Recipes Book Styling */
.recipes-container {
  display: flex;
  height: 100%;
  background-color: var(--cottage-beige);
  position: relative;
  overflow: hidden;
}

.recipe-book {
  display: flex;
  width: 100%;
  height: 100%;
  perspective: 1200px;
}

.book-cover {
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  background-color: var(--cottage-sepia);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transform-origin: center left;
  z-index: 1;
  transition: transform 0.5s ease;
}

.book-spine {
  position: absolute;
  width: 20px;
  height: 100%;
  left: 0;
  background-color: var(--cottage-moss);
  z-index: 0;
}

.book-pages {
  flex: 1;
  display: flex;
  background-color: var(--cottage-beige);
  background-image: url('../assets/textures/paper-texture.png');
  overflow: hidden;
}

.left-page, .right-page {
  flex: 1;
  padding: 20px;
  position: relative;
  overflow-y: auto;
}

.left-page::after, .right-page::before {
  content: '';
  position: absolute;
  top: 0;
  width: 20px;
  height: 100%;
}

.left-page::after {
  right: 0;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05));
}

.right-page::before {
  left: 0;
  background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.1));
}

.page-number {
  position: absolute;
  bottom: 10px;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 18px;
  color: var(--cottage-sepia);
}

.left-page .page-number {
  left: 20px;
}

.right-page .page-number {
  right: 20px;
}

.recipe-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--cottage-sepia);
  margin-bottom: 15px;
  text-align: center;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--cottage-sage);
}

.recipe-description {
  font-family: 'Nanum Pen Script', cursive;
  font-size: 18px;
  color: var(--cottage-sepia);
  margin-bottom: 15px;
  line-height: 1.5;
}

.recipe-image {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.ingredients-list {
  margin-bottom: 15px;
}

.ingredients-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cottage-sepia);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.ingredients-title::before {
  content: '✿';
  margin-right: 10px;
  color: var(--cottage-rose);
}

.ingredient-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-family: 'Quicksand', sans-serif;
}

.ingredient-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--cottage-sage);
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ingredient-checkbox.checked::before {
  content: '✓';
  color: var(--cottage-sage);
  font-size: 12px;
}

.ingredient-name {
  font-size: 14px;
  color: var(--cottage-sepia);
}

.instructions-list {
  margin-bottom: 15px;
}

.instructions-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cottage-sepia);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.instructions-title::before {
  content: '⚓';
  margin-right: 10px;
  color: var(--cottage-goldenrod);
}

.instruction-item {
  margin-bottom: 10px;
  font-family: 'Quicksand', sans-serif;
}

.instruction-step {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--cottage-rose);
  color: white;
  text-align: center;
  line-height: 24px;
  margin-right: 10px;
}

.instruction-text {
  font-size: 14px;
  color: var(--cottage-sepia);
  line-height: 1.5;
}

.book-navigation {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 50px;
  z-index: 20;
}

.page-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--cottage-rose);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.page-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Fortune Teller Styling */
.fortune-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background-color: var(--cottage-beige);
  background-image: url('../assets/textures/paper-texture.png');
  background-size: cover;
  padding: 15px;
  overflow: hidden;
}

.crystal-ball {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(211, 192, 230, 0.5) 70%);
  box-shadow: 0 0 20px rgba(211, 192, 230, 0.5);
  position: relative;
  margin-bottom: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.crystal-ball::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, transparent, rgba(255, 255, 255, 0.2) 20%, transparent 60%);
  animation: pulse-gentle 3s infinite;
}

.crystal-ball::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background-color: var(--cottage-sepia);
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.3;
}

.crystal-stand {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 20px;
  background-color: var(--cottage-sepia);
  border-radius: 5px;
  z-index: -1;
}

.crystal-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fortune-swirl {
  position: absolute;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    var(--cottage-rose),
    var(--cottage-lavender),
    var(--cottage-sage),
    var(--cottage-goldenrod),
    var(--cottage-rose)
  );
  opacity: 0.3;
  border-radius: 50%;
  animation: spin-slow 10s linear infinite;
}

.fortune-text {
  position: relative;
  z-index: 10;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--cottage-sepia);
  text-align: center;
  max-width: 80%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fortune-text.visible {
  opacity: 1;
}

.tarot-cards {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.tarot-card {
  width: 80px;
  height: 130px;
  background-color: var(--cottage-rose);
  border-radius: 10px;
  border: 2px solid var(--cottage-goldenrod);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tarot-card:hover {
  transform: translateY(-10px) rotate(5deg);
}

.tarot-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('../assets/textures/tarot-back.png');
  background-size: cover;
  transition: all 0.5s ease;
}

.tarot-face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  opacity: 0;
  transition: all 0.5s ease;
}

.tarot-card.flipped .tarot-back {
  opacity: 0;
  transform: rotateY(180deg);
}

.tarot-card.flipped .tarot-face {
  opacity: 1;
}

.tarot-symbol {
  font-size: 30px;
  margin-bottom: 5px;
}

.tarot-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--cottage-sepia);
}

.fortune-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: var(--cottage-lavender);
  border: none;
  border-radius: 20px;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  color: var(--cottage-sepia);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.fortune-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ambient Animations */
.dandelion-seeds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.seed {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: drift 15s linear infinite;
}

.butterflies {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.butterfly {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.wing {
  position: absolute;
  width: 10px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50% 50% 0 50%;
}

.wing.left {
  left: 0;
  transform-origin: right center;
  animation: flutter 0.2s alternate infinite ease-in-out;
}

.wing.right {
  right: 0;
  transform: scaleX(-1);
  transform-origin: left center;
  animation: flutter 0.2s alternate infinite ease-in-out reverse;
}

.body {
  position: absolute;
  top: 5px;
  left: 9px;
  width: 2px;
  height: 10px;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Keyframe Animations */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--drift-x, 100px), var(--drift-y, -200px)) rotate(var(--drift-rotate, 360deg));
    opacity: 0;
  }
}

@keyframes flutter {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

@keyframes raindrop {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100px);
    opacity: 0;
  }
}

@keyframes snowfall {
  0% {
    transform: translateY(-10px) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100px) translateX(var(--drift-x, 20px));
    opacity: 0;
  }
}

@keyframes pulse-gentle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes lightning {
  0%, 30%, 33%, 36%, 100% { opacity: 0; }
  31%, 32%, 34%, 35% { opacity: 1; }
}

/* Mobile Fallback */
@media (max-width: 768px) {
  .cottage-os {
    display: none !important;
  }
  .mobile-launcher {
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    background: var(--cottage-beige);
    background-image: url('../assets/wallpapers/cherry-blossom-day.gif');
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
  }
  body.night-mode .mobile-launcher {
    background-image: url('../assets/wallpapers/cherry-blossom-night.gif');
  }
  .mobile-launcher-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0 12px 0;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--cottage-sepia);
    text-shadow: 0 2px 8px rgba(255,255,255,0.18);
  }
  .mobile-logo {
    font-size: 2.2rem;
  }
  .mobile-app-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 0 0 80px 0;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
  @media (min-width: 601px) and (max-width: 900px) {
    .mobile-app-list {
      grid-template-columns: repeat(3, 1fr);
      max-width: 600px;
    }
  }
  .mobile-app-icon {
  flex-direction: column;
  justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 100px;
    font-size: 1.1rem;
    padding: 18px 0;
    margin: 0;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(156,175,136,0.08);
    background: rgba(255,255,255,0.85);
    border: 2px solid var(--cottage-sage);
    transition: background 0.2s, border 0.2s, box-shadow 0.2s, color 0.2s, transform 0.1s;
  }
  .mobile-app-icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid var(--cottage-sage);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
  .mobile-app-icon span {
    text-align: center;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 0.01em;
    width: 100%;
    margin-top: 6px;
  }
  .mobile-app-icon:active, .mobile-app-icon:focus {
    background: var(--cottage-sage);
    color: #fff;
    border-color: var(--cottage-goldenrod);
    transform: scale(0.98);
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 60px;
    background: rgba(245,230,211,0.92);
    border-top: 2px solid var(--cottage-rose);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 2100;
  display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 1.7em;
    padding: 0 8px;
}
  .mobile-nav-btn {
    background: rgba(255,255,255,0.95);
    border: 2px solid var(--cottage-sage);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
  align-items: center;
  justify-content: center;
    font-size: 1.3em;
    color: var(--cottage-sepia);
    margin: 0 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  cursor: pointer;
    transition: background 0.2s, border 0.2s, color 0.2s, transform 0.1s;
    outline: none;
}
  .mobile-nav-btn:active, .mobile-nav-btn:focus {
    background: var(--cottage-sage);
  color: #fff;
    border-color: var(--cottage-goldenrod);
    transform: scale(0.96);
  }
  .mobile-app-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3000;
    background: rgba(245,230,211,0.98);
    background-image: url('../assets/wallpapers/cherry-blossom-day.gif');
    background-size: cover;
    background-position: center;
    align-items: stretch;
    justify-content: center;
    overflow-y: auto;
    transition: opacity 0.3s;
}
  body.night-mode .mobile-app-modal {
    background-image: url('../assets/wallpapers/cherry-blossom-night.gif');
    background-color: #23212B;
  }
  .mobile-app-modal.active {
    display: flex !important;
    flex-direction: column;
  }
  
  .mobile-app-close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
  border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 2px solid var(--cottage-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cottage-sepia);
    font-size: 1.5em;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
  }
  
  .mobile-app-close-btn:hover {
    background: rgba(255,255,255,0.6);
  }
  
  .mobile-app-close-btn:active {
    background: var(--cottage-sage);
    color: #fff;
    transform: scale(0.96);
  }
  
  .mobile-app-modal-content {
    flex: 1;
    width: 100vw;
    min-height: 100vh;
    max-width: 100vw;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 0 32px 0 rgba(156,175,136,0.10);
    border-radius: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  body.night-mode .mobile-app-modal-content {
    background: rgba(35,33,43,0.97);
  }
  
  /* Hide window-container on mobile when modal is open */
  .mobile-app-modal.active ~ .window-container {
    display: none !important;
  }
  
  /* Optional: make .cottage-window fill modal on mobile */
  .mobile-app-modal .cottage-window {
    position: static !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
  }

  .mobile-app-modal .window-titlebar {
    cursor: default !important;
    border-radius: 0 !important;
    font-size: 1.2em;
    min-height: 48px;
    height: 48px;
    padding: 0 18px;
  }
  
  .mobile-app-modal .window-controls {
    gap: 18px;
  }
  
  .mobile-app-modal .window-content {
    height: calc(100vh - 48px);
    min-height: 0;
    padding: 0;
    overflow-y: auto;
  }
  
  .mobile-app-modal .resize-handle {
    display: none !important;
  }
  
  .mobile-home {
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    background: var(--cottage-beige);
    background-image: url('../assets/wallpapers/cherry-blossom-day.gif');
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    overflow: hidden;
  }
  
  body.night-mode .mobile-home {
    background-image: url('../assets/wallpapers/cherry-blossom-night.gif');
  }
  
  .mobile-pages {
    flex: 1;
  display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100vw;
    height: calc(100vh - 90px);
    /* leave space for dock */
  }
  
  .mobile-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 0;
    justify-items: center;
    align-items: start;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    padding: 5px 0 60px 0;
    scroll-snap-align: start;
    background: transparent;
  }
  
  .mobile-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 70px;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    margin: 5px 0 !important;
    padding: 0 !important;
    cursor: pointer;
    user-select: none;
    transition: transform 0.12s, box-shadow 0.2s;
  }
  
  .mobile-app-icon img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    box-shadow: 0 2px 8px 0 rgba(156, 175, 136, 0.18), 0 0 0 4px rgba(255,255,255,0.18);
    background: #fff8f2;
    border: 2px solid var(--cottage-sage);
    margin-bottom: 4px;
    transition: box-shadow 0.2s, border 0.2s;
  }
  
  .mobile-app-icon:active img, .mobile-app-icon:focus img {
    box-shadow: 0 4px 16px 0 var(--cottage-goldenrod), 0 0 0 6px rgba(255,255,255,0.22);
    border-color: var(--cottage-goldenrod);
    transform: scale(0.97);
  }
  
  .mobile-app-label {
    font-family: 'Indie Flower', cursive !important;
    font-size: 12px !important;
    color: #4A3F35 !important;
  text-align: center;
    line-height: 1.1;
    word-break: break-word;
    max-width: 70px;
  margin: 0 auto;
    padding: 0 2px;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px #fffbe9;
    font-weight: 400;
    display: block;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
  }
  
  .mobile-dock {
    position: fixed;
    left: 12px; 
    right: 12px;
    bottom: 10px;
    height: 70px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  
  body.night-mode .mobile-dock {
    background: rgba(50, 50, 70, 0.7);
  }
  
  .mobile-dock::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
  }
  
  .mobile-dock-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    user-select: none;
    transition: transform 0.12s;
    position: relative;
  }
  
  .mobile-dock-icon img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    object-fit: contain;
    transition: transform 0.2s;
  }
  
  .mobile-dock-icon:active img {
    transform: scale(0.9);
  }
  
  .mobile-dock-icon .mobile-app-label {
    display: none;
  }
  
  body.edit-mode .mobile-dock {
    opacity: 0.7;
    transform: translateY(10px);
  }
  
  @keyframes wiggle {
    0% { transform: rotate(-3deg); }
    10% { transform: rotate(3deg); }
    20% { transform: rotate(-3deg); }
    30% { transform: rotate(3deg); }
    40% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
    60% { transform: rotate(-1deg); }
    70% { transform: rotate(1deg); }
    80% { transform: rotate(-1deg); }
    90% { transform: rotate(1deg); }
    100% { transform: rotate(-3deg); }
  }
  
  @keyframes bounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.12); }
    50% { transform: scale(0.96); }
    70% { transform: scale(1.04); }
    100% { transform: scale(1); }
  }
  
  .mobile-home.edit-mode .mobile-app-icon,
  .mobile-home.edit-mode .mobile-dock-icon {
    animation: wiggle 0.6s infinite;
    position: relative;
  }
  
  .mobile-app-icon.bounce,
  .mobile-dock-icon.bounce {
    animation: bounce 0.4s;
  }
  
  .icon-remove-btn {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #fff8f2;
    border: 2px solid var(--cottage-raspberry);
    border-radius: 50%;
    color: var(--cottage-raspberry);
    font-size: 1.1em;
    font-family: 'Indie Flower', cursive;
    box-shadow: 0 2px 6px rgba(196,92,102,0.12);
    z-index: 2;
  cursor: pointer;
    align-items: center;
    justify-content: center;
    display: flex;
    transition: background 0.2s, border 0.2s, color 0.2s;
  }
  
  .mobile-home.edit-mode .mobile-app-icon .icon-remove-btn,
  .mobile-home.edit-mode .mobile-dock-icon .icon-remove-btn {
    display: flex;
  }
  
  .icon-remove-btn:active {
    background: var(--cottage-raspberry);
  color: #fff;
    border-color: var(--cottage-goldenrod);
  }
  
  .mobile-app-icon, .mobile-dock-icon {
    position: relative;
  }
  
  /* Enhanced mobile SYNEVA styles */
  .mobile-app-modal .syneva-container {
    height: 100vh !important;
    min-height: 100vh !important;
  display: flex;
    flex-direction: column;
    background: #f8f3e6;
    border-radius: 0 !important;
    padding: 0 !important;
    background-image: url('../assets/textures/paper-texture-light.png');
    background-size: cover;
    position: relative;
    overflow: hidden;
  }
  
  /* Add decorative elements */
  .mobile-app-modal .syneva-container::before {
    content: "🌿";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.6;
  }
  
  .mobile-app-modal .syneva-container::after {
    content: "🌸";
    position: absolute;
    bottom: 80px;
    left: 20px;
    font-size: 24px;
    opacity: 0.6;
  }
  
  .mobile-app-close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    border: 2px solid var(--cottage-sage);
  display: flex;
  align-items: center;
  justify-content: center;
    color: var(--cottage-sepia);
    font-size: 1.5em;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
  }
  
  .mobile-app-close-btn:hover {
    background: rgba(255,255,255,0.6);
  }
  
  .mobile-app-close-btn:active {
    background: var(--cottage-sage);
    color: #fff;
    transform: scale(0.96);
  }
  
  .mobile-app-modal .syneva-output {
    flex: 1 1 0;
    max-height: none !important;
    min-height: 0;
    font-size: 1.1em;
    padding: 60px 12px 16px 12px;
    border-radius: 0 !important;
    background: rgba(255,252,245,0.92);
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.5;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    color: #4A3F35;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0), rgba(156,175,136,0.1));
  }
  
  .mobile-app-modal .syneva-output p {
    margin-bottom: 18px;
    color: #4A3F35;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    position: relative;
    padding-left: 10px;
    font-weight: 500;
  }
  
  .mobile-app-modal .syneva-output p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 3px;
    height: calc(100% - 12px);
  background: #e7c4b5;
    border-radius: 3px;
  }
  
  .mobile-app-modal .syneva-output p:nth-child(odd)::before {
    background: #9caf88;
  }
  
  .mobile-app-modal .typing-indicator {
    padding: 12px 16px;
    font-size: 1.1em;
    background: rgba(255,255,255,0.9);
    color: #6D8B74;
  font-family: 'Quicksand', sans-serif;
    border-top: 2px dashed #9caf88;
  }
  
  .mobile-app-modal .syneva-input-container {
    padding: 15px 10px;
    background: rgba(255,252,245,0.95);
    border-radius: 0 0 0 0;
    border-top: 2px solid #e7c4b5;
  display: flex;
  align-items: center;
    margin-top: auto;
    background-image: url('../assets/textures/linen-texture.png');
    background-size: cover;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }
  
  .mobile-app-modal .syneva-input {
    font-size: 1.2em;
    padding: 12px 15px;
    min-height: 44px;
    border-radius: 18px;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #9caf88;
    color: #4A3F35;
    background: #fffdf7;
    font-family: 'Quicksand', sans-serif;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .mobile-app-modal .syneva-input:focus {
    outline: none;
    border-color: #e7c4b5;
    box-shadow: 0 0 0 3px rgba(231, 196, 181, 0.3), inset 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .mobile-app-modal .quill-icon {
    color: #9caf88;
    margin-right: 12px;
    font-size: 1.4em;
  }
  
  .mobile-app-modal .syneva-link {
    padding: 8px 0;
    text-align: center;
    background: rgba(255,255,255,0.8);
    border-top: 1px dashed #9caf88;
    font-family: 'Quicksand', sans-serif;
  }
  
  .mobile-app-modal .syneva-link a {
    color: #6D8B74;
    text-decoration: none;
    font-size: 1em;
    position: relative;
  }
  
  .mobile-app-modal .syneva-link a:after {
    content: "";
  position: absolute;
  left: 0;
    bottom: -2px;
  width: 100%;
    height: 1px;
    background: #e7c4b5;
    opacity: 0.7;
  }
}

/* Mobile Settings Cottage styling */
.mobile-app-modal .settings-container {
  display: flex;
  flex-direction: column;
  height: 100vh !important;
  background-color: #23212B;
  background-image: url('../assets/textures/wood-texture.png');
  background-size: cover;
  padding: 10px 15px 60px 15px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-app-modal .settings-header {
  text-align: center;
  margin: 60px 0 25px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: #FFF5E9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.mobile-app-modal .settings-group {
  background-color: rgba(75, 65, 85, 0.9);
  border: 2px solid var(--cottage-lavender);
  color: #E6E1D3;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.mobile-app-modal .settings-group-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: #E6E1D3;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--cottage-lavender);
  font-weight: 600;
}

.mobile-app-modal .setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 6px 0;
}

.mobile-app-modal .setting-label {
  font-size: 16px;
  color: #E6E1D3;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
}

/* Fix Mossbell container mobile styling */
.mobile-app-modal .mossbell-container {
  height: 100vh !important;
  background-image: url('../assets/textures/moss-background.png');
  background-size: cover;
  overflow: hidden;
  position: relative;
  padding: 70px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-app-modal .screen {
  margin: 20px 0;
  height: 40%;
  width: 90%;
  border: 4px solid #a17f6c;
  border-radius: 16px;
  padding: 12px;
  background: #cfe4f1;
  color: #222;
  font-family: 'VCR-Mono', monospace;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mobile-app-modal .button-container {
  height: auto;
  width: 90%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 0 10px;
}

.mobile-app-modal .pet-container {
  height: 70%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 600px) {
  .mobile-app-modal .mossbell-container marquee {
    width: 100%;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-app-modal .mossbell-container marquee span {
    color: #222;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    margin: 0 4px;
  }
  
  .mobile-app-modal .button-text {
    display: block;
    font-size: 0.9rem;
    margin-top: 8px;
  }
}

/* Duck sprite instead of GIF */
.mobile-app-modal .duck-body {
  position: absolute;
  width: 80px;
  height: 60px;
  background-color: #FFFFCC;
  border-radius: 60% 60% 50% 50%;
  transform-origin: bottom center;
  bottom: 0;
  left: 20px;
  animation: float 3s ease-in-out infinite;
}

.mobile-app-modal .duck-head {
  position: absolute;
  top: -30px;
  left: 50px;
  width: 50px;
  height: 40px;
  background-color: #FFFFCC;
  border-radius: 60% 80% 60% 70%;
  z-index: 4;
  animation: float 3s ease-in-out infinite reverse;
}

.mobile-app-modal .duck-beak {
  position: absolute;
  top: 15px;
  right: -10px;
  width: 30px;
  height: 15px;
  background-color: #E9B44C;
  border-radius: 50% 50% 50% 50%;
  transform: rotate(10deg);
}

.mobile-app-modal .duck-eye {
  position: absolute;
  top: 8px;
  right: 15px;
  width: 8px;
  height: 8px;
  background-color: #2E2E2E;
  border-radius: 50%;
}

.mobile-app-modal .duck-wing {
  position: absolute;
  top: 20px;
  left: -5px;
  width: 30px;
  height: 25px;
  background-color: #FFEE99;
  border-radius: 60% 50% 50% 40%;
  transform: rotate(-10deg);
  transform-origin: right center;
  animation: flutter 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes flutter {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(5deg); }
}

/* Mobile Settings Toggle Switches */
.mobile-app-modal .toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  border-radius: 12px;
  background-color: var(--cottage-rose);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-app-modal .toggle-switch.active {
  background-color: var(--cottage-sage);
}

.mobile-app-modal .toggle-switch::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.mobile-app-modal .toggle-switch.active::before {
  left: calc(100% - 22px);
}

/* Add specific style for night mode toggle to ensure it's recognizable */
.mobile-app-modal .toggle-switch[data-setting="night-mode"] {
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.mobile-app-modal .toggle-switch[data-setting="night-mode"].active {
  background-color: #3A4D39;
}

.mobile-app-modal .toggle-switch[data-setting="night-mode"]::before {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Improve mobile settings toggle visibility and interaction */
.mobile-app-modal .toggle-switch[data-setting="night-mode"] {
  position: relative;
  width: 55px;
  height: 28px;
  border-radius: 14px;
  background-color: var(--cottage-rose);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-app-modal .toggle-switch[data-setting="night-mode"]:active {
  transform: scale(0.95);
}

.mobile-app-modal .toggle-switch[data-setting="night-mode"]:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.mobile-app-modal .toggle-switch[data-setting="night-mode"].active {
  background-color: #3A4D39;
}

.mobile-app-modal .toggle-switch[data-setting="night-mode"]::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: white;
  top: 1px;
  left: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.mobile-app-modal .toggle-switch[data-setting="night-mode"].active::before {
  left: calc(100% - 24px);
  background-color: #FFF9E5;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 0 15px rgba(255, 249, 229, 0.5);
}

/* Day/night icons inside toggle */
.mobile-app-modal .toggle-switch[data-setting="night-mode"]::after {
  content: '☀️';
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  font-size: 12px;
}

.mobile-app-modal .toggle-switch[data-setting="night-mode"].active::after {
  content: '🌙';
  right: auto;
  left: 7px;
}

.mobile-app-modal .button-container {
  height: 10%;
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.mobile-app-modal button {
  height: 60px;
  width: 60px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(145deg, #9caf88, #e7c4b5);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.mobile-app-modal button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mobile-app-modal .button-text {
  display: block;
  font-size: 1rem;
  position: relative;
  margin-top: 10px;
  text-align: center;
  color: #4a3f35;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.mobile-app-modal .disable-buttons {
  pointer-events: none;
  opacity: 0.6;
}

.mobile-app-modal .middle-button {
  align-self: flex-end;
}

.mobile-app-modal .pacing {
  animation: pacing 10s alternate infinite;
}

.mobile-app-modal .playing {
  background-image: url('../assets/graphics/dancing.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: playing 0.2s alternate infinite;
}

.mobile-app-modal .sleeping {
  background-image: url('../assets/graphics/sleeping.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.mobile-app-modal .eating {
  background-image: url('../assets/graphics/eating.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.mobile-app-modal .pet-container {
  height: 70%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-app-modal .center-pet {
  justify-content: center;
}

.mobile-app-modal .pet {
  margin: 0;
  height: 100%;
  width: 70%;
  background-image: url('../assets/graphics/pacing.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: 0s;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.mobile-app-modal .mossbell-container {
  display: flex; /* Use flex to center its children */
  flex-direction: column;
  align-items: center; /* Center children horizontally */
  justify-content: center; /* Center children vertically if desired, or use padding/margins */
  width: 100%; /* Take full width to allow inner centering */
  max-width: 400px; /* Max width for the game itself, can be adjusted */
  margin: auto; /* This will help center the container if its parent is a block or flex container */
  padding: 20px;
  box-sizing: border-box;
  height: 100%; /* Ensure it takes up available vertical space */
}

.mobile-app-modal .screen {
  width: 100%;
  max-width: 320px; /* Max width for the screen content */
  margin-bottom: 20px; /* Space between screen and buttons */
  /* Remove fixed height to allow content to dictate height */
}

.mobile-app-modal .button-container {
  display: flex;
  justify-content: space-around; /* Distribute buttons evenly */
  width: 100%;
  max-width: 300px; /* Control width of button area */
  margin: 0 auto; /* Center the button container itself */
}

/* Apply these styles specifically within the mobile app modal */
.mobile-app-modal .weather-container {
  padding: 20px; /* Add some padding around the content */
  width: 100%;
  max-width: 500px; /* Increase max-width for a larger appearance */
  margin: auto; /* Center the container */
  height: auto; /* Allow height to be determined by content or specific values below */
  min-height: 80vh; /* Ensure it takes up a good portion of the screen */
  justify-content: center; /* Center content vertically */
}

.mobile-app-modal .stained-glass {
  width: 220px; /* Increased size */
  height: 220px; /* Increased size */
  margin-bottom: 25px; /* Adjusted margin */
  border-width: 18px; /* Scale border */
}

.mobile-app-modal .weather-info {
  width: 100%;
  max-width: 380px; /* Increase max-width for info section */
  padding: 20px; /* Increased padding */
}

.mobile-app-modal .weather-status {
  font-size: 28px; /* Larger status text */
  color: #333333; /* Darker text for better readability on light backgrounds */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3); /* Subtle text shadow for legibility */
}

.mobile-app-modal .weather-temp {
  font-size: 24px; /* Larger temperature text */
  color: #333333; /* Darker text for better readability on light backgrounds */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3); /* Subtle text shadow for legibility */
}

/* Ensure text is always visible in both light and dark modes */
body.night-mode .mobile-app-modal .weather-status,
body.night-mode .mobile-app-modal .weather-temp {
  color: #ffffff; /* White text for dark mode */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); /* Subtle shadow for better readability */
}

/* Enhance contrast for the weather info background in light mode */
body:not(.night-mode) .mobile-app-modal .weather-info {
  background-color: rgba(255, 255, 255, 0.85); /* Slightly more opaque background */
  border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border for definition */
}

.mobile-app-modal .forecast {
  width: 100%;
  max-width: 380px; /* Match weather-info width */
  background-color: rgba(255, 255, 255, 0.7); /* Slightly opaque background */
  border-radius: 8px; /* Rounded corners */
  border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border */
  padding: 12px 8px; /* Increase padding for better spacing */
}

.mobile-app-modal .forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px; /* Add padding for better touch targets */
}

.mobile-app-modal .day-name {
  font-size: 14px; /* Increase font size for better visibility */
  margin-bottom: 8px; /* Add spacing between elements */
  color: #333333; /* Darker text for better contrast */
  font-weight: 600; /* Make text bolder */
}

.mobile-app-modal .day-icon {
  width: 35px; /* Larger forecast icons */
  height: 35px;
  margin-bottom: 8px; /* Add spacing between icon and temperature */
}

.mobile-app-modal .day-temp {
  font-size: 14px; /* Increase font size for better visibility */
  color: #333333; /* Darker text for better contrast */
  font-weight: 600; /* Make text bolder */
}

/* Dark mode adjustments for forecast */
body.night-mode .mobile-app-modal .forecast {
  background-color: rgba(0, 0, 0, 0.2); /* Subtle dark background */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for dark mode */
}

body.night-mode .mobile-app-modal .day-name,
body.night-mode .mobile-app-modal .day-temp {
  color: #ffffff; /* White text for better visibility in dark mode */
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); /* Add shadow for better readability */
}

/* Garden Planner Styling - Cottagecore Redesign REFINED */

/* --- Overall Garden App Container --- */
.garden-app-layout {
  display: flex;
  flex-direction: column; /* Stack title and content-wrapper */
  height: 100%;
  font-family: 'Nanum Pen Script', cursive;
  background-color: #F0E8D8; /* Lighter cream - like linen */
  /* Attempting linen texture via CSS if image not available */
  background-image: linear-gradient(45deg, rgba(222,184,135,0.05) 25%, transparent 25%, transparent 75%, rgba(222,184,135,0.05) 75%, rgba(222,184,135,0.05)),
                    linear-gradient(-45deg, rgba(222,184,135,0.05) 25%, transparent 25%, transparent 75%, rgba(222,184,135,0.05) 75%, rgba(222,184,135,0.05));
  background-size: 10px 10px;
  padding: 15px;
  box-sizing: border-box;
  gap: 10px;
  position: relative; /* For pseudo-elements (borders/overlays) */
}

/* Delicate floral/ivy border - using pseudo-elements with text characters */
.garden-app-layout::before, .garden-app-layout::after {
  content: '✿----❀----🌿----✾----❁'; /* Example pattern */
  position: absolute;
  color: #9CAF88; /* Sage green */
  opacity: 0.6;
  font-size: 0.8em;
  white-space: nowrap;
  overflow: hidden;
}
.garden-app-layout::before {
  top: 5px;
  left: 10px;
  right: 10px;
  text-align: center;
}
.garden-app-layout::after {
  bottom: 5px;
  left: 10px;
  right: 10px;
  text-align: center;
}
/* Simple corner flower detail - placeholder for pressed flowers */
.garden-app-layout > .corner-flower-tl {
  position: absolute;
  top: 15px; left: 15px; content: '🌸'; font-size: 1.2em; opacity: 0.4; transform: rotate(-15deg);
}
.garden-app-layout > .corner-flower-tr {
  position: absolute;
  top: 15px; right: 15px; content: '🌼'; font-size: 1.2em; opacity: 0.4; transform: rotate(15deg);
}


.garden-main-title {
  font-family: 'Indie Flower', cursive; /* Whimsical handwritten font */
  font-size: 2.2em;
  color: #8B5A2B; /* Darker, warm brown */
  text-align: center;
  margin-bottom: 10px;
  padding: 5px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}

.garden-content-wrapper {
  display: flex;
  flex: 1; /* Allow this wrapper to take up remaining space */
  gap: 10px;
  overflow: hidden; /* Important for nested flex layouts */
}

/* --- Left Info Panel (Parchment Style) --- */
.garden-info-panel {
  width: 200px;
  padding: 15px;
  background-color: #FAF0E6; /* Soft parchment color */
  border: 2px solid #D2B48C; /* Light tan border */
  border-radius: 10px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: url('../assets/textures/paper-texture.png');
  font-size: 1.1em;
  flex-shrink: 0; /* Prevent shrinking */
}

.info-panel-title {
  font-family: 'Cormorant Garamond', serif; /* Elegant serif for title */
  font-size: 1.5em;
  color: #8B4513; /* SaddleBrown */
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #D2B48C;
}

.info-item {
  color: #5D4037; /* Darker brown for text */
  line-height: 1.6;
}

.info-item strong {
  color: #A0522D; /* Sienna */
}

#garden-weather-icon svg { /* Style for weather SVGs if used */
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
  fill: #A0522D;
}
.seed-icon {
  font-size: 0.9em;
  margin-left: 3px;
}

/* --- Main Content Area (Toolbars & Grid) --- */
.garden-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Increased gap for better separation */
  overflow: hidden;
}

/* --- Action Buttons Toolbar --- */
.garden-actions-toolbar {
  display: flex;
  justify-content: center; /* Center-align buttons */
  gap: 10px;
  padding: 10px;
  background-color: rgba(222, 184, 135, 0.2); /* Softer BurlyWood */
  border-radius: 12px; /* More rounded */
  border: 1px solid rgba(222, 184, 135, 0.5);
}

.garden-action-btn {
  padding: 10px 15px;
  border: 1px solid #B8860B; /* DarkGoldenrod */
  /* Attempting woodgrain with CSS gradient */
  background-image: linear-gradient(to bottom, #DEB887, #CDAA7D 50%, #D2B48C 50%, #CDAA7D);
  background-size: 100% 4px; /* Creates subtle stripes */
  background-color: #D2B48C; /* Base wood color - BurlyWood */ 
  color: #FFF8DC; /* Soft beige labels - Cornsilk */
  border-radius: 15px; /* Rounded wooden buttons */
  cursor: pointer;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 1.25em;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(101, 67, 33, 0.4); /* Wood-like shadow */
  text-shadow: 1px 1px 1px rgba(101, 67, 33, 0.3);
}

.garden-action-btn:hover {
  background-color: #CDAA7D; /* Slightly darker wood */
  border-color: #8B4513; /* SaddleBrown */
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(101, 67, 33, 0.5);
}

.garden-action-btn.selected {
  background-image: linear-gradient(to bottom, #8FBC8F, #79A879 50%, #8FBC8F 50%, #79A879); /* Sage green wood */
  background-color: #8FBC8F; /* DarkSeaGreen */
  color: white;
  border-color: #6D8B74; /* Darker moss */
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2);
}

/* --- Plant Selection Toolbar --- */
.garden-plant-selection-toolbar {
  display: flex;
  justify-content: flex-start; /* Align to start */
  gap: 10px;
  padding: 8px;
  background-color: rgba(245, 222, 179, 0.4); /* Wheat, transparent */
  border-radius: 8px;
  border: 1px solid #F5DEB3; /* Wheat border */
  flex-wrap: wrap; /* Allow items to wrap if not enough space */
}

.garden-plant-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border: 2px dashed transparent; /* Dashed for a softer look */
  border-radius: 10px; /* More rounded */
  cursor: pointer;
  background-color: rgba(255, 248, 220, 0.5); /* Cornelia - very light yellow/pink */
  transition: all 0.2s ease;
  min-width: 70px; /* Ensure items have some width */
}

.garden-plant-item:hover {
  border-color: #E7C4B5; /* Cottage Rose from general theme */
  background-color: rgba(255, 248, 220, 0.8);
}

.garden-plant-item.selected {
  border-style: solid;
  border-color: #9CAF88; /* Sage green */
  background-color: rgba(156, 175, 136, 0.3); /* Light sage */
  box-shadow: 0 0 5px rgba(156, 175, 136, 0.5);
}

.plant-icon-display {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em; /* Make emoji/text icons larger */
}

/* Style for SVGs if used within plant-icon-display */
.plant-icon-display svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Specific icon colors for charm */
/* Tulip: terracotta red-ish pink */
.garden-plant-item[title*="Tulip"] .plant-icon-display { color: #E2725B; }
/* Tomato: terracotta red */
.garden-plant-item[title*="Tomato"] .plant-icon-display { color: #CD5C5C; }
/* Lavender: lavender purple */
.garden-plant-item[title*="Lavender"] .plant-icon-display { color: #967BB6; }
/* Mushroom: earthy brown/sage */
.garden-plant-item[title*="Mushroom"] .plant-icon-display { color: #8FBC8F; }


.plant-name-display {
  font-size: 0.9em;
  text-align: center;
  color: #5D4037;
  font-family: 'Cormorant Garamond', serif; /* Serif for plant names */
}

/* --- Garden Plot Grid --- */
.garden-plot-grid {
  flex: 1; /* Take remaining space */
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* As per COLS = 5 */
  grid-template-rows: repeat(4, 1fr);    /* As per ROWS = 4 */
  gap: 8px; /* Softer gap */
  padding: 10px;
  background-color: #A0522D; /* Sienna - for the soil background */
  border-radius: 10px;
  border: 3px solid #8B4513; /* Darker brown border for depth */
  background-image: url('../assets/textures/soil-texture.png'); /* If you have a soil texture */
  overflow-y: auto; /* Scroll if content overflows, though grid should fit */
}

.garden-plot-cell {
  background-color: rgba(210, 180, 140, 0.3); /* Tan, slightly transparent */
  border-radius: 8px; /* Softer cells */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px dashed rgba(139, 69, 19, 0.4); /* SaddleBrown, dashed */
  font-size: 1.5em; /* For plant icons/stages */
  position: relative; /* For pseudo-elements like water/wilt */
}

.garden-plot-cell:hover {
  background-color: rgba(210, 180, 140, 0.5);
  border-style: solid;
}

/* Styling for plant stages within cells - SVGs or text */
.garden-plot-cell svg {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.garden-plot-cell.watered::after {
  content: '💧'; /* Water droplet */
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 0.5em;
  opacity: 0.8;
  animation: pulse-gentle 1.5s infinite;
}

.garden-plot-cell.wilted {
  opacity: 0.6;
  filter: grayscale(80%) sepia(20%);
}
.garden-plot-cell.wilted::before {
  content: '🥀'; /* Wilted flower icon */
  position: absolute;
  bottom: 3px;
  left: 3px;
  font-size: 0.5em;
  opacity: 0.8;
}


/* --- Remove default garden styles that might conflict --- */
.garden-container, .garden-game, .garden-info-bar, 
.garden-actions-toolbar > button, /* Previous action toolbar buttons */
.garden-plant-selection-toolbar .plant-item, /* Previous plant items */
.garden-plot, .plot-cell, .garden-panel /* Old layout elements */ {
  /* It's safer to be specific and override, but if these are solely for the old garden, nullify them */
  /* For example, if .garden-container was the old top-level wrapper: */
  /* .garden-container { display: none !important; } */
  /* For now, I'll rely on the new class names and the old ones not being used by garden-template */
}

/* Adjustments for existing .garden-tool, .plant-btn, etc. if they are still somehow rendered (should not be with JS changes) */
.garden-tool, .plant-btn { /* Styles for old buttons, ensure they don't interfere or restyle them if needed */
  /* Example: display: none; if they are truly replaced */
}

body.night-mode .settings-container {
  background-color: var(--cottage-beige);
  background-image: url('../assets/textures/wood-texture.png');
  background-size: cover;
  padding: 15px;
  color: #E6E1D3;
}

body.night-mode .settings-group {
  background-color: rgba(75, 65, 85, 0.9);
  border: 2px solid var(--cottage-lavender);
  color: #E6E1D3;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body.night-mode .settings-group-title {
  color: #E6E1D3;
  border-bottom: 1px dashed var(--cottage-lavender);
}

body.night-mode .settings-header {
  color: #E6E1D3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

body.night-mode .setting-label {
  color: #E6E1D3;
}

body.night-mode .theme-option {
  border: 2px solid rgba(255, 255, 255, 0.5);
}

body.night-mode .theme-option.selected {
  border: 2px solid var(--cottage-goldenrod);
  box-shadow: 0 0 8px var(--cottage-goldenrod);
}

body.night-mode .font-option {
  background-color: rgba(75, 65, 85, 0.9);
  color: #E6E1D3;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

body.night-mode .font-option.selected {
  border: 2px solid var(--cottage-goldenrod);
  background-color: rgba(95, 85, 105, 0.9);
}

body.night-mode .cursor-option {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(75, 65, 85, 0.9);
}

body.night-mode .cursor-option.selected {
  border: 2px solid var(--cottage-goldenrod);
  box-shadow: 0 0 8px var(--cottage-goldenrod);
}

body.night-mode .slider-track {
  background-color: rgba(55, 45, 65, 0.9);
  border: 1px solid var(--cottage-lavender);
}

body.night-mode .slider-handle {
  background-color: var(--cottage-goldenrod);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

body.night-mode .slider-values {
  color: #E6E1D3;
}

body.night-mode .theme-selector, 
body.night-mode .font-selector, 
body.night-mode .cursor-selector {
  background-color: rgba(55, 45, 65, 0.6);
  border: 1px solid var(--cottage-lavender);
  padding: 5px;
  border-radius: 8px;
}

/* Fixes for dark mode transparent corners */
body.night-mode .cottage-window {
  background: rgba(35, 33, 43, 0.95) !important;
  border-radius: 15px !important;
  overflow: hidden !important;
}

body.night-mode .window-titlebar {
  background: var(--window-titlebar) !important;
  color: var(--cottage-sepia) !important;
}

/* Mobile app back button styles */
.mobile-app-back-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: 2px solid var(--cottage-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cottage-sepia);
  font-size: 1.5em;
  z-index: 99999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.mobile-app-back-btn:hover {
  background: rgba(255,255,255,0.6);
}

.mobile-app-back-btn:active {
  background: var(--cottage-sage);
  color: #fff;
  transform: scale(0.96);
}

/* Night mode styling for back button */
body.night-mode .mobile-app-back-btn {
  background: rgba(50,50,70,0.8);
  border-color: var(--cottage-lavender);
  color: #f5e6d3;
}

body.night-mode .mobile-app-back-btn:active {
  background: var(--cottage-lavender);
}

/* Mobile SYNEVA app styles */

/* Enhanced mobile responsiveness for weather app */
@media (max-width: 480px) {
  .mobile-app-modal .weather-container {
    padding: 15px 10px;
    min-height: auto; /* Allow height to adjust to content */
  }
  
  .mobile-app-modal .stained-glass {
    width: 180px; /* Smaller on very small screens */
    height: 180px;
    margin-bottom: 15px;
  }
  
  .mobile-app-modal .weather-status {
    font-size: 24px; /* Slightly smaller on very small screens */
  }
  
  .mobile-app-modal .weather-temp {
    font-size: 20px; /* Slightly smaller on very small screens */
  }
  
  .mobile-app-modal .forecast {
    padding: 8px 5px;
    flex-wrap: wrap; /* Allow forecast days to wrap on very small screens */
    justify-content: center;
  }
  
  .mobile-app-modal .forecast-day {
    padding: 5px;
    min-width: 60px; /* Ensure minimum touch target size */
    margin: 0 2px;
  }
}

/* Fix for older iOS devices and better touch targets */
@media (hover: none) and (pointer: coarse) {
  .mobile-app-modal .forecast-day {
    padding: 10px; /* Larger touch targets for touch devices */
  }
  
  .mobile-app-modal .day-icon {
    width: 40px; /* Even larger touch targets */
    height: 40px;
  }
}

/* Comprehensive fix for text visibility in weather app */
body:not(.night-mode) .mobile-app-modal .weather-container *,
body:not(.night-mode) .mobile-app-modal .weather-animation *,
body:not(.night-mode) .mobile-app-modal .weather-info *,
body:not(.night-mode) .mobile-app-modal .forecast * {
  color: #333333 !important; /* Force dark text in light mode */
  text-shadow: none !important; /* Remove any shadows that might affect legibility */
}

body:not(.night-mode) .mobile-app-modal .weather-status,
body:not(.night-mode) .mobile-app-modal .weather-temp,
body:not(.night-mode) .mobile-app-modal .day-name,
body:not(.night-mode) .mobile-app-modal .day-temp,
body:not(.night-mode) .mobile-app-modal .detail-label,
body:not(.night-mode) .mobile-app-modal .detail-value {
  color: #333333 !important; /* Force dark text with higher specificity */
  font-weight: 600 !important; /* Make text bolder for better visibility */
}

/* Ensure text contrast in both modes */
.mobile-app-modal .weather-info {
  background-color: rgba(255, 255, 255, 0.85); /* More opaque background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow for depth */
}

body.night-mode .mobile-app-modal .weather-info {
  background-color: rgba(0, 0, 0, 0.5); /* Darker background in night mode */
}

/* Fix accessibility issues with minimum contrast ratio */
.mobile-app-modal .weather-container a,
.mobile-app-modal .weather-container button {
  color: #0066cc !important; /* Accessible blue for interactive elements */
}

body.night-mode .mobile-app-modal .weather-container a,
body.night-mode .mobile-app-modal .weather-container button {
  color: #66b0ff !important; /* Lighter blue for night mode */
}
