:root {
  /* Design System Colors */
  --hc-blue: #2563eb;      /* Primary Blue - Trust */
  --hc-gray: #64748b;      /* Gray - Professional */
  --hc-teal: #14b8a6;      /* Teal Accent - AI */
  --hc-purple: #9333ea;    /* Purple Accent - Innovation */
  --hc-gold: #f59e0b;      /* Gold Accent - Community */

  /* Bootstrap Overrides */
  --bs-primary: #2563eb;
  --bs-secondary: #64748b;
  --bs-success: #14b8a6;
  --bs-info: #06b6d4;
  --bs-warning: #f59e0b;
  --bs-danger: #ef4444;
  --bs-light: #f8fafc;
  --bs-dark: #1e293b;

  /* Application Colors */
  --hc-primary: #2563eb;
  --hc-primary-dark: #1d4ed8;
  --hc-primary-light: #3b82f6;
  --hc-accent-teal: #14b8a6;
  --hc-accent-purple: #9333ea;
  --hc-accent-gold: #f59e0b;
  --hc-text: #1e293b;
  --hc-text-muted: #64748b;
  --hc-bg-light: #f8fafc;
  --hc-bg-white: #ffffff;
  --hc-border: #e2e8f0;
  --hc-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --hc-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Font Stack */
  --hc-font-sans: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--hc-font-sans);
  color: var(--hc-text);
  background: var(--hc-bg-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
.display-1 { font-weight: 700; }
.display-2 { font-weight: 700; }
.display-3 { font-weight: 700; }
.display-4 { font-weight: 700; }
.display-5 { font-weight: 600; }
.display-6 { font-weight: 600; }

/* Header & Navigation */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--hc-primary) !important;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--hc-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--hc-primary);
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--hc-primary);
  position: relative;
}

.navbar-light .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: var(--hc-primary);
}

/* Hero Sections */
.hero-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-gradient {
  background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-accent-teal) 100%);
  color: white;
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--hc-accent-purple) 0%, transparent 70%);
  opacity: 0.1;
  animation: pulse 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-light {
  background: var(--hc-bg-light);
  padding: 6rem 0;
}

/* Cards */
.card {
  border: 1px solid var(--hc-border);
  border-radius: 0.75rem;
  box-shadow: var(--hc-shadow);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--hc-shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-icon-primary { background: rgba(67, 97, 238, 0.1); color: var(--hc-primary); }
.card-icon-success { background: rgba(6, 255, 165, 0.1); color: var(--bs-success); }
.card-icon-info { background: rgba(0, 180, 216, 0.1); color: var(--bs-info); }
.card-icon-warning { background: rgba(255, 190, 11, 0.1); color: var(--bs-warning); }

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-card .feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--hc-primary), var(--hc-accent-teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
}

/* Buttons */
.btn-primary {
  background: var(--hc-primary);
  border-color: var(--hc-primary);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
}

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

