﻿body {
    padding-top: 70px; /* Note: Bootstrap 4 fixed-top navbar might require different padding */
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* styles for validation helpers */

/* This targets the span generated by ASP.NET Tag Helpers for field errors */
/* Bootstrap 4 typically uses sibling .invalid-feedback or .invalid-tooltip */
.field-validation-error {
    color: #b94a48; /* Your custom color */
    /* BS4 default for .invalid-feedback: color: #dc3545; */
    /* BS4 also adds: display: none; width: 100%; margin-top: .25rem; font-size: 80%; */
}

/* This targets the span generated by ASP.NET Tag Helpers when field is valid */
/* Bootstrap 4 typically uses sibling .valid-feedback or .valid-tooltip */
.field-validation-valid {
    display: none;
    /* BS4 default for .valid-feedback: display: none; width: 100%; margin-top: .25rem; font-size: 80%; color: #28a745; */
}

/* This targets the input element itself when invalid */
/* Bootstrap 4 uses the .is-invalid class for this */
input.is-invalid { /* Changed from input.input-validation-error */
    border: 1px solid #b94a48; /* Your custom border */
    /* BS4 default for .is-invalid: border-color: #dc3545; padding-right: calc(1.5em + .75rem); background-image: url(...); background-repeat: no-repeat; background-position: right calc(.375em + .1875rem) center; background-size: calc(.75em + .375rem) calc(.75em + .375rem); */
}

/* Keep style for checkbox type */
input[type="checkbox"].is-invalid { /* Changed from input[type="checkbox"].input-validation-error */
    border: 0 none;
}

/* This targets the div generated by ASP.NET Tag Helpers for summary errors */
/* Bootstrap 4 doesn't have a direct equivalent, often styled like an alert */
.validation-summary-errors {
    color: #b94a48; /* Your custom color */
    /* Often styled like BS4 .alert-danger: color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; */
}

/* This targets the div generated by ASP.NET Tag Helpers when summary is valid */
.validation-summary-valid {
    display: none;
}
