:root {
  /* Hero Styling Variables */
  --gearsy-hero-bg: linear-gradient(135deg, rgba(30, 140, 112, 0.08), rgba(67, 209, 175, 0.18));
  --gearsy-hero-text: #0f4d3f;
  --gearsy-primary: #1e8c70;
  --gearsy-primary-dark: #0f4d3f;
  --gearsy-primary-light: #43D1AF;
}

/* Utility Classes */
.bg-gearsy-hero {
  background: var(--gearsy-hero-bg) !important;
  color: var(--gearsy-hero-text) !important;
}

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

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

/* Common Hero Pattern Overlay Helper */
.hero-pattern-dots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(30, 140, 112, 0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
  opacity: 0.4;
  pointer-events: none;
}

.hero-pattern-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%231e8c70" stroke-opacity="0.1" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
  pointer-events: none;
}

/* Button Standardization */
.btn-gearsy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-gearsy:disabled,
.btn-gearsy.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.btn-gearsy:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-gearsy:active {
  transform: translateY(0);
}

.btn-gearsy-primary {
  background-color: var(--gearsy-primary);
  color: white;
  border-color: var(--gearsy-primary);
}

.btn-gearsy-primary:hover {
  background-color: var(--gearsy-primary-dark);
  color: white;
  border-color: var(--gearsy-primary-dark);
}

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

.btn-gearsy-secondary:hover {
  background-color: var(--gearsy-hero-bg);
  color: var(--gearsy-primary-dark);
}

.btn-check:checked + .btn-gearsy-secondary,
.btn-check:active + .btn-gearsy-secondary,
.btn-gearsy-secondary:active,
.btn-gearsy-secondary.active,
.show > .btn-gearsy-secondary.dropdown-toggle {
  background-color: var(--gearsy-primary);
  color: white;
  border-color: var(--gearsy-primary);
}

.btn-gearsy-danger {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.btn-gearsy-danger:hover {
  background-color: #bb2d3b;
  color: white;
  border-color: #b02a37;
}

.btn-gearsy-ghost {
  background-color: transparent;
  color: var(--gearsy-primary);
  border-color: transparent;
  box-shadow: none !important;
}

.btn-gearsy-ghost:hover {
  background-color: rgba(30, 140, 112, 0.1);
  color: var(--gearsy-primary-dark);
}

.btn-gearsy-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-gearsy-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

/* New Standardized Button Styles */
.btn-gearsy-gradient {
  background: linear-gradient(135deg, #43D1AF, #2BA084);
  color: white;
  border: none;
  box-shadow: 0 2px 4px rgba(43, 160, 132, 0.2);
}

.btn-gearsy-gradient:hover {
  background: linear-gradient(135deg, #2BA084, #1e8c70);
  color: white;
  box-shadow: 0 4px 8px rgba(43, 160, 132, 0.3);
}

.btn-gearsy-outline-neutral {
  background: white;
  border: 1px solid #e9ecef;
  color: #6c757d;
}

.btn-gearsy-outline-neutral:hover {
  background: #f8f9fa;
  border-color: #43D1AF;
  color: #2BA084;
}

.btn-gearsy-outline-warning {
  background: white;
  border: 1px solid #ffc107;
  color: #d39e00;
}

.btn-gearsy-outline-warning:hover {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}
