/* Base Styles */
:root {
  /* Minimal palette: strictly three colors */
  --primary-color: #307fe2;
  --primary-dark: #307fe2;
  --secondary-color: #307fe2;
  --accent-color: #307fe2;
  --success-color: #307fe2;
  --danger-color: #307fe2;
  --warning-color: #307fe2;
  --info-color: #307fe2;
  --light-color: #ffffff;
  --dark-color: #000000;
  --white: #ffffff;
  --black: #000000;

  /* Gradients disabled for minimal theme */
  --gradient-primary: var(--white);
  --gradient-secondary: var(--white);
  --gradient-accent: var(--primary-color);

  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-secondary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & Layout */
  --border-radius: 0.75rem;
  --border-radius-sm: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  /* Shadows */
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --box-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Enforce black text default */
body, p, span, li, dt, dd, small, label, input, textarea, select {
  color: var(--dark-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  /* color: var(--secondary-color); */
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Utility Classes - restricted palette */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--primary-color) !important; }
.text-success { color: var(--primary-color) !important; }
.text-danger { color: var(--primary-color) !important; }
.text-warning { color: var(--primary-color) !important; }
.text-info { color: var(--primary-color) !important; }
.text-light { color: var(--white) !important; }
.text-dark { color: var(--dark-color) !important; }
.text-muted { color: var(--dark-color) !important; }

/* Backgrounds: only white or black or primary accent when needed */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--white) !important; }
.bg-success { background-color: var(--white) !important; }
.bg-danger { background-color: var(--white) !important; }
.bg-warning { background-color: var(--white) !important; }
.bg-info { background-color: var(--white) !important; }
.bg-light { background-color: var(--white) !important; }
.bg-dark { background-color: var(--black) !important; }
.bg-white { background-color: var(--white) !important; }

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

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.125rem; }
  h6 { font-size: 1rem; }
}

@media (max-width: 576px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.875rem; }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection Styling */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary-color);
  color: var(--white);
}

.heightdrop {
    max-height: 100vh !important;
}
