/* ----------------- */
/* Theme Variables    */
/* ----------------- */
:root {
  /* Light mode defaults */
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --input-bg: #f5f5f5;
  --input-text: #1a1a1a;
  --accent-color: #4a90e2;
  --note-text-color: var(--text-color);
}

body.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #eee;
  --input-bg: #333;
  --input-text: #eee;
  --note-text-color: #fff;
}

/* ----------------- */
/* Body & Inputs      */
/* ----------------- */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}


.container {
  max-width: 100%;
  padding: 0 1rem;
}

#inputSection input,
#inputSection select,
#inputSection button {
  background-color: var(--input-bg);
  color: var(--input-text);
  border: none;
  transition: background-color 0.3s, color 0.3s;
}
.analytics-badge {
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #000;
  margin-right: 4px;
  display: inline-block;
  transition: transform 0.2s;
}

.analytics-badge:hover {
  transform: scale(1.05);
  cursor: default;
}

.analytics-quick {
  margin-left: 10px;
  font-size: 0.75rem;
  color: #333;
}

.search-box {
  display: inline-block;
  width: 200px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}
.analytics-badge.selected {
  outline: 2px solid #333;
}

    .info-card {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding: 1rem;
      border: 1px solid #ddd;
      border-radius: 8px;
      background-color: #fff;
    }

    .info-card img {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .info-card h4 {
      margin-top: 0;
      margin-bottom: 0.5rem;
    }

    .info-card p {
      margin: 0;
      line-height: 1.4;
      font-size: 0.95rem;
    }

   

.analytics-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 10px;
  margin: 3px;
  color: #333;
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid rgba(0,0,0,0.1);
}

.analytics-badge.selected {
  border: 2px solid #444;
}

.small-search {
  font-size: 0.8rem;
  padding: 4px 8px;
  border: 1px solid #bbb;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.small-search:focus {
  border-color: #777;
}

    /* Responsive card */
    .login-card {
      max-width: 400px;
      width: 90%;
      margin: 3rem auto;
      padding: 1.5rem;
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    /* Adjust font size on small screens */
    @media (max-width: 576px) {
      .login-card h3 { font-size: 1.5rem; }
      .login-card p.small { font-size: 0.8rem; }
      .login-card .btn-sm { font-size: 0.85rem; padding: 0.375rem 0.5rem; }
      .login-card input.form-control { font-size: 0.9rem; }
    }

/* Loaders */
#thoughtGridLoader, #analyticsSummaryLoader {
  width: 3rem;
  height: 3rem;
  z-index: 10; /* above content */
}



/* Mic pulsing animation */
.mic-active {
  animation: pulse 1s infinite;
  color: #0d6efd; /* Bootstrap primary blue */
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.btn-xs {
  font-size: 0.65rem;      /* smaller font */
  padding: 0.25rem 0.4rem; /* reduced padding */
  line-height: 1.2;
}



/* ----------------- */
/* Notes / Wazos      */
/* ----------------- */
.note {
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease, background 0.3s;
  transition: filter 0.4s ease, opacity 0.4s ease;
  cursor: grab;
  color: var(--note-text-color);
  font-size: 0.95rem;
  min-height: 100px;
  flex: 0 0 23%;
  position: relative;
  opacity: 0;
}

.note.show { opacity: 1; }

.note:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
}

.note.standout {
  flex: 0 0 48%;
  font-size: 1.1rem;
}

.note-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.note-header .icons {
  display: flex;
  gap: 0.3rem;
}

.note-header .icons i { cursor: pointer; }

.note-text { white-space: pre-wrap; }

