/* Import a Google Font for a modern look */
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');

/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f7f9fc;
  color: #333;
  padding: 20px;
}

/* Card Enhancements */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}

.card-header {
  background-color: white;
  color: #007bff;
  padding: 1rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-header h3 {
  margin: 0;
  font-weight: 700;
}

/* Form Group Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group small {
  color: #6c757d;
}

/* Input Styles */
.form-control {
  border-radius: 4px;
  padding: 10px;
  border: 1px solid #cccccc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus Effects */
.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

/* Button Styles */
.btn-primary {
  background-color: #007bff;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Checkbox Styling */
.form-check-input {
  transform: scale(1.2);
  margin-right: 0.5rem;
}

/* Utility Class for Hidden Elements */
.d-none {
  display: none !important;
}

/* Ensure dropdown options are fully visible */
select.form-control {
  width: 100%;
  padding-right: 20px;
  text-overflow: unset;
  overflow: visible;
}

select.form-control option {
  width: 100%;
  padding: 10px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Custom Site Dropdown Styling */
.custom-site-dropdown {
  margin-bottom: 1rem;
}

.custom-select-display {
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 0.375rem 0.75rem;
  color: #495057;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-select-display:hover {
  border-color: #80bdff;
  outline: 0;
}

.custom-select-options {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-top: 2px;
}

.custom-select-option {
  transition: background-color 0.2s;
}

.custom-select-option:hover {
  background-color: #f8f9fa;
}

/* Fix for other dropdown issues */
select.form-control option {
  width: auto !important;
  min-width: 100% !important;
  padding: 8px 10px !important;
  font-size: 1em !important;
  white-space: normal !important;
  overflow: visible !important;
}

/* Special styling for multi-select dropdowns */
select[multiple] {
  height: auto !important;
  min-height: 200px !important;
  padding: 0 !important;
  overflow: auto !important;
  border: 1px solid #ced4da !important;
  border-radius: 4px !important;
}

select[multiple] option {
  padding: 10px !important;
  border-bottom: 1px solid #eee;
}

select[multiple] option:hover {
  background-color: #f0f7ff !important;
}

select[multiple] option:checked {
  background-color: #007bff linear-gradient(0deg, #007bff 0%, #007bff 100%) !important;
  color: #fff !important;
}

/* Fix dropdown display issues */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  select.form-control option {
    min-width: 200px;
  }
}