@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/*
  Color Palette:
  - Stevia Green: #789A8A (Primary) -> oklch(0.605 0.053 152.7)
  - Fresh Mint: #AFCDCF (Secondary) -> oklch(0.806 0.048 184.6)
  - Natural Brown: #857F6F (Accent) -> oklch(0.55 0.03 80)
  - Pure White: #FFFFFF (Background) -> oklch(1 0 0)
  - Dark Text: #333333 (Foreground) -> oklch(0.25 0 0)
  - Light Grey: #F5F5F5 (Muted) -> oklch(0.96 0 0)
*/

:root {
  /* Stevia Green #789A8A */
  --primary: oklch(0.605 0.053 152.7);
  --primary-foreground: oklch(1 0 0);

  /* Fresh Mint #AFCDCF */
  --secondary: oklch(0.806 0.048 184.6);
  --secondary-foreground: oklch(0.25 0 0);

  /* Natural Brown #857F6F */
  --accent: oklch(0.55 0.03 80);
  --accent-foreground: oklch(1 0 0);

  --background: oklch(1 0 0);
  --foreground: oklch(0.25 0 0);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.25 0 0);

  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.25 0 0);

  --muted: oklch(0.96 0 0);
  --muted-foreground: oklch(0.55 0 0);

  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);

  --border: oklch(0.92 0 0);
  --input: oklch(0.92 0 0);
  --ring: oklch(0.605 0.053 152.7);

  --radius: 0.5rem;

  /* Sidebar variables */
  --sidebar: oklch(0.98 0 0);
  --sidebar-foreground: oklch(0.25 0 0);
  --sidebar-primary: oklch(0.605 0.053 152.7);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.96 0 0);
  --sidebar-accent-foreground: oklch(0.25 0 0);
  --sidebar-border: oklch(0.92 0 0);
  --sidebar-ring: oklch(0.605 0.053 152.7);

  /* Charts */
  --chart-1: oklch(0.605 0.053 152.7); /* Stevia Green */
  --chart-2: oklch(0.806 0.048 184.6); /* Fresh Mint */
  --chart-3: oklch(0.55 0.03 80);     /* Natural Brown */
  --chart-4: oklch(0.7 0.1 160);
  --chart-5: oklch(0.8 0.1 170);

  /* CSS color variables for compatibility */
  --bs-primary: oklch(0.605 0.053 152.7);
  --bs-primary-rgb: 120, 154, 138;
}

.dark {
  /* Dark mode adjustments if needed, though brand is light/fresh */
  --background: oklch(0.2 0.02 150);
  --foreground: oklch(0.98 0 0);

  --card: oklch(0.25 0.02 150);
  --card-foreground: oklch(0.98 0 0);

  --popover: oklch(0.25 0.02 150);
  --popover-foreground: oklch(0.98 0 0);

  --primary: oklch(0.605 0.053 152.7);
  --primary-foreground: oklch(1 0 0);

  --secondary: oklch(0.3 0.03 180);
  --secondary-foreground: oklch(0.98 0 0);

  --muted: oklch(0.3 0.02 150);
  --muted-foreground: oklch(0.7 0 0);

  --accent: oklch(0.3 0.02 150);
  --accent-foreground: oklch(0.98 0 0);

  --destructive: oklch(0.5 0.2 25);
  --destructive-foreground: oklch(0.98 0 0);

  --border: oklch(0.3 0.02 150);
  --input: oklch(0.3 0.02 150);
  --ring: oklch(0.5 0.05 152);

  --sidebar: oklch(0.2 0.02 150);
  --sidebar-foreground: oklch(0.98 0 0);
  --sidebar-primary: oklch(0.605 0.053 152.7);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.3 0.02 150);
  --sidebar-accent-foreground: oklch(0.98 0 0);
  --sidebar-border: oklch(0.3 0.02 150);
  --sidebar-ring: oklch(0.5 0.05 152);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  font-family: "Lato", sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
  color: white;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Navbar customization */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
}

.navbar-nav .nav-link {
  color: var(--foreground) !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: oklch(0.55 0.048 152.7);
  border-color: oklch(0.55 0.048 152.7);
}

.btn-primary:focus,
.btn-primary:active {
  background-color: oklch(0.55 0.048 152.7);
  border-color: oklch(0.55 0.048 152.7);
  box-shadow: 0 0 0 0.25rem rgba(120, 154, 138, 0.5);
}

.btn-secondary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-secondary:hover {
  background-color: oklch(0.5 0.025 80);
  border-color: oklch(0.5 0.025 80);
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-title {
  font-family: "Playfair Display", serif;
  color: var(--foreground);
}

/* Forms */
.form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: "Lato", sans-serif;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(120, 154, 138, 0.25);
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background-color: var(--muted);
  font-weight: 600;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: oklch(0.55 0 0);
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Footer */
footer {
  background-color: var(--muted);
  color: var(--foreground);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius);
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 2rem 1rem;
  }
}

/* Bootstrap Icons Styling */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
  font-size: inherit;
  line-height: 1;
}

/* Icon size utilities */
.bi.fs-1 { font-size: 2rem; }
.bi.fs-2 { font-size: 1.5rem; }
.bi.fs-3 { font-size: 1.25rem; }
.bi.fs-4 { font-size: 1rem; }
.bi.fs-5 { font-size: 0.875rem; }
.bi.fs-6 { font-size: 0.75rem; }

/* Color utilities for icons */
.bi.text-primary { color: var(--primary); }
.bi.text-secondary { color: var(--secondary); }
.bi.text-accent { color: var(--accent); }
.bi.text-success { color: #22C55E; }
.bi.text-danger { color: #EF4444; }
.bi.text-warning { color: #FBBF24; }
.bi.text-info { color: #3B82F6; }
.bi.text-muted { color: oklch(0.55 0 0); }