/* ----------------- */
/* Color Gradients    */
/* ----------------- */
.note[data-mood="happy"] { background: linear-gradient(135deg, #FFD700, #FFECB3); }
.note[data-mood="sad"] { background: linear-gradient(135deg, #6C5B7B, #C06C84); }
.note[data-mood="reflective"] { background: linear-gradient(135deg, #00C9FF, #92FE9D); }
.note[data-mood="insight"] { background: linear-gradient(135deg, #7F00FF, #E100FF); }
.note[data-mood="creative"] { background: linear-gradient(135deg, #FF6B6B, #FFD93D); }

/* Dark mode gradient adjustments */
body.dark-mode .note[data-mood="happy"] { background: linear-gradient(135deg, #FFD700aa, #FFECB3aa); }
body.dark-mode .note[data-mood="sad"] { background: linear-gradient(135deg, #6C5B7Baa, #C06C84aa); }
body.dark-mode .note[data-mood="reflective"] { background: linear-gradient(135deg, #00C9FFaa, #92FE9Daa); }
body.dark-mode .note[data-mood="insight"] { background: linear-gradient(135deg, #7F00FFaa, #E100FFaa); }
body.dark-mode .note[data-mood="creative"] { background: linear-gradient(135deg, #FF6B6Baa, #FFD93Daa); }

/* Optional overlay for readability in dark mode */
body.dark-mode .note::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  pointer-events: none;
}

/* ----------------- */
/* Analytics & Loading */
/* ----------------- */
#analyticsSummary {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
}

#loading { display: none; }
#loading.show { display: block; }

/* ----------------- */
/* Theme Toggle Icon  */
/* ----------------- */
#themeToggle {
  transition: transform 0.2s, color 0.2s;
}

#themeToggle:hover {
  transform: scale(1.2);
  color: var(--accent-color);
}

/* ----------------- */
/* Info Cards Styling */
/* ----------------- */
.info-card {
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.3s, color 0.3s;
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  color: #1a1a1a;
}

/* Dark mode card */
body.dark-mode .info-card {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: #eee;
}

/* Optional: subtle header styling */
.info-card h2, .info-card h4 {
  margin-bottom: 0.8rem;
}

/* Footer consistent spacing */
footer a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

footer a:hover {
  color: var(--accent-color);
}


#inputFilterSection input,
#inputFilterSection select,
#inputFilterSection button {
  padding: 0 0.5rem;
  line-height: 1.2;
}

#inputFilterSection button i {
  font-size: 0.85rem;
}

/* Layout Container */
#thoughtGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem; /* ensure breathing room */
  box-sizing: border-box;
}

/* Base Card */
.note {
  flex: 1 1 22%;        /* ~4 per row on wide screens */
  min-width: 240px;     /* prevents tiny cards */
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--note-text-color);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: transform 0.25s ease;
  display: block;
  width: 100%; 
  min-height: 100px; 
}

/* Hover */
.note:hover {
  transform: translateY(-4px);
}

/* Standout Card (col-8 on large screens) */
.note.standout {
  flex: 1 1 66%;      /* ≈ col-8 width */
  min-width: 300px;
  font-size: 1.15rem;
}

/* Tablet (two per row) */
@media (max-width: 768px) {
  .note {
    flex: 1 1 48%;
    font-size: 1rem;
  }
  .note.standout {
    flex: 1 1 100%;   /* full width on tablet */
    font-size: 1.1rem;
  }
}

/* Mobile (always single column) */
@media (max-width: 480px) {
  .note,
  .note.standout {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    font-size: 1.1rem;
    padding: 1.1rem;
  }
}

/* Mobile Boost */
@media (max-width: 600px) {
  .note,
  .note.standout {
    width: 100% !important;
    flex: 0 0 100% !important;
    font-size: 1.15rem;
    padding: 1.25rem;
  }
}

/* ---- Responsive Styles for Thought Wall ---------- */

    @media (max-width: 768px) {
      .container-fluid { padding-left: 15px; padding-right: 15px; }
      #thoughtGrid { gap: 2px !important; }
      .thought-card { width: calc(50% - 4px) !important; min-width: 150px; }
      #inputSectionWrapper .d-flex { flex-direction: column; gap: 8px; }
      #inputSectionWrapper .d-flex:first-child { flex-direction: row; }
      .analytics-quick { font-size: 0.7rem; }
      #searchBox { width: 100%; margin-top: 8px; margin-left: 0 !important; }
      .modal-dialog { margin: 10px; }
      footer .d-flex { flex-direction: column; gap: 8px !important; }
    }
    @media (max-width: 480px) {
      h3 { font-size: 1.25rem; }
      .thought-card { width: 100% !important; }
      #thoughtGrid { gap: 8px !important; }
      #themeToggle { margin-left: 4px; }
    }