.btn-gradient {
  background: linear-gradient(135deg, var(--hc-primary), var(--hc-accent-teal));
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover {
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Stats Section */
.stats-section {
  background: var(--hc-bg-light);
  padding: 6rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--hc-primary);
  line-height: 1;
}

.stat-label {
  color: var(--hc-text-muted);
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

/* Process Steps */
.process-step {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 3rem;
}

.process-step .step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  background: var(--hc-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.process-step::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3.5rem;
  bottom: -2.5rem;
  width: 2px;
  background: var(--hc-border);
}

.process-step:last-child::after {
  display: none;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
  background: white;
  border-right: 1px solid var(--hc-border);
  min-height: calc(100vh - 76px);
  padding: 2rem 0;
}

.sidebar-nav .nav-link {
  color: var(--hc-text);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover {
  background: var(--hc-bg-light);
  border-left-color: var(--hc-primary);
}

.sidebar-nav .nav-link.active {
  background: var(--hc-bg-light);
  color: var(--hc-primary);
  border-left-color: var(--hc-primary);
}

.sidebar-nav .nav-link i {
  width: 20px;
  margin-right: 0.75rem;
}

/* Report Cards */
.report-card {
  border-left: 4px solid var(--hc-primary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: white;
  box-shadow: var(--hc-shadow);
  transition: all 0.3s ease;
}

.report-card:hover {
  box-shadow: var(--hc-shadow-lg);
}

.report-card.severity-high {
  border-left-color: var(--bs-danger);
}

.report-card.severity-medium {
  border-left-color: var(--bs-warning);
}

.report-card.severity-low {
  border-left-color: var(--bs-success);
}

.badge-severity-high {
  background: var(--bs-danger);
}

.badge-severity-medium {
  background: var(--bs-warning);
}

.badge-severity-low {
  background: var(--bs-success);
}

/* Main content wrapper - pushes footer down */
main {
  flex: 1 0 auto;
}

/* Footer */
.footer-main {
  background: var(--hc-text);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-main a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-main a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
}

/* Utilities */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--hc-primary), var(--hc-accent-teal));
}

.bg-gradient-purple {
  background: linear-gradient(135deg, var(--hc-accent-purple), var(--hc-primary));
}

.bg-gradient-gold {
  background: linear-gradient(135deg, var(--hc-accent-gold), var(--hc-primary));
}

.text-gradient {
  background: linear-gradient(135deg, var(--hc-primary), var(--hc-accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, var(--hc-accent-purple), var(--hc-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--hc-accent-gold), var(--hc-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Section spacing utilities */
.section-spacing {
  padding: 6rem 0;
}

.section-spacing-lg {
  padding: 8rem 0;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 4rem 0;
  }

  .section-spacing-lg {
    padding: 5rem 0;
  }
}

/* Higher Character Campaign Section */
.campaign-section {
  background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-accent-purple) 100%);
  color: white;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.campaign-section::after {
  content: '✦';
  position: absolute;
  font-size: 20rem;
  opacity: 0.05;
  right: -5%;
  top: -20%;
  transform: rotate(15deg);
}

.campaign-headline {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.campaign-subheadline {
  font-size: 1.5rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

/* Community Callout Section */
.community-section {
  background: var(--hc-bg-light);
  padding: 7rem 0;
  position: relative;
}

.community-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.speech-bubble {
  position: absolute;
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: var(--hc-shadow-lg);
  font-size: 0.9rem;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
}

.community-icon {
  width: 60px;
  height: 60px;
  background: var(--hc-accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0.5rem;
}

/* Icon System */
.icon-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: linear-gradient(135deg, var(--hc-primary), var(--hc-accent-teal));
  border-radius: 12px;
  color: white;
  margin-right: 1rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.icon-crowd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: var(--hc-accent-gold);
  border-radius: 12px;
  color: white;
  margin-right: 1rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.icon-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: var(--hc-accent-purple);
  border-radius: 12px;
  color: white;
  margin-right: 1rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

/* Why HireCharacter Section */
.why-section {
  padding: 7rem 0;
}

.why-card {
  padding: 2rem;
  height: 100%;
  border: 2px solid var(--hc-border);
  border-radius: 16px;
  background: white;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: var(--hc-primary);
  box-shadow: var(--hc-shadow-lg);
}

.why-card .icon {
  margin-bottom: 1.5rem;
}

.why-card h3 {
  color: var(--hc-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.why-card p {
  color: var(--hc-text-muted);
  line-height: 1.7;
}

/* ========================================
   MOBILE-FIRST RESPONSIVE OVERRIDES
   ======================================== */

/* Base mobile styles */
@media (max-width: 767px) {
  /* Typography */
  h1, .h1 { font-size: 1.75rem !important; }
  h2, .h2 { font-size: 1.5rem !important; }
  h3, .h3 { font-size: 1.25rem !important; }

  .display-4 { font-size: 2rem !important; }
  .display-5 { font-size: 1.75rem !important; }
  .display-6 { font-size: 1.5rem !important; }

  /* Hero Section */
  .hero-gradient { padding: 3rem 0 !important; }
  .hero-light { padding: 3rem 0 !important; }

  /* Sections */
  .py-6[style*="padding: 6rem"] { padding: 3rem 0 !important; }
  .py-6[style*="padding: 7rem"] { padding: 3.5rem 0 !important; }
  .stats-section { padding: 3rem 0 !important; }
  .campaign-section { padding: 3rem 0 !important; }
  .community-section { padding: 3rem 0 !important; }
  .why-section { padding: 3rem 0 !important; }

  /* Campaign text */
  .campaign-headline {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .campaign-subheadline {
    font-size: 1rem !important;
    padding: 0 1rem;
  }

  /* Cards */
  .why-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem !important;
  }

  .feature-card {
    padding: 1.5rem !important;
    margin-bottom: 1rem;
  }

  /* Buttons */
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }

  /* Stats */
  .stat-number { font-size: 2rem !important; }
  .stat-label { font-size: 0.875rem !important; }

  /* Process Steps */
  .process-step {
    padding-left: 3.5rem;
    margin-bottom: 2rem;
    position: relative;
  }

  .process-step .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    left: 0;
  }

  .process-step h5 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .process-step p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Footer */
  .footer-main {
    padding: 2rem 0 1.5rem !important;
  }

  .footer-main ul {
    font-size: 0.9rem;
  }

  .footer-main h6 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem !important;
  }

  .footer-main li {
    margin-bottom: 0.5rem !important;
  }

  .footer-bottom {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }

  /* Images */
  img.img-fluid {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Hide hero image on small screens */
  .hero-gradient .col-lg-6:last-child {
    display: none;
  }
}

/* Show hero image on tablets and up */
@media (min-width: 768px) {
  .hero-gradient .col-lg-6:last-child {
    display: flex;
  }
}

/* ===========================================
   PAGE SECTIONS - Standard page layouts
   =========================================== */

/* Page header section for internal pages */
.page-header-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  padding: 3rem 0;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* Main content sections with background */
.content-section {
  background-color: #f8f9fa;
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Alternative light background for pages */
.page-content-light {
  background-color: #f5f7fa;
  padding: 3rem 0;
}

/* ===========================================
   FORM STYLES - Consistent across all pages
   =========================================== */

/* Form Controls - Enhanced Bootstrap styling */
.form-control, .form-select {
  border: 2px solid #b8daff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f0f8ff;  /* Alice Blue - subtle blue background */
  color: #004085;  /* Dark blue text */
  font-weight: 500;
}

.form-control:focus, .form-select:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.15);
  background-color: #ffffff;  /* White background on focus for clarity */
  color: #002752;  /* Even darker blue when focused */
}

/* Large form controls */
.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  border-radius: 10px;
}

/* Form Labels */
.form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-label-sm {
  font-size: 0.85rem;
  color: #495057;
  font-weight: 500;
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: normal;
}

/* Required field indicator */
.form-label .text-danger {
  font-size: 1.1em;
}

/* Form text helpers */
.form-text {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Input groups */
.input-group {
  border-radius: 8px;
  overflow: hidden;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px;
}

.input-group .btn {
  border-radius: 0 8px 8px 0;
  border-left: 0;
}

/* Textareas */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
  background-color: #f0f8ff;  /* Same Alice Blue background */
  color: #004085;  /* Dark blue text */
  border: 2px solid #b8daff;
}

textarea.form-control:focus {
  background-color: #ffffff;  /* White on focus */
  color: #002752;
  border-color: #0066cc;
}

/* Special field highlighting */
.form-control.border-primary, .form-select.border-primary {
  border-color: #0066cc !important;
  border-width: 2px !important;
}

.form-control.border-2, .form-select.border-2 {
  border-width: 2px !important;
}

/* URL input field - extra prominent */
input[type="url"].form-control {
  background-color: #ffffff !important;
  border-color: #0066cc !important;
  border-width: 2px !important;
}

input[type="url"].form-control:focus {
  border-color: #0052cc !important;
  box-shadow: 0 0 0 0.3rem rgba(0, 123, 255, 0.35) !important;
}

/* Select dropdowns */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

/* Confidence/special selects - removed, will use default blue styling */
/* select[name*="confidence"] - removed to use default blue styles */

/* Context textareas - remove special styling, will use default blue */
/* textarea[name*="context"], textarea[name*="id_context"] - removed to use default styles */

/* Checkboxes and Radio buttons */
.form-check {
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border: 2px solid #dee2e6;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #0066cc;
  border-color: #0066cc;
}

.form-check-input:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.15);
}

.form-check-label {
  font-weight: 500;
  color: #495057;
  cursor: pointer;
}

/* Switch styling */
.form-switch .form-check-input {
  width: 2.5rem;
  height: 1.25rem;
  border-radius: 2rem;
}

.form-switch .form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
}

/* Radio button groups as buttons */
.btn-check:checked + .btn {
  font-weight: 600;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

/* Form sections */
.form-section {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dee2e6;
}

/* Form cards */
.form-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

/* Validation states */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem);
}

