/* Global Input Form Styling */
/* This CSS file provides consistent styling for all input forms in the application */

/* Page title styling */
h1 {
    color: #0d6efd;
    /*margin-bottom: 1rem;*/
    font-weight: 600;
}

h2 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.5rem;
}

/* Horizontal rule styling */
hr {
    border: none;
    border-top: 2px solid #b8d4f1;
    margin-bottom: 1.5rem;
}

/* Form container styling */
.row {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.col-md-4 {
    width: 100%;
    max-width: 500px;
    background-color: #f0f7ff;
    border: 2px solid #b8d4f1;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

/* Form field styling */
.mb-3 {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #212529;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: white;
    border: 2px solid #b8d4f1;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Checkbox styling */
.checkbox {
    margin-bottom: 1.25rem;
}

.checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
}

/* Validation message styling */
.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.validation-summary {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Button row styling */
.button-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 1.5rem;
    /*margin-bottom: 1.5rem;*/
}

/* Primary button styling */
.btn-primary {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        color: rgb(255, 0, 0);
        /*color: white;*/
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    }   

.btn-primary:active {
    background-color: #0a58ca;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Vertical divider between buttons */
.button-divider {
    display: inline-block;
    width: 2px;
    height: 2rem;
    background-color: #b8d4f1;
    margin: 0 1rem;
    align-self: center;
}

/* Secondary button styling */
.btn-secondary {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #5c636a;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    background-color: #565e64;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Danger button styling */
.btn-danger {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-danger:hover {
    background-color: #bb2d3b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.btn-danger:active {
    background-color: #b02a37;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Links section styling */
.links-section {
    border-top: 2px solid #b8d4f1;
    padding-top: 1rem;
}

.links-section p {
    margin-bottom: 0.5rem;
}

.links-section a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.links-section a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* Status message styling */
.alert {
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

/* Panel title styling (for header messages) */
.panel-title {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-4 {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .button-divider {
        width: 100%;
        height: 2px;
        margin: 0;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
