/* Bootstrap Italia customizations */
/* Maintaining Moralist International inspired theme with Bootstrap Italia design system */

:root {
  /* Custom color palette compatible with Bootstrap Italia */
  --bs-primary: #0066CC; /* Bootstrap Italia primary blue */
  --bs-primary-rgb: 0, 102, 204;
  --signal-blue: #154889; /* Original Signal Blue for accents */
  --signal-blue-rgb: 21, 72, 137;
}

/* Custom background gradient */
body {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

/* Enhanced card styling to match original design aesthetic */
.card {
  border: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

/* Custom primary color override for the header bar */
.bg-primary {
  background-color: var(--signal-blue) !important;
}

/* Icon styling */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* Custom badge styling */
.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

/* Enhanced link styling */
a.text-primary {
  color: var(--signal-blue) !important;
  transition: color 0.15s ease-in-out;
}

a.text-primary:hover {
  color: #0f3a6b !important;
  text-decoration: underline !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .card-body {
    padding: 1.5rem !important;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Accessibility enhancements */
.card:focus-within {
  box-shadow: 0 0 0 0.25rem rgba(21, 72, 137, 0.25);
}

/* Print styles */
@media print {
  body {
    background: white !important;
  }
  
  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

