@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --bg-main: #F7EFE5;
  --bg-secondary: #F1E6DA;
  --bg-card: #FFF9F2;
  
  --color-primary: #32140E;
  --color-secondary: #55271F;
  --color-accent: #6F1D1B;
  --color-rose: #E9D3CF;
  
  --color-green-muted: #5E6B5C;
  --color-green-light: #DDE4D9;
  --color-gold: #B58B55;
  
  --text-primary: #241713;
  --text-secondary: #766A63;
  --border-color: #D9CEC2;
  --color-disabled: #B6AEA7;
  
  --status-success: #347A46;
  --status-warning: #B87422;
  --status-error: #A62828;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;

  /* Border Radius */
  --radius-card: 24px;
  --radius-btn: 12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(50, 20, 14, 0.05);
  --shadow-md: 0 4px 12px rgba(50, 20, 14, 0.08);
  --shadow-lg: 0 12px 32px rgba(50, 20, 14, 0.1);
}

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

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px; /* Thicker bar */
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
/* Hidden by default */
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: var(--radius-pill);
}
/* Show when hovering the parent card */
.card:hover ::-webkit-scrollbar-thumb {
  background: rgba(181, 139, 85, 0.5); /* Gold with opacity */
}
.card ::-webkit-scrollbar-thumb:hover {
  background: rgba(181, 139, 85, 0.8);
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography Classes */
.text-page-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.2; }
.text-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3; }
.text-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.4; }
.text-body { font-size: 14px; font-weight: 400; line-height: 1.5; }
.text-small { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

/* Common Layouts */
.container {
  padding: 0 var(--space-6) var(--space-6);
  max-width: none;
  margin: 0 auto;
}

.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Card System */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  height: 40px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--bg-card);
}
.btn-primary:hover:not(:disabled) { background-color: var(--color-secondary); }

.btn-secondary {
  background-color: var(--color-rose);
  color: var(--color-primary);
}
.btn-secondary:hover:not(:disabled) { background-color: #dfc2bc; }

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-outline:hover:not(:disabled) { background-color: var(--bg-secondary); }

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}
