html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}




.chart-container {
    position: relative;
    height: 300px; /* Reduced height for better fit in smaller columns */
    width: 100%;
    min-height: 300px; /* Adjusted min-height accordingly */
    background: white;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Added subtle shadow for better separation */
    border-radius: 0.375rem; /* Rounded corners for a modern look */
}

canvas {
    opacity: 1 !important;
    max-width: 100%; /* Ensure canvas does not overflow its container */
    height: auto; /* Maintain aspect ratio */
}

.chart-type-selector {
    margin-right: 5px;
}

    .chart-type-selector:checked + span {
        color: #4299E1;
        font-weight: 600;
    }

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#responseModal {
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem; /* Added padding for better spacing */
}

    #responseModal.hidden {
        opacity: 0;
        pointer-events: none;
    }

    #responseModal:not(.hidden) {
        opacity: 1;
    }

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    background-color: #f3f3f3; /* Default button background */
    color: #333; /* Default button text color */
}

.btn:hover {
    background-color: #e2e8f0; /* Lighter background on hover */
    color: #4299E1; /* Text color on hover */
}