/**
 * Elite+ - Visual Bug Fixes & Consistency Improvements
 * Ensures all components look polished and consistent
 */

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Prevent horizontal overflow */
html,
body {
  overflow-x: hidden;
}

/* Fix sidebar z-index issues */
.sidebar {
  z-index: 100;
}

.modal {
  z-index: 9999;
}

/* Ensure main content doesn't overlap sidebar */
.main {
  min-height: 100vh;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEXT & TYPOGRAPHY FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix text overflow in cards */
.card-title,
.achievement-name,
.match-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Consistent line heights */
p,
.text-sm,
.text-base {
  line-height: 1.6;
}

/* Fix monospace font rendering */
.hero-stat-value,
.stat-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTON FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ensure buttons have consistent sizing */
.btn {
  min-height: 40px;
  line-height: 1;
}

.btn-sm {
  min-height: 32px;
}

.btn-lg {
  min-height: 48px;
}

/* Fix button text alignment */
.btn svg {
  flex-shrink: 0;
}

/* Prevent button text wrapping on small screens */
.btn {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix card stacking context */
.card {
  position: relative;
  z-index: 1;
}

/* Ensure card content doesn't overflow */
.card-content {
  overflow: hidden;
}

/* Fix card grid gaps on mobile */
@media (max-width: 768px) {
  .card-grid,
  .achievement-grid {
    gap: var(--space-4);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Consistent input heights */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 40px;
}

/* Fix input padding consistency */
input:not([type="checkbox"]):not([type="radio"]),
select {
  padding: var(--space-2) var(--space-3);
}

textarea {
  padding: var(--space-3);
  resize: vertical;
  min-height: 100px;
}

/* Fix select dropdown arrow positioning */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

/* Fix checkbox alignment */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: var(--space-2);
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix modal scrolling on mobile */
.modal {
  overflow-y: auto;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
}

/* Fix modal backdrop click area */
.modal {
  padding: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix nav item text truncation */
.nav-item {
  width: 100%;
  overflow: hidden;
}

.nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* Fix nav icon sizing */
.nav-icon {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRID & LAYOUT FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix grid item sizing */
.achievement-grid,
.stats-grid,
.match-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Fix grid on very small screens */
@media (max-width: 480px) {
  .achievement-grid,
  .stats-grid,
  .match-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix flexbox gaps on older browsers */
.flex-gap {
  gap: var(--space-4);
}

@supports not (gap: var(--space-4)) {
  .flex-gap > * + * {
    margin-left: var(--space-4);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE & ICON FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Prevent image distortion */
img {
  height: auto;
  object-fit: cover;
}

/* Fix SVG sizing in flex containers */
svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Fix emoji sizing */
.emoji {
  font-size: inherit;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGE & TAG FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix badge alignment */
.badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}

/* Fix badge spacing in flex containers */
.badge + .badge {
  margin-left: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOOLTIP FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix tooltip positioning */
.tooltip {
  position: absolute;
  z-index: 10000;
  white-space: nowrap;
  max-width: 300px;
  word-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DROPDOWN FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix dropdown positioning */
.dropdown-menu {
  position: absolute;
  z-index: 1000;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
}

/* Fix dropdown item spacing */
.dropdown-item {
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLE FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix table overflow on mobile */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: var(--space-3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix sidebar on mobile */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main {
    margin-left: 0;
  }
}

/* Fix stat grid on tablet */
@media (max-width: 768px) {
  .dash-hero-main {
    grid-template-columns: 1fr 1fr;
  }
}

/* Fix stat grid on mobile */
@media (max-width: 480px) {
  .dash-hero-main {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Improve focus visibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Fix skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Improve contrast for disabled elements */
:disabled,
[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {
  /* Hide non-essential elements */
  .sidebar,
  .nav,
  .modal,
  .btn:not(.no-print) {
    display: none !important;
  }
  
  /* Reset colors for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  /* Expand main content */
  .main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Page breaks */
  .card,
  .achievement-card {
    page-break-inside: avoid;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATION PERFORMANCE FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Force GPU acceleration for animations */
.animate-in,
.animate-fade-in,
.card:hover,
.btn:hover {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BROWSER-SPECIFIC FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix Safari button rendering */
button {
  -webkit-appearance: button;
  appearance: button;
}

/* Fix iOS input zoom */
@media screen and (max-width: 480px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Fix Firefox button focus outline */
button::-moz-focus-inner {
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE CONSISTENCY
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ensure consistent dark theme */
[data-theme="dark"] {
  color-scheme: dark;
}

/* Fix autocomplete styling in dark mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MISC FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix loading spinner centering */
.loading-spinner {
  margin: 0 auto;
  display: block;
}

/* Fix empty state centering */
.empty-state {
  text-align: center;
  padding: var(--space-8);
}

/* Fix divider margins */
hr,
.divider {
  margin: var(--space-6) 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* Fix code block styling */
code,
pre {
  font-family: var(--font-mono);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

pre {
  padding: var(--space-4);
  overflow-x: auto;
}

/* Fix avatar group overlap */
.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  margin-left: -8px;
  border: 2px solid var(--bg-primary);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}
/* ═══════════════════════════════════════════════════════════════════════════
   GRADIENT & VISUAL FIXES - COMPREHENSIVE CLEANUP
   ═══════════════════════════════════════════════════════════════════════════ */

/* Remove ALL broken gradient pseudo-elements */
.card::before,
.card::after,
.stat-card::before,
.stat-card::after,
.hero-stat::before,
.hero-stat::after,
.journal-card::before,
.journal-card::after,
.match-card::before,
.match-card::after,
.training-card::before,
.training-card::after,
.analytics-card::before,
.analytics-card::after,
.stat-value::before,
.stat-value::after,
.hero-stat-value::before,
.hero-stat-value::after,
.stat-icon::before,
.stat-icon::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* Ensure clean solid backgrounds for all cards */
.card,
.stat-card,
.hero-stat,
.journal-card,
.match-card,
.training-card {
  background: var(--surface) !important;
  position: relative;
}

/* Clean hover states without gradient overlay */
.card:hover,
.stat-card:hover,
.hero-stat:hover {
  background: var(--surface) !important;
  border-color: rgba(99, 102, 241, 0.3);
}

/* Remove any radial/linear gradients on hover */
.card:hover::before,
.card:hover::after,
.stat-card:hover::before,
.stat-card:hover::after {
  display: none !important;
}

/* Nav item clean styling - ensure full text visibility */
.nav-item {
  white-space: nowrap;
  overflow: visible !important;
  text-overflow: clip !important;
  padding: 10px 12px !important;
  gap: 10px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.nav-item > span,
.nav-item > span:first-of-type {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 0 auto !important;
  min-width: auto !important;
}

/* Fix badge positioning - prevent stacking and overlap */
.nav-badge,
.pro-badge {
  flex-shrink: 0 !important;
  margin-left: 4px !important;
  white-space: nowrap !important;
  position: relative !important;
}

/* Unified PRO badge style - solid golden pill */
.nav-badge.pro,
.pro-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #000 !important;
  border: none !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) !important;
}

/* Hide JS-added pro-badge when nav-badge.pro already exists */
.nav-item .nav-badge.pro ~ .pro-badge,
.nav-item .pro-badge ~ .nav-badge.pro {
  display: none !important;
}

/* If item has NEW badge, hide the PRO badge too (they conflict visually) */
.nav-item .nav-badge.accent ~ .nav-badge.pro,
.nav-item .nav-badge.accent ~ .pro-badge {
  display: none !important;
}

/* Make sure icon doesn't shrink */
.nav-icon {
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
}

/* Sidebar content padding fix */
.sidebar-nav {
  padding: 12px !important;
  overflow-x: hidden !important;
}

.nav-group {
  padding: 0 !important;
}

.nav-label {
  padding: 0 12px !important;
  margin-bottom: 8px !important;
}

/* Sidebar width fix - ensure full content visibility */
.sidebar {
  width: 300px !important;
  min-width: 300px !important;
}

.main {
  margin-left: 300px !important;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 300px !important;
  }
  .main {
    margin-left: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED FEATURES STYLES (Inline for Quick Load)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Streaks Grid */
.streaks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.streak-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
}

.streak-item.active {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.streak-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.streak-value {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.streak-item.active .streak-value {
  color: var(--accent);
}

.streak-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Milestone Progress */
.milestone-progress-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.milestone-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.milestone-bar {
  height: 6px;
  background: var(--surface-hover);
  border-radius: 3px;
  overflow: hidden;
}

.milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Smart Insights */
.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.insight-item:last-child {
  margin-bottom: 0;
}

.insight-positive {
  border-left: 3px solid var(--green);
}

.insight-warning {
  border-left: 3px solid var(--orange);
}

.insight-tip {
  border-left: 3px solid var(--blue);
}

.insight-info {
  border-left: 3px solid var(--purple);
}

.insight-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.insight-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.insight-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.insight-message {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .streaks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .streak-item {
    padding: 12px 8px;
  }
  
  .streak-value {
    font-size: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GOALS PAGE LAYOUT FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Goals page header */
#goalsContent .page-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 24px !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

#goalsContent .page-header h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--text-primary, #fafafa) !important;
  margin: 0 0 4px 0 !important;
}

#goalsContent .page-subtitle {
  font-size: 14px !important;
  color: var(--text-muted, #71717a) !important;
  margin: 0 !important;
}

#goalsContent .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 20px !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #000 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

/* Goals stats row - force horizontal grid */
#goalsContent .goals-stats-row,
.goals-stats-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  #goalsContent .goals-stats-row,
  .goals-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  #goalsContent .goals-stats-row,
  .goals-stats-row {
    grid-template-columns: 1fr !important;
  }
}

/* Goal stat cards */
#goalsContent .goal-stat-card,
.goal-stat-card {
  background: var(--bg-surface, #0f0f12) !important;
  border: 1px solid var(--border, #27272a) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  min-width: 0 !important;
}

#goalsContent .goal-stat-card .stat-icon,
.goal-stat-card .stat-icon {
  font-size: 24px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg-elevated, #18181b) !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
}

#goalsContent .goal-stat-card .stat-content,
.goal-stat-card .stat-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

#goalsContent .goal-stat-card .stat-number,
.goal-stat-card .stat-number {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--text-primary, #fafafa) !important;
  line-height: 1.2 !important;
}

#goalsContent .goal-stat-card .stat-label,
.goal-stat-card .stat-label {
  font-size: 12px !important;
  color: var(--text-muted, #71717a) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Goals filters */
#goalsContent .goals-filters,
.goals-filters {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 24px !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

#goalsContent .filter-tabs,
.filter-tabs {
  display: inline-flex !important;
  gap: 4px !important;
  background: var(--bg-surface, #0f0f12) !important;
  padding: 4px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border, #27272a) !important;
}

#goalsContent .filter-tab,
.filter-tab {
  padding: 10px 16px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-muted, #71717a) !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
}

#goalsContent .filter-tab:hover,
.filter-tab:hover {
  color: var(--text-secondary, #a1a1aa) !important;
  background: var(--bg-elevated, #18181b) !important;
}

#goalsContent .filter-tab.active,
.filter-tab.active {
  background: var(--accent, #f59e0b) !important;
  color: #000 !important;
}

#goalsContent .category-select,
.category-select {
  padding: 10px 16px !important;
  background: var(--bg-surface, #0f0f12) !important;
  border: 1px solid var(--border, #27272a) !important;
  border-radius: 10px !important;
  color: var(--text-primary, #fafafa) !important;
  font-size: 13px !important;
  cursor: pointer !important;
}

/* Goals grid */
#goalsContent .goals-grid,
.goals-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 16px !important;
}

/* Goals empty state */
#goalsContent .goals-empty,
.goals-empty {
  text-align: center !important;
  padding: 60px 20px !important;
}

.goals-empty .empty-icon {
  font-size: 64px !important;
  margin-bottom: 16px !important;
}

.goals-empty h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--text-primary, #fafafa) !important;
  margin: 0 0 8px 0 !important;
}

.goals-empty p {
  color: var(--text-muted, #71717a) !important;
  margin: 0 0 24px 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   JOURNAL PAGE LAYOUT FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Journal container */
#journalPageContent {
  width: 100% !important;
}

/* Journal header */
#journalPageContent .journal-page-header,
.journal-page-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 24px !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.journal-page-header h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
  margin: 0 0 4px 0 !important;
}

/* Journal stats bar */
.journal-stats-bar {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

/* Journal entries grid */
.journal-entries-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 16px !important;
}

/* Journal empty state - no duplicate buttons */
.journal-empty-state {
  text-align: center !important;
  padding: 60px 20px !important;
  background: var(--bg-surface, #0f0f12) !important;
  border: 1px solid var(--border, #27272a) !important;
  border-radius: 16px !important;
}

.journal-empty-state .empty-icon {
  font-size: 64px !important;
  margin-bottom: 16px !important;
}

.journal-empty-state h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin: 0 0 8px 0 !important;
}

.journal-empty-state p {
  color: var(--text-muted) !important;
  margin: 0 !important;
}