/* ==========================================
   Busan Coffee Road - Core Styling
   ========================================== */

/* Color & Theme Variables */
:root {
  /* Dark Mode (Default) */
  --bg-main: #0c0806;
  --bg-sidebar: #130c09;
  --bg-card: rgba(28, 19, 14, 0.5);
  --bg-card-hover: rgba(45, 30, 22, 0.75);
  --text-main: #fcf8f5;
  --text-muted: #c4b0a3;
  --primary: #e6a15c; /* Crema Gold */
  --primary-glow: rgba(230, 161, 92, 0.4);
  --secondary: #38bdf8; /* Busan Ocean Sky Blue */
  --secondary-glow: rgba(56, 189, 248, 0.3);
  --border: rgba(213, 189, 175, 0.12);
  --border-focus: rgba(230, 161, 92, 0.4);
  --input-bg: rgba(20, 13, 9, 0.6);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --sidebar-width: 280px;
  --font-outfit: 'Outfit', sans-serif;
  --font-noto: 'Noto Sans KR', sans-serif;
}

body.light-mode {
  /* Light Mode (Creamy Latte) */
  --bg-main: #fdfaf7;
  --bg-sidebar: #f5ebe0;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --text-main: #2b1c15;
  --text-muted: #786255;
  --primary: #c27d38; /* Rich Latte Caramel */
  --primary-glow: rgba(194, 125, 56, 0.25);
  --secondary: #0284c7; /* Busan Ocean Deep Blue */
  --secondary-glow: rgba(2, 132, 199, 0.25);
  --border: rgba(60, 42, 33, 0.08);
  --border-focus: rgba(194, 125, 56, 0.4);
  --input-bg: rgba(255, 255, 255, 0.8);
  --shadow-color: rgba(60, 42, 33, 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease, box-shadow 0.3s ease;
}

body {
  font-family: var(--font-noto);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Glowing Ambient Background */
.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

#orb-1 {
  width: 450px;
  height: 450px;
  background: var(--primary);
  top: -100px;
  right: 10%;
  animation: floatOrb 25s infinite alternate ease-in-out;
}

#orb-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -150px;
  left: 15%;
  animation: floatOrb 30s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}

/* Layout Structure */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  height: 100vh;
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
}

.logo-icon {
  font-size: 2.5rem !important;
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text h1 {
  font-family: var(--font-outfit);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text p {
  font-family: var(--font-outfit);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-noto);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-glow), transparent);
  transition: width 0.3s ease;
  z-index: 0;
}

.nav-item span {
  position: relative;
  z-index: 1;
}

.nav-item .material-symbols-outlined {
  font-size: 1.35rem;
}

.nav-item:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--border);
}

.nav-item.active::before {
  width: 100%;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.badge-icon {
  font-size: 1.8rem !important;
  color: var(--secondary);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.user-level {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
}

.theme-toggle:hover {
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Main Content Styling */
.main-content {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 3rem;
  max-width: 1300px;
}

/* Header Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}

.welcome-msg h2 {
  font-family: var(--font-noto);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.welcome-msg p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.quick-stats {
  display: flex;
  gap: 1rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 0.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 120px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.stat-value {
  font-family: var(--font-outfit);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Hero Banner Styling */
.hero-banner {
  position: relative;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  background-image: url('assets/hero_bg.png');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: center;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(12, 8, 6, 0.9) 40%, rgba(12, 8, 6, 0.2) 100%);
  z-index: 1;
}

body.light-mode .hero-overlay {
  background: linear-gradient(90deg, rgba(253, 250, 247, 0.95) 45%, rgba(253, 250, 247, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-outfit);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(230, 161, 92, 0.2);
}

.hero-content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Common Section Styles */
.section-header {
  margin-bottom: 2rem;
}

.section-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.highlight {
  color: var(--primary);
  font-family: var(--font-outfit);
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tab Management */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   1. Coffee Map CSS
   ========================================== */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 5px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  color: var(--text-muted);
  font-family: var(--font-noto);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.cafe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.cafe-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.cafe-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: 0 10px 20px var(--shadow-color), 0 0 10px var(--primary-glow);
}

.cafe-img-container {
  height: 170px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #221a15;
}

.cafe-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(12, 8, 6, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}

.cafe-info {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cafe-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cafe-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.cafe-location span {
  font-size: 0.95rem;
}

.cafe-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.cafe-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================
   2. Brewing Timer CSS
   ========================================== */
.timer-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 2rem;
  align-items: start;
}

.timer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.timer-visual-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.timer-phase {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.timer-time {
  font-family: var(--font-outfit);
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0.3rem 0;
}

.timer-target {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.7rem;
  border-radius: 30px;
}

.timer-controls {
  display: flex;
  gap: 0.8rem;
  width: 100%;
}

.timer-btn-action {
  flex: 1;
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.timer-btn-action:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #f0ab66;
}

.timer-btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.timer-btn-action.reset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-main);
  box-shadow: none;
}

.timer-btn-action.reset:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.brew-guide-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.2rem;
}

.brew-guide-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.guide-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
}

