/* Bootstrap 5 Compatibility CSS */
/* This file provides backward compatibility for Bootstrap 3 classes */

/* Glyphicon compatibility - map to Bootstrap Icons */
.glyphicon {
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

.glyphicon-search::before {
    content: "\f52a"; /* bi-search */
}

.glyphicon-remove::before {
    content: "\f62a"; /* bi-x */
}

.glyphicon-ok::before {
    content: "\f26b"; /* bi-check */
}

.glyphicon-pencil::before {
    content: "\f4ca"; /* bi-pencil */
}

.glyphicon-trash::before {
    content: "\f5de"; /* bi-trash */
}

.glyphicon-download::before {
    content: "\f30b"; /* bi-download */
}

.glyphicon-upload::before {
    content: "\f62f"; /* bi-upload */
}

.glyphicon-file::before {
    content: "\f377"; /* bi-file-earmark */
}

.glyphicon-user::before {
    content: "\f4da"; /* bi-person */
}

.glyphicon-envelope::before {
    content: "\f32f"; /* bi-envelope */
}

.glyphicon-home::before {
    content: "\f425"; /* bi-house */
}

.glyphicon-calendar::before {
    content: "\f1ec"; /* bi-calendar */
}

.glyphicon-time::before {
    content: "\f1f4"; /* bi-clock */
}

/* Pull classes compatibility */
.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

/* Image responsive compatibility */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button size compatibility */
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

/* Hidden/Visible classes compatibility */
.hidden-xs {
    display: none !important;
}

@media (min-width: 576px) {
    .hidden-xs {
        display: block !important;
    }
}

.hidden-sm {
    display: block !important;
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hidden-sm {
        display: none !important;
    }
}

.hidden-md {
    display: block !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hidden-md {
        display: none !important;
    }
}

.hidden-lg {
    display: block !important;
}

@media (min-width: 992px) {
    .hidden-lg {
        display: none !important;
    }
}

.visible-xs {
    display: block !important;
}

@media (min-width: 576px) {
    .visible-xs {
        display: none !important;
    }
}

.visible-sm {
    display: none !important;
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .visible-sm {
        display: block !important;
    }
}

.visible-md {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .visible-md {
        display: block !important;
    }
}

.visible-lg {
    display: none !important;
}

@media (min-width: 992px) {
    .visible-lg {
        display: block !important;
    }
}

/* Col-xs compatibility - Bootstrap 5 uses col-* as default */
.col-xs-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-xs-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-xs-3 { flex: 0 0 auto; width: 25%; }
.col-xs-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-xs-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-xs-6 { flex: 0 0 auto; width: 50%; }
.col-xs-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-xs-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-xs-9 { flex: 0 0 auto; width: 75%; }
.col-xs-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-xs-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-xs-12 { flex: 0 0 auto; width: 100%; }

.col-xs-0 { display: none; }

/* Panel compatibility (removed in Bootstrap 5 - use Card instead) */
.panel {
    margin-bottom: 1rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.panel-default {
    border-color: #dee2e6;
}

.panel-heading {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.panel-body {
    padding: 1.25rem;
}

.panel-footer {
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Well compatibility (removed in Bootstrap 5) */
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}

/* Form control static (removed in Bootstrap 5) */
.form-control-static {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
    margin-bottom: 0;
}

/* Label default compatibility */
.label-default {
    background-color: #6c757d;
    color: white;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

/* Thumbnail compatibility */
.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border .2s ease-in-out;
}

.thumbnail > img {
    margin-right: auto;
    margin-left: auto;
}
