﻿/* Prevent full-bleed (100vw) sections from ever creating a page-level
   horizontal scrollbar due to the vw-vs-scrollbar-width mismatch. */
html, body {
    overflow-x: hidden;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive safety-net: keep images from overflowing their container
   on small viewports. Elements with their own explicit width/height
   (avatars, icons, etc.) still win due to specificity. */
img {
    max-width: 100%;
    height: auto;
}

/* Consistent, modern button styling app-wide (shape/interaction only —
   semantic colors from btn-primary/btn-success/btn-danger etc. are untouched).
   !important on the radius so every button matches the Submit button (8px)
   regardless of any more-specific per-page rule elsewhere in the app. */
button,
.btn,
input[type="submit"],
input[type="button"] {
    border-radius: 8px !important;
}

.btn {
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

    .btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
        filter: brightness(1.05);
    }

    .btn:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: none;
        filter: none;
    }

/* ===== _Loader.cshtml (moved from inline <style>) ===== */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .6s linear infinite;
    margin-right: 6px;
    vertical-align: -2px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}
