/* ==========================================================================
   Jólin — Owner Admin Dashboard Styling
   Target: https://jolinapp.app/admin
   Design: Nordic Festive Dark Mode, Glassmorphism, Luxury Micro-Interactions
   ========================================================================== */

:root {
  /* Official Brand Kit Color Palette */
  --bg-base: #08110D;
  --bg-surface: rgba(21, 71, 52, 0.35);
  --bg-surface-elevated: rgba(21, 71, 52, 0.55);
  --bg-card: rgba(18, 38, 28, 0.7);
  --bg-card-hover: rgba(25, 52, 38, 0.85);
  
  --border-subtle: rgba(212, 176, 106, 0.18);
  --border-active: rgba(212, 176, 106, 0.5);
  --border-muted: rgba(255, 255, 255, 0.08);

  --text-primary: #F8F3E9;
  --text-secondary: #BACCC2;
  --text-muted: #6E887B;
  
  --forest-green: #154734;
  --forest-green-light: #1F6349;
  --gold-primary: #D4B06A;
  --gold-champagne: #F8F3E9;
  --gold-glow: rgba(212, 176, 106, 0.25);
  --burgundy: #9F2D2D;
  --burgundy-light: #B83B3B;
  --emerald: #10B981;
  --amber: #D4B06A;
  --crimson: #9F2D2D;

  /* Typography */
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 4px 20px rgba(212, 160, 23, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse at 15% 10%, rgba(31, 66, 49, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(139, 30, 45, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(11, 19, 14, 0.95) 0%, #080E0A 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(11, 19, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--forest-green-light), var(--forest-green));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-gold);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold-champagne);
  border: 1px solid rgba(212, 160, 23, 0.3);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.user-badge {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-champagne);
  background: rgba(212, 160, 23, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 160, 23, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Nav Tabs */
.tab-navigation {
  display: flex;
  gap: 8px;
  padding: 12px 32px 0 32px;
  background: rgba(11, 19, 14, 0.5);
  border-bottom: 1px solid var(--border-muted);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn.active {
  color: var(--gold-champagne);
  border-bottom-color: var(--gold-primary);
  background: rgba(212, 160, 23, 0.08);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Grid & Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.4;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold-primary);
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.metric-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Notice / Unmeasured Banner */
.notice-card {
  background: rgba(20, 34, 26, 0.55);
  border: 1px dashed rgba(212, 160, 23, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.notice-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notice-icon {
  font-size: 24px;
  color: var(--gold-primary);
}

.notice-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-champagne);
}

.notice-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.badge-unmeasured {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-muted);
  white-space: nowrap;
}

/* Charts & History Section */
.content-section {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search and Filters */
.search-box {
  position: relative;
  min-width: 240px;
}

.search-input {
  width: 100%;
  background: rgba(11, 19, 14, 0.7);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 9px 14px 9px 36px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--gold-primary);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.select-filter {
  background: rgba(11, 19, 14, 0.7);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

.select-filter:focus {
  border-color: var(--gold-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), #B8860B);
  color: #0B130E;
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E5B228, var(--gold-primary));
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-muted);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-subtle);
}

.btn-danger {
  background: rgba(139, 30, 45, 0.2);
  color: #FFA5A5;
  border: 1px solid rgba(139, 30, 45, 0.4);
}

.btn-danger:hover {
  background: rgba(139, 30, 45, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Table */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background: rgba(11, 19, 14, 0.6);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-muted);
}

.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-scheduled {
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold-champagne);
  border: 1px solid rgba(212, 160, 23, 0.3);
}

.status-completed {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-muted);
}

/* Voting Progress Bars in Table / Analytics */
.option-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.option-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.option-bar-label {
  flex: 1;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-bar-track {
  flex: 2;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.option-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest-green-light), var(--gold-primary));
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-bar-stats {
  font-weight: 600;
  color: var(--gold-champagne);
  min-width: 50px;
  text-align: right;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-muted);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(11, 19, 14, 0.4);
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
  background: rgba(11, 19, 14, 0.8);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.options-builder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-muted);
}

.option-entry-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-key-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold-champagne);
  border: 1px solid rgba(212, 160, 23, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Alert Boxes */
.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-warning {
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: #F8D98C;
}

.alert-danger {
  background: rgba(139, 30, 45, 0.18);
  border: 1px solid rgba(139, 30, 45, 0.4);
  color: #FFA5A5;
}

/* Phone Mockup Preview */
.preview-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.phone-mockup {
  width: 320px;
  height: 600px;
  background: #0E1812;
  border: 10px solid #223328;
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 18px;
  background: #223328;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}

.phone-screen {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Subview Navigation */
.subview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(11, 19, 14, 0.5);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-muted);
}

.subview-switcher {
  display: inline-flex;
  background: rgba(15, 30, 22, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.subview-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.subview-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.subview-btn.active {
  background: rgba(212, 176, 106, 0.18);
  color: var(--gold-champagne);
  border: 1px solid rgba(212, 176, 106, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Calendar View */
.calendar-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.calendar-nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-month-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  min-width: 220px;
  text-align: center;
}

.calendar-legend-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.calendar-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-grid-wrapper {
  background: rgba(11, 19, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
  min-width: 910px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 4px;
}

.calendar-day-box {
  min-height: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 10px 8px 10px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.calendar-day-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.calendar-day-box.is-other-month {
  opacity: 0.28;
  background: rgba(11, 19, 14, 0.25);
  pointer-events: none;
}

.calendar-day-box.is-today {
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(212, 176, 106, 0.25);
}

.calendar-day-box.is-empty {
  border: 1px dashed rgba(212, 176, 106, 0.25);
  background: rgba(11, 19, 14, 0.45);
}

.calendar-day-box.is-empty:hover {
  border-color: var(--gold-primary);
  background: rgba(21, 71, 52, 0.3);
}

.day-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.day-box-number {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.day-box-today-pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gold-primary);
  color: #08110D;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.day-box-category {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-primary);
  background: rgba(212, 176, 106, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-box-question {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.day-box-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.day-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: 4px;
  color: var(--text-muted);
}

.day-empty-plus {
  font-size: 1.2rem;
  color: var(--gold-primary);
  opacity: 0.7;
}

.day-empty-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Catalog Subview */
.catalog-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-item-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-sm);
}

.catalog-item-card.is-scheduled {
  border-left: 4px solid var(--gold-primary);
}

.catalog-item-card.is-unscheduled {
  border-left: 4px solid var(--border-muted);
}

.catalog-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  flex: 1;
}

.catalog-item-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(11, 19, 14, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.catalog-option-pill {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-option-key {
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(212, 176, 106, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.catalog-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.catalog-schedule-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .navbar {
    padding: 14px 20px;
  }
  .tab-navigation {
    padding: 8px 16px 0 16px;
    overflow-x: auto;
  }
  .main-content {
    padding: 20px 16px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .notice-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

