/* add root styles for colours */

:root {
  --page_bg: #f9f9f9;

  --font: "National Park", "Arial", "Verdana", sans-serif;
  --font_colour: #333;
  --font_weight: 400;

  --heading_font: "Arvo", "Arial", "Verdana", sans-serif;
  --heading_colour: #333;
  --heading_weight: 700;

  --link_colour: #FD9473;
  --link_hover: #EC63A8;

  --button_bg: #FD9473;
  --button_colour: #fff;
  --button_bg_hover: #EC63A8;
  --button_colour_hover: #fff;

  --nav_item_bg: #087E8B;
  --nav_item_colour: #fff;
  --nav_item_bg_hover: #0B3954;
  --nav_item_colour_hover: #fff;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  font-size: 130%;
  color: var(--font_colour);
  background-color: var(--page_bg);
}

a {
  color: var(--link_colour);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link_hover);
}

ul {
  list-style: none;
}

h1, h2, h3 {
    font-family: var(--heading_font);
}

button, .btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--button_bg);
  color: var(--button_colour);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover, .btn:hover {
  background-color: var(--button_bg_hover);
  color: var(--button_colour_hover);
  transform: translateY(-2px);
}

button.primary, .btn.primary {
  background-color: var(--button_bg);
  color: var(--button_colour);
}

button.primary:hover, .btn.primary:hover {
  background-color: var(--button_bg_hover);
  color: var(--button_colour_hover);
}

/* Header Controls & Quick Actions */
.header-controls {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
}

.quick-actions {
  display: flex;
}

.quick-action-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--button_bg);
  color: var(--button_colour);
  margin-left: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background-color: var(--button_bg_hover);
  transform: translateY(-2px);
  color: var(--button_colour_hover);
}

/* Navigation Icons */
.nav-icon {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

/* User Info & Actions */
.user-icon {
  margin-right: 10px;
  font-size: 18px;
}

.logout-btn i {
  margin-right: 5px;
}

/* Mobile Responsiveness for Header Controls */
@media (max-width: 768px) {
  .header-controls {
    top: 15px;
    left: 15px;
  }
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 25px;
}

.dashboard-header h3 {
  margin-bottom: 5px;
  color: var(--heading_colour);
}

.last-login {
  color: #8A8A8A;
}

.dashboard-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-value {
  font-size: 32px;
  font-weight: 500;
  color: var(--heading_colour);
  margin-bottom: 5px;
}

.stat-label {
  color: #4A4A4A;
}

.stat-detail {
  font-size: 12px;
  color: #8A8A8A;
  margin-top: 5px;
}

.dashboard-sections {
  margin-bottom: 30px;
}

.dashboard-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #FFE4E1;
}

.section-header h4 {
  color: var(--heading_colour);
  margin: 0;
}

.view-all {
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dashboard-card {
  background-color: #FFF5F5;
  border-radius: 6px;
  padding: 15px;
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
}

.dashboard-card .card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dashboard-card .card-content {
  margin-bottom: 15px;
  color: #4A4A4A;
  line-height: 1.5;
}

.dashboard-card .card-actions {
  text-align: right;
}

/* Insight navigation styles */

.insight-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.insight-counter {
  color: #8A8A8A;
  align-self: center;
}

.insight-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 15px;
}

.delete-insight-btn {
  background-color: #ffebee;
  color: #c62828;
}

.delete-insight-btn:hover {
  background-color: #ffcdd2;
}

.insight-card {
  background-color: #FFF5F5;
  border-left: 3px solid #FFD1DC;
}

.insight-type {
  font-size: 12px;
  background-color: var(--button_bg);
  color: var(--button_colour);
  padding: 2px 8px;
  border-radius: 12px;
}

.empty-notice {
  padding: 20px;
  text-align: center;
  color: #8A8A8A;
}