.guide-step.active {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  box-shadow: 0 0 12px rgba(230, 161, 92, 0.05);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-outfit);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.guide-step.active .step-num {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.step-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.step-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================
   3. Taste Matcher (Quiz) CSS
   ========================================== */
.quiz-container {
  max-width: 600px;
  margin: 0 auto;
}

.quiz-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.2rem;
}

.quiz-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.quiz-question-box .question-num {
  font-family: var(--font-outfit);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.quiz-question-box h4 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  color: var(--text-main);
  font-family: var(--font-noto);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.quiz-option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateX(4px);
}

.quiz-option:active {
  transform: translateX(2px);
}

/* Quiz Result Panel */
.quiz-result-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem;
  animation: scaleUp 0.4s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.result-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.8rem;
}

.result-icon {
  font-size: 3.5rem !important;
  color: var(--primary);
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.result-header h4 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 0.3rem;
  color: var(--text-main);
}

.result-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.result-matches {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.match-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 1.1rem;
  border-radius: 12px;
}

.match-item h5 {
  font-size: 0.82rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.match-item p {
  font-size: 0.95rem;
  font-weight: 700;
}

.restart-quiz-btn {
  width: 100%;
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.restart-quiz-btn:hover {
  background: #f0ab66;
}

.hidden {
  display: none !important;
}

/* ==========================================
   4. Coffee Journal CSS
   ========================================== */
.journal-layout {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  gap: 2.2rem;
  align-items: start;
}

.journal-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
}

.journal-form-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--text-main);
  font-family: var(--font-noto);
  font-size: 0.88rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 6px var(--primary-glow);
}

.tasting-sliders {
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 12px;
}

.tasting-sliders h5 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  text-transform: uppercase;
}

.slider-group {
  margin-bottom: 0.8rem;
}

.slider-group:last-child {
  margin-bottom: 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.slider-labels span:last-child {
  font-weight: 700;
  color: var(--primary);
}

.slider-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 5px var(--primary-glow);
  transition: transform 0.1s ease;
}

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

.submit-journal-btn {
  width: 100%;
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.submit-journal-btn:hover {
  background: #f0ab66;
}

.journal-list-wrapper h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.journal-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.3rem;
  position: relative;
  animation: fadeIn 0.4s ease-out forwards;
}

.journal-card:hover {
  border-color: var(--border-focus);
}

.journal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.journal-card-title h5 {
  font-size: 1.05rem;
  font-weight: 700;
}

.journal-card-title span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.journal-tags {
  display: flex;
  gap: 0.4rem;
}

.journal-tag {
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

.journal-tag.brew {
  background: var(--secondary-glow);
  color: var(--secondary);
}

.journal-tag.roast {
  background: var(--primary-glow);
  color: var(--primary);
}

.journal-card-tasting {
  display: flex;
  gap: 1rem;
  margin: 0.8rem 0;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tasting-stat {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tasting-stat strong {
  color: var(--text-main);
  margin-left: 2px;
}

.journal-card-notes {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.delete-journal-btn {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-journal-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

/* ==========================================
   Responsive Styling
   ========================================== */
@media (max-width: 1024px) {
  .sidebar {
    width: 80px;
    padding: 2rem 0.5rem;
    align-items: center;
  }
  .logo-text,
  .user-info,
  .nav-item span:last-child {
    display: none;
  }
  .logo-area {
    justify-content: center;
    margin-bottom: 2.5rem;
  }
  .nav-item {
    justify-content: center;
    padding: 0.8rem;
  }
  .sidebar-footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .main-content {
    margin-left: 80px;
    padding: 2rem;
  }
  .timer-layout,
  .journal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .logo-area {
    margin-bottom: 0;
  }
  .nav-menu {
    flex-direction: row;
    margin: 0 1rem;
  }
  .nav-item {
    padding: 0.6rem;
  }
  .sidebar-footer {
    border-top: none;
    padding-top: 0;
    flex-direction: row;
    gap: 0.8rem;
  }
  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .quick-stats {
    width: 100%;
    justify-content: space-between;
  }
  .stat-card {
    flex: 1;
  }
  .hero-banner {
    height: auto;
    min-height: 180px;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  .hero-content h2 {
    font-size: 1.25rem;
  }
  .hero-content p {
    font-size: 0.78rem;
  }
}
