/**
 * Custom Theme - MakerFarm-Inspired Styling
 * Overrides Bootstrap 5.3.3 defaults to create a modern, professional aesthetic
 */

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

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
  /* Primary Colors - Dark Green/Teal Theme (MakerFarm) */
  --bs-primary: #1a4d4d;
  --bs-primary-rgb: 26, 77, 77;
  --bs-primary-dark: #153d3d;
  --bs-primary-light: #236666;

  /* Accent Color - Light Tan/Beige */
  --bs-accent: #f5e6d3;
  --bs-accent-rgb: 245, 230, 211;
  --bs-accent-dark: #e6d4bd;

  /* Success Color - Use primary green/teal */
  --bs-success: #1a4d4d;
  --bs-success-rgb: 26, 77, 77;

  /* Info Color - Lighter teal */
  --bs-info: #2a6d6d;
  --bs-info-rgb: 42, 109, 109;

  /* Dark Theme Colors */
  --bs-dark: #1a4d4d;
  --bs-dark-rgb: 26, 77, 77;
  --bs-dark-secondary: #153d3d;

  /* Light Colors */
  --bs-light: #f5e6d3;
  --bs-light-rgb: 245, 230, 211;

  /* Body Colors */
  --bs-body-bg: #ffffff;
  --bs-body-color: #212529;

  /* Warning and Danger - Keep Bootstrap defaults */
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;

  /* Border Radius */
  --bs-border-radius: 8px;
  --bs-border-radius-sm: 6px;
  --bs-border-radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h1,
.h1 {
  font-size: 3.5rem;
}

h2,
.h2 {
  font-size: 2.75rem;
}

h3,
.h3 {
  font-size: 1.75rem;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  border-radius: 10px;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease;
  border: none;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* Primary Button - Dark Green/Teal */
.btn-primary {
  background-color: var(--bs-primary);
  color: var(--bs-accent);
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--bs-primary-dark);
  color: var(--bs-accent);
}

/* Success Button - Dark Green/Teal (same as primary) */
.btn-success {
  background-color: var(--bs-success);
  color: var(--bs-accent);
  font-weight: 700;
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--bs-primary-dark);
  color: var(--bs-accent);
}

/* Info Button - Lighter teal */
.btn-info {
  background-color: var(--bs-info);
  color: var(--bs-accent);
  font-weight: 700;
}

.btn-info:hover,
.btn-info:focus {
  background-color: var(--bs-primary);
  color: var(--bs-accent);
}

/* Secondary Button */
.btn-secondary {
  background-color: #6c757d;
  color: white;
  font-weight: 700;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #5a6268;
  color: white;
}

/* Danger Button */
.btn-danger {
  background-color: var(--bs-danger);
  color: white;
  font-weight: 700;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #c82333;
  color: white;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  padding: 1rem 0;
  background-color: var(--bs-primary) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--bs-accent);
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--bs-accent-dark);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
  border-radius: var(--bs-border-radius);
  border: none;
  padding: 1.25rem 1.5rem;
}

.alert-success {
  background-color: #e6f2f2;
  color: #0d2626;
  border-left: 4px solid var(--bs-success);
}

.alert-info {
  background-color: #e0f7fa; /* Lighter blue for info */
  color: #004d40; /* Darker text for contrast */
  border-left: 4px solid var(--bs-info);
}
}

.alert-danger {
  background-color: #ffe6e6;
  color: #660000;
  border-left: 4px solid var(--bs-danger);
}

.alert-warning {
  background-color: #fff8e6;
  color: #664d00;
  border-left: 4px solid var(--bs-warning);
}

.alert-info {
  background-color: #e6f2f2;
  color: #0d2626;
  border-left: 4px solid var(--bs-info);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid #e9ecef;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

/* ============================================
   TABLES
   ============================================ */
.table {
  border-radius: var(--bs-border-radius);
  overflow: hidden;
}

.table thead th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #6c757d;
  border-bottom: 2px solid #dee2e6;
  padding: 1.25rem 1rem;
}

.table tbody td {
  padding: 1rem;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(26, 77, 77, 0.08);
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
  border-radius: var(--bs-border-radius-sm);
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 77, 77, 0.15);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
  font-size: 0.95rem;
}

/* ============================================
   TABS
   ============================================ */
.nav-tabs {
  border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
  color: var(--bs-primary);
  border-bottom-color: rgba(var(--bs-primary-rgb), 0.3); /* Using primary color with transparency */
}
}

.nav-tabs .nav-link.active {
  color: var(--bs-primary);
  background-color: transparent;
  border-bottom-color: var(--bs-primary);
  font-weight: 600;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  border-radius: var(--bs-border-radius-sm);
  padding: 0.35em 0.65em;
  font-weight: 600;
  font-size: 0.85em;
}

/* ============================================
   UTILITIES & OVERRIDES
   ============================================ */

/* Text Colors */
.text-success {
  color: var(--bs-primary) !important;
}

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

/* Background Colors */
.bg-light {
  background-color: var(--bs-light) !important;
}

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

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

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

/* Shadows */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Rounded Corners */
.rounded {
  border-radius: var(--bs-border-radius) !important;
}

.rounded-lg {
  border-radius: var(--bs-border-radius-lg) !important;
}

/* ============================================
   CUSTOM UTILITY CLASSES
   ============================================ */

/* Container Spacing */
.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Section Spacing */
.mb-3 {
  margin-bottom: 1.5rem !important;
}

.my-3 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Hero Section Background (for future use) */
.bg-hero {
  background-color: var(--bs-dark);
  color: white;
}

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

/* Accent Text */
.text-accent {
  color: var(--bs-primary);
}

/* Smooth Transitions */
.transition-all {
  transition: all 0.2s ease-in-out;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {

  h1,
  .h1 {
    font-size: 2.5rem;
  }

  h2,
  .h2 {
    font-size: 2rem;
  }

  h3,
  .h3 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

  .navbar,
  .btn,
  .alert {
    box-shadow: none !important;
  }
}