.action-link {
  margin-top: 15px;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.action-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.action-label {
  font-weight: 500;
  color: #4A4A4A;
}

.btn.small {
  padding: 4px 8px;
  font-size: 12px;
}



/* Responsive styles for auth pages */
@media (max-width: 480px) {
  .auth-card {
    padding: 20px;
  }
}

/*
 * Reflective Journal Application Stylesheet
 */


/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: #FFE4E1 url(../icon.png) no-repeat bottom center;
  background-size: 150px auto;
  padding: 20px;
  position: fixed;
  height: 100vh;
  left: -250px;
  transition: left 0.3s ease;
  z-index: 100;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

.content {
  flex: 1;
  padding: 75px 10px 10px 10px;
  margin-left: 0;
  transition: margin-left 0.3s ease;
  width: 100%;
}

.content.sidebar-open {
  margin-left: 250px;
}

.hamburger-menu {
  cursor: pointer;
  background-color: var(--button_bg);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hamburger-menu:hover {
  background-color: var(--button_bg_hover);
  transform: translateY(-2px);
}

.hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--button_colour);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}

.hamburger-icon span:nth-child(2) {
  top: 6px;
}

.hamburger-icon span:nth-child(3) {
  top: 12px;
}

.hamburger-menu.open .hamburger-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.hamburger-menu.open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open .hamburger-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Logo */
.logo {
  margin-bottom: 30px;
  text-align: center;
}

.logo h1 {
  font-family: var(--heading_font);
  color: var(--heading_colour);
  font-size: 24px;
}

/* Navigation */
.nav-menu {
  margin-top: 50px;
}

.nav-menu li {
  margin-bottom: 10px;
}

.nav-menu li a {
  display: block;
  padding: 10px;
  border-radius: 4px;
  color: #4A4A4A;
  transition: all 0.3s ease;
}

.nav-menu li a:hover {
  background-color: rgba(255, 218, 185, 0.5);
}

.nav-menu li.active a {
  background-color: var(--link_colour);
  color: #fff;
  font-weight: 500;
}

.nav-menu li a:hover {
  background-color: var(--link_colour);
  color: #fff;
  font-weight: 500;
}

/* Page title */
.page-title {
  margin-bottom: 30px;
  color: var(--heading_colour);
  border-bottom: 2px solid #FFD1DC;
  padding-bottom: 10px;
}

/* Flash messages */
.flash-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.flash-success {
  background-color: #DFFFD6;
  color: #2D7D32;
}

.flash-error {
  background-color: #FFEBEE;
  color: #C62828;
}

.flash-info {
  background-color: #E1F5FE;
  color: #0277BD;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-date {
  color: #333;
  font-weight: bold;
}

.card-mood {
  font-size: 24px;
  margin-left: 8px;
}

.card-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--heading_colour);
}

