.form-control {
    width: 100%;
    /* Make form-control take full width of the form */
    display: flex;
    flex-direction: column;
    /* Stack label and input */
    align-items: flex-start;
    /* Align label/input to the start (left) within its own container */
    gap: 8px;
    /* Space between label and input */
}

.form-control label {
    margin-top: 8px;
    font-weight: bold;
    color: #555;
}

.form-control legend,
fieldset {
    margin-top: 8px;
    font-weight: bold;
    color: #555;
    font-size: 1em;

}

.form-control input,
textarea,
select {
    width: 100%;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-control input:focus,
textarea:focus {
    outline: none !important;
    border: 1px solid #154050;
    box-shadow: 0 0 5px #154050;
}

.form-control input.invalid,
textarea.invalid select.invalid,
fieldset.invalid {
    outline: none !important;
    border: 1px solid red;
}


.overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place relative to the viewport */
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    /* Semi-transparent black background */
    z-index: 9999;
    /* Ensures it's on top of everything else */
    cursor: wait;
    /* Changes cursor to a loading indicator */

    /* Flexbox for centering content */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Stacks spinner and text vertically */
}

.spinner {
    border: 5px solid #f3f3f3;
    /* Light grey */
    border-top: 5px solid #154050;
    /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    /* Animation for spinning */
}

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

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


.btn {
    width: 100%;
    /* Make the button take full width */
    padding: 12px;

    background-color: #154050;
    /* A nice blue color */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-outlined {
    width: auto;
    min-width: 200px;
    /* Make the button take full width */
    padding: 12px;

    color: #154050;
    /* A nice blue color */
    background-color: white;
    border: 1px solid #154050;
    border-radius: 5px;

    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-outlined:hover{
    color: white;
    background-color: #154050;
    border: none;
}

.small-btn {

    width: auto;
    min-width: 200px;
    /* Make the button take full width */
    padding: 12px;

    background-color: #154050;
    /* A nice blue color */
    color: white;
    border: none;
    border-radius: 5px;

    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.small-btn-danger {
    width: auto;
    min-width: 200px;
    /* Make the button take full width */
    padding: 12px;

    background-color: #dc3545;
    /* A nice blue color */
    color: white;
    border: none;
    border-radius: 5px;

    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.small-btn-danger:hover {
    background-color: #c82333;
    /* Darker red on hover */
}

.small-btn:hover,
.btn:hover {

    border: 1px #154050 solid;
    color: #154050;

    background-color: white
}

.user-message {
    margin: auto;
    width: 90%;
    border: 1px solid #4771fa;
    padding: 0.5rem;
    border-radius: 3px;
    background: #b9c9ff;
    text-align: center;
}

.user-message--error {
    margin-top: 1rem;
    border-color: red;
    background: rgb(255, 176, 176);
    color: #c42727;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #efefed;
}

.admin-form {
    padding: 20px;
    margin: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.admin-form h3 {
    margin-top: 0;

    margin-bottom: 0;
    /* Remove default margin */
    font-size: 2em;
    /* Adjust size as needed */
    color: #333;
    text-align: center;
}