/* Disabled state */
.form-control:disabled, .form-select:disabled {
  background-color: #e9ecef;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Placeholder text */
.form-control::placeholder {
  color: #6c9bd1;  /* Medium blue placeholder text */
  opacity: 0.8;
}

/* File inputs */
.form-control[type="file"] {
  padding: 0.5rem;
}

.form-control[type="file"]::-webkit-file-upload-button {
  padding: 0.375rem 0.75rem;
  margin: -0.375rem -0.75rem;
  margin-inline-end: 0.75rem;
  color: #495057;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: all 0.15s ease;
}

.form-control[type="file"]:hover::-webkit-file-upload-button {
  background-color: #dae0e5;
}

/* Floating labels (if needed) */
.form-floating > .form-control,
.form-floating > .form-select {
  height: 3.5rem;
  padding: 1rem 0.75rem;
}

.form-floating > label {
  padding: 1rem 0.75rem;
  color: #6c757d;
  transition: all 0.1s ease;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Button styles for forms */
.btn-form-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-form-primary:hover {
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  background: linear-gradient(135deg, #0056b3, #003d82);
}

/* Form submit buttons */
button[type="submit"].btn-primary {
  padding: 0.75rem 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
}

/* Form row spacing */
.form-row {
  margin-bottom: 1.5rem;
}

/* Inline form adjustments */
.form-inline .form-control {
  display: inline-block;
  width: auto;
  vertical-align: middle;
}

/* Custom select arrow for better browsers */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  .form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
}