.card-content {
  margin-bottom: 15px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8A8A8A;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-tag {
  background-color: #FFDAB9;
  color: #4A4A4A;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 10px;
}

/* Journal entry specific */

/* Entry page tabs styling */
.entry-tabs {
  margin-bottom: 25px;
}

/* Date navigation section */
.date-navigation {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #FFE4E1;
}

.entry-tabs-nav {
  display: flex;
  border-bottom: 2px solid #FFE4E1;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 25px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #8A8A8A;
  transition: all 0.3s ease;
  border-radius: 4px 4px 0 0;
}

.tab-button:hover {
  background-color: #FFF5F5;
  color: #4A4A4A;
  transform: translateY(0);
}

.tab-button.active {
  color: var(--heading_colour);
  border-bottom: 3px solid var(--button_bg);
  background-color: #FFF5F5;
}

.entry-tabs-content {
  position: relative;
  min-height: 300px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {

  /* Keep action buttons accessible */
  .form-actions {
    position: sticky;
    bottom: 0;
    background-color: var(--page_bg);
    padding: 15px 0;
    margin-top: 20px;
    z-index: 10;
    border-top: 1px solid #FFE4E1;
  }
}

/* Empty insight state */
.empty-insight {
  background-color: #F0F8FF;
  border-left: 3px solid #87CEEB;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: #4A4A4A;
}

.empty-insight p {
  margin-bottom: 10px;
}

/* Make sure form actions appear below tab content */
.form-actions {
  position: relative;
  margin-top: 430px; /* Adjust based on your content height */
}

/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
  .entry-tabs-nav {
    flex-wrap: wrap;
  }

  .tab-button {
    padding: 8px 15px;
    font-size: 14px;
  }

  .form-actions {
    margin-top: 500px; /* Adjust for mobile */
  }

  /* Adjust date navigation for mobile */
  .date-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .date-navigation label {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .date-navigation input[type="date"] {
    width: calc(100% - 140px);
  }
}

.entry-gratitude {
  padding: 15px;
  border-left: 3px solid #FFD1DC;
  margin: 15px 0;
  font-style: italic;
  font-size: 85%;
}

.entry-gratitude-title {
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--heading_colour);
}

.action-items {
  margin-top: 15px;
}

.action-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.action-item.completed {
  text-decoration: line-through;
  color: #8A8A8A;
}

.action-item-checkbox {
  margin-right: 10px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #FFD1DC;
  border-radius: 4px;
  background-color: white;
  font-family: inherit;
  font-size: 100%;
}

input[type="date"] {
  width: calc(65%);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #FF9A8B;
  box-shadow: 0 0 0 2px rgba(255, 154, 139, 0.25);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Mood selector */
.mood-selector {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.mood-option {
  text-align: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mood-option:hover {
  background-color: #FFE4E1;
}

.mood-option.selected {
  background-color: var(--button_bg) !important;
}

.mood-emoji {
  font-size: 24px;
  margin-bottom: 5px;
}

.mood-label {
  font-size: 12px;
}

/* Action items input */
.action-items-container {
  margin-top: 10px;
}

.action-item-input {
  display: flex;
  margin-bottom: 10px;
}

.action-item-input input {
  flex: 1;
  margin-right: 10px;
}

.add-action-btn {
  background-color: var(--button_bg);
  color: var(--button_colour);
  border: none;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #8A8A8A;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.empty-state-message {
  margin-bottom: 20px;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Goals Page Styles */
.goals-container {
  max-width: 800px;
  margin: 0 auto;
}

.week-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.week-range {
  font-size: 18px;
  color: #4A4A4A;
}

.progress-container {
  margin-bottom: 30px;
}

.progress-bar {
  height: 20px;
  background-color: #FFE4E1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background-color: #FF9A8B;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  color: #8A8A8A;
}

.goals-list {
  margin-bottom: 30px;
}

.goal-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.goal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.goal-item.completed {
  background-color: #F8F8F8;
}

.goal-item.completed .goal-content {
  text-decoration: line-through;
  color: #8A8A8A;
}

.goal-checkbox {
  margin-right: 15px;
  padding-top: 3px;
}

.goal-checkbox-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.goal-content {
  flex: 1;
  line-height: 1.5;
}

.goal-actions {
  margin-left: 10px;
}

.delete-goal-btn {
  background: none;
  border: none;
  color: var(--heading_colour);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.delete-goal-btn:hover {
  opacity: 1;
  background-color: #FFE4E1;
}

.add-goal-container {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.add-goal-container h3 {
  margin-bottom: 15px;
  color: var(--heading_colour);
}

.add-goal-form textarea {
  min-height: 80px;
}

.insights-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFE4E1;
  padding-bottom: 10px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  color: #8A8A8A;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tab-btn:hover {
  background-color: #FFE4E1;
  color: #4A4A4A;
  transform: translateY(0);
}

.tab-btn.active {
  background-color: var(--button_bg);
  color: var(--button_colour);
}

/* Generation form styling */
.generate-insight-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.generate-insights-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.date-selection {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.date-selection .form-group {
  flex: 1;
}

/* Insights list styling */
.insights-list-section {
  margin-top: 30px;
}

.insights-list-section h3 {
  margin-bottom: 20px;
  color: var(--heading_colour);
  border-bottom: 1px solid #FFE4E1;
  padding-bottom: 10px;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.insight-list-item {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.insight-list-content {
  flex: 1;
}

.insight-list-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.insight-date, .insight-date-range {
  font-weight: 500;
  color: #4A4A4A;
}

.insight-created {
  color: #8A8A8A;
  font-size: 0.9em;
}

.insight-preview {
  color: #4A4A4A;
  line-height: 1.6;
}

.insight-prompt {
  margin-bottom: 10px;
  font-style: italic;
}

.insight-list-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 20px;
}

/* Single insight view styling */
.insight-view {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.insight-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #FFE4E1;
}

.insight-meta h3 {
  margin: 0 0 10px 0;
  color: var(--heading_colour);
}

.custom-prompt {
  margin: 15px 0;
  padding: 10px 15px;
  background-color: #FFF5F5;
  border-radius: 6px;
  border-left: 3px solid #FFD1DC;
}

.insight-full-content {
  line-height: 1.8;
  margin-bottom: 30px;
}

.insight-actions {
  text-align: right;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #FFE4E1;
}

.delete-insight-btn {
  background-color: #FFEBEE;
  color: #C62828;
}

.delete-insight-btn:hover {
  background-color: #FFCDD2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .date-selection {
    flex-direction: column;
    gap: 10px;
  }

  .insight-list-item {
    flex-direction: column;
  }

  .insight-list-actions {
    flex-direction: row;
    margin-left: 0;
    margin-top: 15px;
    width: 100%;
    justify-content: flex-end;
  }

  .insight-view-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .insight-view-header a {
    margin-bottom: 15px;
  }

  .insight-list-header {
    flex-direction: column;
  }

  .insight-created {
    margin-top: 5px;
  }
}

.daily-insight-container {
  background-color: #F0F8FF;
  border-left: 3px solid #87CEEB;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 25px;
}

.daily-insight-container h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #0277BD;
  font-size: 16px;
}

.daily-insight-preview {
  line-height: 1.6;
  color: #4A4A4A;
}

.daily-insight-full {
  line-height: 1.6;
  color: #4A4A4A;
  margin-top: 10px;
}

.read-more-btn, .read-less-btn {
  margin-left: 10px;
  background-color: #87CEEB;
  color: white;
  border: none;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8em;
}

.read-more-btn:hover, .read-less-btn:hover {
  background-color: #5CACEE;
}

/* Habits Tracking Styles (for future implementation) */
.habits-container {
  margin-top: 40px;
}

/* User Section in Sidebar */
.user-section {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 218, 185, 0.5);
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--button_bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-right: 10px;
}

.user-name {
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.logout-btn {
  display: inline-block;
  width: 100%;
  padding: 8px 16px;
  background-color: #FFE4E1;
  color: #4A4A4A;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: var(--button_bg);
  color: var(--button_colour);
}

/* Authentication Layout */
.auth-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #FFF5F5;
}

.auth-header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  text-align: center;
}

.auth-header .logo h1 {
  font-size: 24px;
  color: var(--heading_colour);
  margin: 0;
}

.auth-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.auth-footer {
  background-color: white;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  text-align: center;
  color: #8A8A8A;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.auth-card h2 {
  color: var(--heading_colour);
  margin-bottom: 20px;
  text-align: center;
}

.auth-form {
  margin-top: 20px;
}

.auth-links {
  margin-top: 20px;
  text-align: center;
}

.auth-separator {
  margin: 0 5px;
  color: #8A8A8A;
}

.error-messages {
  background-color: #FFEBEE;
  color: #C62828;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.error-message {
  margin-bottom: 5px;
}

.error-message:last-child {
  margin-bottom: 0;
}

.success-message {
  background-color: #DFFFD6;
  color: #2D7D32;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.form-hint {
  font-size: 12px;
  color: #8A8A8A;
  margin-top: 5px;
}

.debug-info {
  background-color: #E1F5FE;
  color: #0277BD;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
}

/* Content Header */
.content-header {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .sidebar {
    width: 200px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -100%; /* Ensure it's completely off-screen initially */
    z-index: 100;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.open {
    left: 0;
  }

  /* Hide the navigation icons that are showing prematurely */
  .app-container > nav:not(.open) .nav-menu {
    display: none;
  }

  .content {
    margin-left: 0;
  }

  .nav-menu {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
  }

  .nav-menu li {
    margin-bottom: 0;
    flex: 1;
    text-align: left;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-actions {
    margin-top: 10px;
  }
}

/* Search Page Styles */
.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-header {
  margin-bottom: 30px;
}

.search-form {
  width: 100%;
}

.search-input-container {
  display: flex;
  position: relative;
  margin-bottom: 15px;
}

.search-input {
  flex: 1;
  border: 2px solid #FFD1DC;
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
  border-color: #FF9A8B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.search-instructions h3 {
  color: var(--heading_colour);
  margin-bottom: 15px;
}

.search-instructions p {
  margin-bottom: 20px;
}

.search-tips {
  background-color: #FFF5F5;
  padding: 15px;
  border-radius: 6px;
}

.search-tips h4 {
  margin-bottom: 10px;
  color: #4A4A4A;
}

.search-tips ul {
  list-style-type: disc;
  margin-left: 20px;
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #FF9A8B;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background-color: #FFF5F5;
}

.search-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.search-filters label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.search-filters input[type="radio"] {
  margin-right: 5px;
}

.search-results-header {
  margin-bottom: 20px;
}

.search-results-header h3 {
  color: #4A4A4A;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.result-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 3px solid #FFD1DC;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-card.entry-result {
  border-left: 3px solid #FF9A8B;
}

.result-card.goal-result {
  border-left: 3px solid #FFDAB9;
}

.result-card.goal-result.completed {
  border-left: 3px solid #90EE90;
}

.result-card.insight-result {
  border-left: 3px solid #87CEEB;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  color: #8A8A8A;
}

.result-type {
  background-color: #FFE4E1;
  color: #4A4A4A;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.goal-result .result-type {
  background-color: #FFDAB9;
}

.insight-result .result-type {
  background-color: #E1F5FE;
}

.result-content {
  margin-bottom: 15px;
  line-height: 1.6;
}

.result-gratitude {
  background-color: #FFF5F5;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  color: #4A4A4A;
  line-height: 1.4;
}

.result-actions {
  text-align: right;
}

.highlight {
  background-color: rgba(255, 154, 139, 0.25);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 500;
}

.search-instructions {
  background-color: white;
  border-radius: 8px;
  padding: 25px;

/* Dashboard Styles */
  .dashboard-container {
    max-width: 900px;
    margin: 0 auto;
  }

  .dashboard-header {
    margin-bottom: 25px;
  }

  .dashboard-header h3 {
    margin-bottom: 5px;
    color: var(--heading_colour);
  }

  /* On This Day / Memory Card Styles */
  .memory-card {
    background-color: #F0F8FF; /* Light blue background */
    border-left: 3px solid #87CEEB; /* Sky blue accent */
  }

  .memory-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .memory-years {
    background-color: #87CEEB; /* Sky blue */
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 10px;
  }

  .memory-card .card-content {
    position: relative;
  }

  .memory-card .card-content::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -5px;
    font-size: 24px;
    color: #87CEEB;
    font-family: serif;
    opacity: 0.6;
  }

  .memory-card .card-content::after {
    content: '"';
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 24px;
    color: #87CEEB;
    font-family: serif;
    opacity: 0.6;
  }

  @media (max-width: 768px) {
    .memory-card .card-header {
      flex-wrap: wrap;
    }

    .memory-years {
      margin-bottom: 5px;
    }
  }

  .dashboard-sections {
    margin-bottom: 30px;
  }

  .dashboard-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #FFE4E1;
  }

  .section-header h4 {
    color: var(--heading_colour);
    margin: 0;
  }

  .view-all {
  }

  .entry-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .dashboard-card {
    background-color: #FFF5F5;
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.3s ease;
  }

  .dashboard-card:hover {
    transform: translateY(-2px);
  }

  .dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .dashboard-card .card-content {
    margin-bottom: 15px;
    color: #4A4A4A;
    line-height: 1.5;
  }

  .dashboard-card .card-actions {
    text-align: right;
  }

  .insight-card {
    background-color: #FFF5F5;
    border-left: 3px solid #FFD1DC;
  }

  .insight-type {
    font-size: 12px;
    background-color: var(--button_bg);
    color: var(--button_colour);
    padding: 2px 8px;
    border-radius: 12px;
  }

  .empty-notice {
    padding: 20px;
    text-align: center;
    color: #8A8A8A;
  }

  .action-link {
    margin-top: 15px;
  }

  .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
  }

  .action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .action-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .action-label {
    font-weight: 500;
    color: #4A4A4A;
  }

  .btn.small {
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* Loading indicator styles */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 20px auto;
  text-align: center;
  color: #8A8A8A;
  font-size: 14px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 2px solid #FFE4E1;
  border-top: 2px solid #FF9A8B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Journal container */
.journal-container {
  max-width: 800px;
  margin: 0 auto;
}

.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.journal-actions {
  display: flex;
  gap: 10px;
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.entry-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.entry-date-info {
  display: flex;
  align-items: center;
}

/* Settings Page Styles */
.settings-container {
  max-width: 900px;
  margin: 0 auto;
}

.settings-header {
  margin-bottom: 30px;
  position: relative;
}

.settings-header h3 {
  margin-bottom: 10px;
  color: var(--heading_colour);
}

.intro-text {
  margin-bottom: 20px;
  line-height: 1.6;
}

.reset-form {
  position: absolute;
  right: 0;
  top: 0;
}

.settings-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFE4E1;
  padding-bottom: 10px;
}

.tab-link {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  color: #8A8A8A;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.tab-link i {
  margin-right: 8px;
}

.tab-link:hover {
  background-color: #FFE4E1;
  color: #4A4A4A;
}

.tab-link.active {
  background-color: #FFD1DC;
  color: #4A4A4A;
}

.settings-section {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-section h4 {
  color: var(--heading_colour);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #FFE4E1;
}

.settings-group {
  margin-top: 25px;
  margin-bottom: 30px;
}

.settings-group h5 {
  margin-bottom: 15px;
  color: #4A4A4A;
  font-size: 16px;
}

.setting-description {
  color: #8A8A8A;
  margin-bottom: 15px;
}

.setting-card {
  background-color: #FFF5F5;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.setting-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.setting-info label {
  font-weight: 500;
  color: #4A4A4A;
}

.form-toggle {
  display: flex;
  align-items: center;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-right: 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #FF9A8B;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-label {
  color: #4A4A4A;
}

.setting-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #FFD1DC;
  border-radius: 4px;
  font-family: inherit;
  font-size: 120%;
  line-height: 1.6;
  resize: vertical;
}

.setting-textarea:focus {
  outline: none;
  border-color: #FF9A8B;
  box-shadow: 0 0 0 2px rgba(255, 154, 139, 0.25);
}

.setting-input,
.setting-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #FFD1DC;
  border-radius: 4px;
  font-family: inherit;
}

.setting-input:focus,
.setting-select:focus {
  outline: none;
  border-color: #FF9A8B;
  box-shadow: 0 0 0 2px rgba(255, 154, 139, 0.25);
}

.form-note {
  margin-top: 10px;
  font-size: 12px;
  color: #8A8A8A;
  padding: 8px 12px;
  background-color: #F8F8F8;
  border-radius: 4px;
  border-left: 3px solid #FFD1DC;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.tips-box {
  background-color: #E1F5FE;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}

.tips-box h4 {
  color: #0277BD;
  margin-bottom: 15px;
  border-bottom: none;
  padding-bottom: 0;
}

.tips-box ul {
  list-style-type: disc;
  margin-left: 20px;
}

.tips-box li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .settings-header {
    padding-top: 40px;
  }

  .reset-form {
    position: relative;
    margin-top: 15px;
    text-align: right;
  }

  .setting-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-toggle {
    margin-top: 10px;
  }

  .settings-tabs {
    flex-wrap: wrap;
  }

  .tab-link {
    flex: 1;
    min-width: 100px;
    text-align: center;
    justify-content: center;
  }
}

/* Simplified Settings Page Styles */
.settings-container {
  max-width: 900px;
  margin: 0 auto;
}

.settings-header {
  margin-bottom: 30px;
}

.settings-header h3 {
  margin-bottom: 10px;
  color: var(--heading_colour);
  border-bottom: 2px solid #FFE4E1;
  padding-bottom: 10px;
}

.settings-list {
  margin-bottom: 40px;
}

.settings-group {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.settings-group h4 {
  margin-bottom: 15px;
  color: var(--heading_colour);
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
}

.settings-table th {
  text-align: left;
  padding: 10px;
  border-bottom: 2px solid #FFE4E1;
  font-weight: 500;
  color: #4A4A4A;
}

.settings-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #FFE4E1;
  vertical-align: middle;
}

.settings-table tr:hover {
  background-color: #FFF5F5;
}

.setting-name {
  font-weight: 500;
  width: 25%;
}

.setting-value {
  font-family: monospace;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
  width: 60%;
}

.setting-actions {
  width: 15%;
  text-align: right;
}

.edit-setting-form {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4A4A4A;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #FFD1DC;
  border-radius: 4px;
  font-family: inherit;
}

.setting-textarea {
  min-height: 200px;
  font-family: monospace;
  line-height: 1.5;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: #FF9A8B;
  box-shadow: 0 0 0 2px rgba(255, 154, 139, 0.25);
}

.form-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #8A8A8A;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .settings-table,
  .settings-table thead,
  .settings-table tbody,
  .settings-table th,
  .settings-table td,
  .settings-table tr {
    display: block;
  }

  .settings-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .settings-table tr {
    border-bottom: 2px solid #FFE4E1;
    margin-bottom: 15px;
    padding-bottom: 5px;
  }

  .settings-table td {
    border: none;
    border-bottom: 1px solid #FFE4E1;
    position: relative;
    padding-left: 50%;
    text-align: left;
  }

  .settings-table td:before {
    position: absolute;
    top: 12px;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: 500;
  }

  .settings-table td:nth-of-type(1):before { content: "Setting"; }
  .settings-table td:nth-of-type(2):before { content: "Value"; }
  .settings-table td:nth-of-type(3):before { content: "Actions"; }

  .setting-name,
  .setting-value,
  .setting-actions {
    width: 100%;
    text-align: left;
  }
}


.pwa-install-container {
  background-color: #FFF5F5;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px dashed #FFD1DC;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-indicator {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #4A4A4A;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border: 4px solid #FFE4E1;
  border-top: 4px solid var(--button_bg);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Calendar Styles */
.calendar-container {
  max-width: 900px;
  margin: 0 auto;
}

.calendar-header {
  margin-bottom: 30px;
  text-align: center;
}

.calendar-header h2 {
  color: var(--heading_colour);
  margin-bottom: 15px;
}

.month-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.month-navigation h3 {
  margin: 0;
  font-size: 24px;
  color: var(--heading_colour);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 500;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 4px;
  color: #4A4A4A;
}

.calendar-day {
  min-height: 100px;
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-day:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-day.empty {
  background-color: #f8f8f8;
  box-shadow: none;
}

.calendar-day.empty:hover {
  transform: none;
}

.calendar-day.today {
  border: 2px solid var(--button_bg);
}

.calendar-day.has-entry {
  background-color: #FFF5F5;
}

.mood_1 {
  background-color: #B0C4DE !important;
}

.mood_2 {
  background-color: #D6EAF8 !important;
}

.mood_3 {
  background-color: #E5E7E9 !important;
}

.mood_4 {
  background-color: #D5F5E3 !important;
}

.mood_5 {
  background-color: #ABEBC6 !important;
}

.day-number {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #4A4A4A;
}

.entry-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
}

.entry-mood {
  font-size: 24px;
  margin-bottom: 5px;
}

.entry-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.new-entry-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  margin: 10px auto;
  border-radius: 50%;
  background-color: #f1f1f1;
  color: #8A8A8A;
  font-size: 24px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.new-entry-link:hover {
  background-color: var(--button_bg);
  color: white;
}

.calendar-row-divider {
  grid-column: 1 / -1;
  height: 0;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-indicator {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-indicator.today {
  border: 2px solid var(--button_bg);
  background-color: white;
}

.legend-indicator.has-entry {
  background-color: #FFF5F5;
}

.legend-indicator.new-entry {
  background-color: #f1f1f1;
  color: #8A8A8A;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .calendar-grid {
    gap: 3px;
  }

  .calendar-day {
    min-height: 80px;
    padding: 3px;
  }

  .month-navigation {
    gap: 10px;
  }

  .calendar-legend {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

.facts-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.facts-header {
    margin-bottom: 30px;
}

.facts-header h3 {
    margin-bottom: 10px;
    color: var(--heading_colour);
}

.facts-actions {
    margin-top: 20px;
}

.facts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.facts-category {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.facts-category h4 {
    margin-bottom: 15px;
    color: var(--heading_colour);
    border-bottom: 1px solid #FFE4E1;
    padding-bottom: 10px;
    text-transform: capitalize;
}

.category-facts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fact-card {
    background-color: #FFF5F5;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fact-content {
    flex: 1;
    line-height: 1.5;
}

.fact-actions {
    display: flex;
    gap: 10px;
}

.delete-fact-btn {
    background-color: #FFEBEE;
    color: #C62828;
}

.delete-fact-btn:hover {
    background-color: #FFCDD2;
}

.edit-fact-form {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.edit-fact-form h4 {
    margin-bottom: 20px;
    color: var(--heading_colour);
}

.fact-textarea {
    min-height: 100px;
}

@media (max-width: 768px) {
    .fact-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .fact-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Add these styles to your screen.css file */

/* Modify the textarea styles to support auto-resizing */
textarea {
  min-height: 120px;
  resize: vertical;
  box-sizing: border-box; /* Ensure padding is included in width/height calculations */
}

/* Specifically for the journal textarea */
#journal_textarea {
  width: 100%;
  padding: 10px;
  line-height: 1.5;
  border: 1px solid #FFD1DC;
  border-radius: 4px;
  background-color: white;
  font-family: inherit;
  font-size: 100%;
  overflow-y: hidden; /* Hide scrollbar when using auto-resize */
}

/* Mobile optimizations */
@media (max-width: 768px) {
  #journal_textarea {
    padding-bottom: 20px; /* Adds extra padding at bottom for better visibility of typing */
  }

  /* Ensure the tab content has sufficient height */
  #journal-tab {
    min-height: 300px;
  }

}

.ajax-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s;
}

.ajax-message.show {
  opacity: 1;
  transform: translateY(0);
}

.ajax-message.success {
  background-color: #DFFFD6;
  color: #333;
}

.ajax-message.error {
  background-color: #F44336;
  color: white;
}

.ajax-message.info {
  background-color: #2196F3;
  color: white;
}