/* ══════════════════════════════════════════════════════════════
   core.css  –  Bootstrap replacement for MESURASOFT Web
   Only the classes actually used across the project are defined.
   ══════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

/* Navbar-scoped resets (Bootstrap used to reset these globally) */
.navbar p, .navbar ul, .navbar ol { margin-top: 0; margin-bottom: 0; }
.navbar img { vertical-align: middle; }
.navbar .title { margin-top: 0; margin-bottom: 0; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* ── Grid ── */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.row > * {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}
.col-10    { width: 83.333%; }
.col-12    { width: 100%; }
@media (min-width: 576px) {
    .col-sm-4  { width: 33.333%; }
    .col-sm-6  { width: 50%; }
    .col-sm-8  { width: 66.666%; }
    .col-sm-12 { width: 100%; }
    .offset-sm-4 { margin-left: 33.333%; }
}
@media (min-width: 768px) {
    .col-md-6  { width: 50%; }
    .col-md-8  { width: 66.666%; }
}
@media (min-width: 992px) {
    .col-lg-6  { width: 50%; }
    .col-lg-10 { width: 83.333%; }
}
.col-form-label {
    padding-top: calc(.375rem + 1px);
    padding-bottom: calc(.375rem + 1px);
    font-weight: 600;
}

/* ── Position ── */
.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: .3rem 1rem;
}
.navbar > .container-fluid,
.navbar > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.navbar-dark { color: rgba(255,255,255,.85); }
.navbar-dark .nav-link { color: rgba(255,255,255,.85); }
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus { color: #fff; }

.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    border-radius: .25rem;
    color: rgba(255,255,255,.85);
}
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background: no-repeat center/100% 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse {
    display: flex;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
}
.navbar-nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}
.nav-item { position: relative; }
.nav-link {
    display: block;
    padding: .5rem .75rem;
    text-decoration: none;
    transition: color .15s;
}

/* Responsive navbar collapse */
@media (max-width: 991.98px) {
    .navbar-toggler { display: block; }
    .navbar-collapse {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .navbar-collapse.show { display: flex; }
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    .navbar-nav .nav-link { padding: .6rem 0; }
    .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,.07);
    }
}

/* ── Dropdown ── */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-toggle::after {
    content: "";
    display: inline-block;
    margin-left: .3em;
    vertical-align: .2em;
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: .5rem 0;
    margin: .125rem 0 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    list-style: none;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: block;
    padding: .35rem 1rem;
    color: #212529;
    text-decoration: none;
    white-space: nowrap;
}
.dropdown-item:hover { background: #f8f9fa; color: #1e2125; }

/* ── Carousel ── */
.carousel { position: relative; overflow: hidden; }
.carousel-inner { position: relative; width: 100%; }
.carousel-item {
    display: none;
    position: relative;
    width: 100%;
    transition: opacity .6s ease-in-out;
}
.carousel-item.active { display: block; }
.carousel-item img { width: 100%; display: block; }

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}
.carousel-indicators button {
    width: 30px;
    height: 4px;
    border: none;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    padding: 0;
    border-radius: 2px;
    transition: background .2s;
}
.carousel-indicators button.active,
.carousel-indicators button[aria-current="true"] {
    background: #fff;
}

.carousel-caption {
    position: absolute;
    bottom: 1.25rem;
    left: 15%;
    right: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    background: none;
    border: none;
    opacity: .5;
    cursor: pointer;
    transition: opacity .15s;
}
.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: .9; }
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: no-repeat center/100% 100%;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ── Forms ── */
.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}
.form-control::placeholder { color: #6c757d; opacity: 1; }

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: .125rem;
}
.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: .25em;
    margin-left: -1.5em;
    vertical-align: top;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.25);
    border-radius: 50%;
    float: left;
}
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.form-check-label { cursor: pointer; }

/* ── Buttons (extends .btn already in site.css) ── */
.btn-success {
    background-color: #198754;
    border: 2px solid #198754;
    color: #fff;
}
.btn-success:hover, .btn-success:focus {
    background-color: #157347;
    border-color: #146c43;
    color: #fff;
}
.btn-info {
    background-color: #0dcaf0;
    border: 2px solid #0dcaf0;
    color: #000;
}
.btn-info:hover, .btn-info:focus {
    background-color: #31d2f2;
    border-color: #25cff2;
    color: #000;
}
.btn-danger {
    background-color: #dc3545;
    border: 2px solid #dc3545;
    color: #fff;
}
.btn-danger:hover, .btn-danger:focus {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: #fff;
}

/* ── Tables ── */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}
.table th, .table td {
    padding: .5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}
.table-borderless th,
.table-borderless td { border: 0; }

/* ── Cards (card-body, card-title, card-text only – .card already in site.css) ── */
.card-body { padding: 1rem; }
.card-title { font-weight: 600; margin-bottom: .5rem; }
.card-text  { margin-bottom: 1rem; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }

/* ── Display utilities ── */
.d-flex   { display: flex !important; }
.d-block  { display: block !important; }
.d-none   { display: none !important; }
@media (min-width: 768px) {
    .d-md-block { display: block !important; }
}

/* ── Flex utilities ── */
.flex-wrap               { flex-wrap: wrap !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-end     { justify-content: flex-end !important; }
.align-items-center      { align-items: center !important; }
.ms-auto                 { margin-left: auto !important; }
.me-auto                 { margin-right: auto !important; }
.mx-auto                 { margin-left: auto !important; margin-right: auto !important; }
.m-auto                  { margin: auto !important; }

/* ── Spacing ── */
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ml-3 { margin-left: 1rem !important; }
.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.p-3  { padding: 1rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }

/* ── Text ── */
.text-center { text-align: center !important; }
.text-light  { color: #f8f9fa !important; }
.text-dark   { color: #212529 !important; }
.text-danger  { color: #dc3545 !important; }
.text-success { color: #198754 !important; }
.text-muted   { color: #6c757d !important; }
.text-decoration-none { text-decoration: none !important; }

/* ── Typography ── */
.fw-bold { font-weight: 700 !important; }
.fs-4    { font-size: 1.5rem !important; }

/* ── Sizing ── */
.w-100 { width: 100% !important; }

/* ── Background ── */
.bg-dark    { background-color: #212529 !important; }
.bg-success { background-color: #198754 !important; }

/* ── Border ── */
.border-top { border-top: 1px solid #dee2e6 !important; }

/* ── Responsive Embed (legacy) ── */
.embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }
.embed-responsive-16by9::before { display: block; content: ""; padding-top: 56.25%; }
.embed-responsive-item,
.embed-responsive iframe {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 100%; height: 100%; border: 0;
}
