/* Bootstrap 3 to 5 Compatibility Layer 

/* ===============================================================
 * 1. Grid System 
 * Bootstrap 3 used different breakpoints than Bootstrap 5
 * BS3: xs (<768px), sm (≥768px), md (≥992px), lg (≥1200px)
 * BS5: xs (<576px), sm (≥576px), md (≥768px), lg (≥992px), xl (≥1200px), xxl (≥1400px)
 * 
 * This compatibility layer maintains BS3 breakpoints for better compatibility
 * =============================================================== */

/* Base column styles */
[class*="col-xs-"],
[class*="col-sm-"],
[class*="col-md-"],
[class*="col-lg-"] {
    position: relative;
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
}
/* Extra small grid (col-xs-*) */
.col-xs-1 { flex: 0 0 auto; width: 8.333333%; }
.col-xs-2 { flex: 0 0 auto; width: 16.666667%; }
.col-xs-3 { flex: 0 0 auto; width: 25%; }
.col-xs-4 { flex: 0 0 auto; width: 33.333333%; }
.col-xs-5 { flex: 0 0 auto; width: 41.666667%; }
.col-xs-6 { flex: 0 0 auto; width: 50%; }
.col-xs-7 { flex: 0 0 auto; width: 58.333333%; }
.col-xs-8 { flex: 0 0 auto; width: 66.666667%; }
.col-xs-9 { flex: 0 0 auto; width: 75%; }
.col-xs-10 { flex: 0 0 auto; width: 83.333333%; }
.col-xs-11 { flex: 0 0 auto; width: 91.666667%; }
.col-xs-12 { flex: 0 0 auto; width: 100%; }

/* Small grid (col-sm-*) - BS3 breakpoint was 768px, BS5 is 576px */
@media (min-width: 768px) {
  .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

/* Medium grid (col-md-*) */
@media (min-width: 992px) {
  .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* Large grid (col-lg-*) */
@media (min-width: 1200px) {
  .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Grid Offset Classes */
.col-xs-offset-12 { margin-left: 100%; }
.col-xs-offset-11 { margin-left: 91.66666667%; }
.col-xs-offset-10 { margin-left: 83.33333333%; }
.col-xs-offset-9 { margin-left: 75%; }
.col-xs-offset-8 { margin-left: 66.66666667%; }
.col-xs-offset-7 { margin-left: 58.33333333%; }
.col-xs-offset-6 { margin-left: 50%; }
.col-xs-offset-5 { margin-left: 41.66666667%; }
.col-xs-offset-4 { margin-left: 33.33333333%; }
.col-xs-offset-3 { margin-left: 25%; }
.col-xs-offset-2 { margin-left: 16.66666667%; }
.col-xs-offset-1 { margin-left: 8.33333333%; }
.col-xs-offset-0 { margin-left: 0; }

@media (min-width: 768px) {
  .col-sm-offset-12 { margin-left: 100%; }
  .col-sm-offset-11 { margin-left: 91.66666667%; }
  .col-sm-offset-10 { margin-left: 83.33333333%; }
  .col-sm-offset-9 { margin-left: 75%; }
  .col-sm-offset-8 { margin-left: 66.66666667%; }
  .col-sm-offset-7 { margin-left: 58.33333333%; }
  .col-sm-offset-6 { margin-left: 50%; }
  .col-sm-offset-5 { margin-left: 41.66666667%; }
  .col-sm-offset-4 { margin-left: 33.33333333%; }
  .col-sm-offset-3 { margin-left: 25%; }
  .col-sm-offset-2 { margin-left: 16.66666667%; }
  .col-sm-offset-1 { margin-left: 8.33333333%; }
  .col-sm-offset-0 { margin-left: 0; }
}

@media (min-width: 992px) {
  .col-md-offset-12 { margin-left: 100%; }
  .col-md-offset-11 { margin-left: 91.66666667%; }
  .col-md-offset-10 { margin-left: 83.33333333%; }
  .col-md-offset-9 { margin-left: 75%; }
  .col-md-offset-8 { margin-left: 66.66666667%; }
  .col-md-offset-7 { margin-left: 58.33333333%; }
  .col-md-offset-6 { margin-left: 50%; }
  .col-md-offset-5 { margin-left: 41.66666667%; }
  .col-md-offset-4 { margin-left: 33.33333333%; }
  .col-md-offset-3 { margin-left: 25%; }
  .col-md-offset-2 { margin-left: 16.66666667%; }
  .col-md-offset-1 { margin-left: 8.33333333%; }
  .col-md-offset-0 { margin-left: 0; }
}

@media (min-width: 1200px) {
  .col-lg-offset-12 { margin-left: 100%; }
  .col-lg-offset-11 { margin-left: 91.66666667%; }
  .col-lg-offset-10 { margin-left: 83.33333333%; }
  .col-lg-offset-9 { margin-left: 75%; }
  .col-lg-offset-8 { margin-left: 66.66666667%; }
  .col-lg-offset-7 { margin-left: 58.33333333%; }
  .col-lg-offset-6 { margin-left: 50%; }
  .col-lg-offset-5 { margin-left: 41.66666667%; }
  .col-lg-offset-4 { margin-left: 33.33333333%; }
  .col-lg-offset-3 { margin-left: 25%; }
  .col-lg-offset-2 { margin-left: 16.66666667%; }
  .col-lg-offset-1 { margin-left: 8.33333333%; }
  .col-lg-offset-0 { margin-left: 0; }
}

/* col-xs-push-* classes */
.col-xs-push-12 { left: 100%; position: relative; }
.col-xs-push-11 { left: 91.66666667%; position: relative; }
.col-xs-push-10 { left: 83.33333333%; position: relative; }
.col-xs-push-9 { left: 75%; position: relative; }
.col-xs-push-8 { left: 66.66666667%; position: relative; }
.col-xs-push-7 { left: 58.33333333%; position: relative; }
.col-xs-push-6 { left: 50%; position: relative; }
.col-xs-push-5 { left: 41.66666667%; position: relative; }
.col-xs-push-4 { left: 33.33333333%; position: relative; }
.col-xs-push-3 { left: 25%; position: relative; }
.col-xs-push-2 { left: 16.66666667%; position: relative; }
.col-xs-push-1 { left: 8.33333333%; position: relative; }
.col-xs-push-0 { left: 0; position: relative; }

/* col-sm-push-* classes */
@media (min-width: 768px) {
  .col-sm-push-12 { left: 100%; position: relative; }
  .col-sm-push-11 { left: 91.66666667%; position: relative; }
  .col-sm-push-10 { left: 83.33333333%; position: relative; }
  .col-sm-push-9 { left: 75%; position: relative; }
  .col-sm-push-8 { left: 66.66666667%; position: relative; }
  .col-sm-push-7 { left: 58.33333333%; position: relative; }
  .col-sm-push-6 { left: 50%; position: relative; }
  .col-sm-push-5 { left: 41.66666667%; position: relative; }
  .col-sm-push-4 { left: 33.33333333%; position: relative; }
  .col-sm-push-3 { left: 25%; position: relative; }
  .col-sm-push-2 { left: 16.66666667%; position: relative; }
  .col-sm-push-1 { left: 8.33333333%; position: relative; }
  .col-sm-push-0 { left: 0; position: relative; }
}

/* col-md-push-* classes */
@media (min-width: 992px) {
  .col-md-push-12 { left: 100%; position: relative; }
  .col-md-push-11 { left: 91.66666667%; position: relative; }
  .col-md-push-10 { left: 83.33333333%; position: relative; }
  .col-md-push-9 { left: 75%; position: relative; }
  .col-md-push-8 { left: 66.66666667%; position: relative; }
  .col-md-push-7 { left: 58.33333333%; position: relative; }
  .col-md-push-6 { left: 50%; position: relative; }
  .col-md-push-5 { left: 41.66666667%; position: relative; }
  .col-md-push-4 { left: 33.33333333%; position: relative; }
  .col-md-push-3 { left: 25%; position: relative; }
  .col-md-push-2 { left: 16.66666667%; position: relative; }
  .col-md-push-1 { left: 8.33333333%; position: relative; }
  .col-md-push-0 { left: 0; position: relative; }
}

/* col-lg-push-* classes */
@media (min-width: 1200px) {
  .col-lg-push-12 { left: 100%; position: relative; }
  .col-lg-push-11 { left: 91.66666667%; position: relative; }
  .col-lg-push-10 { left: 83.33333333%; position: relative; }
  .col-lg-push-9 { left: 75%; position: relative; }
  .col-lg-push-8 { left: 66.66666667%; position: relative; }
  .col-lg-push-7 { left: 58.33333333%; position: relative; }
  .col-lg-push-6 { left: 50%; position: relative; }
  .col-lg-push-5 { left: 41.66666667%; position: relative; }
  .col-lg-push-4 { left: 33.33333333%; position: relative; }
  .col-lg-push-3 { left: 25%; position: relative; }
  .col-lg-push-2 { left: 16.66666667%; position: relative; }
  .col-lg-push-1 { left: 8.33333333%; position: relative; }
  .col-lg-push-0 { left: 0; position: relative; }
}

/* col-xs-pull-* classes */
.col-xs-pull-12 { right: 100%; position: relative; }
.col-xs-pull-11 { right: 91.66666667%; position: relative; }
.col-xs-pull-10 { right: 83.33333333%; position: relative; }
.col-xs-pull-9 { right: 75%; position: relative; }
.col-xs-pull-8 { right: 66.66666667%; position: relative; }
.col-xs-pull-7 { right: 58.33333333%; position: relative; }
.col-xs-pull-6 { right: 50%; position: relative; }
.col-xs-pull-5 { right: 41.66666667%; position: relative; }
.col-xs-pull-4 { right: 33.33333333%; position: relative; }
.col-xs-pull-3 { right: 25%; position: relative; }
.col-xs-pull-2 { right: 16.66666667%; position: relative; }
.col-xs-pull-1 { right: 8.33333333%; position: relative; }
.col-xs-pull-0 { right: 0; position: relative; }

/* col-sm-pull-* classes */
@media (min-width: 768px) {
  .col-sm-pull-12 { right: 100%; position: relative; }
  .col-sm-pull-11 { right: 91.66666667%; position: relative; }
  .col-sm-pull-10 { right: 83.33333333%; position: relative; }
  .col-sm-pull-9 { right: 75%; position: relative; }
  .col-sm-pull-8 { right: 66.66666667%; position: relative; }
  .col-sm-pull-7 { right: 58.33333333%; position: relative; }
  .col-sm-pull-6 { right: 50%; position: relative; }
  .col-sm-pull-5 { right: 41.66666667%; position: relative; }
  .col-sm-pull-4 { right: 33.33333333%; position: relative; }
  .col-sm-pull-3 { right: 25%; position: relative; }
  .col-sm-pull-2 { right: 16.66666667%; position: relative; }
  .col-sm-pull-1 { right: 8.33333333%; position: relative; }
  .col-sm-pull-0 { right: 0; position: relative; }
}

/* col-md-pull-* classes */
@media (min-width: 992px) {
  .col-md-pull-12 { right: 100%; position: relative; }
  .col-md-pull-11 { right: 91.66666667%; position: relative; }
  .col-md-pull-10 { right: 83.33333333%; position: relative; }
  .col-md-pull-9 { right: 75%; position: relative; }
  .col-md-pull-8 { right: 66.66666667%; position: relative; }
  .col-md-pull-7 { right: 58.33333333%; position: relative; }
  .col-md-pull-6 { right: 50%; position: relative; }
  .col-md-pull-5 { right: 41.66666667%; position: relative; }
  .col-md-pull-4 { right: 33.33333333%; position: relative; }
  .col-md-pull-3 { right: 25%; position: relative; }
  .col-md-pull-2 { right: 16.66666667%; position: relative; }
  .col-md-pull-1 { right: 8.33333333%; position: relative; }
  .col-md-pull-0 { right: 0; position: relative; }
}

/* col-lg-pull-* classes */
@media (min-width: 1200px) {
  .col-lg-pull-12 { right: 100%; position: relative; }
  .col-lg-pull-11 { right: 91.66666667%; position: relative; }
  .col-lg-pull-10 { right: 83.33333333%; position: relative; }
  .col-lg-pull-9 { right: 75%; position: relative; }
  .col-lg-pull-8 { right: 66.66666667%; position: relative; }
  .col-lg-pull-7 { right: 58.33333333%; position: relative; }
  .col-lg-pull-6 { right: 50%; position: relative; }
  .col-lg-pull-5 { right: 41.66666667%; position: relative; }
  .col-lg-pull-4 { right: 33.33333333%; position: relative; }
  .col-lg-pull-3 { right: 25%; position: relative; }
  .col-lg-pull-2 { right: 16.66666667%; position: relative; }
  .col-lg-pull-1 { right: 8.33333333%; position: relative; }
  .col-lg-pull-0 { right: 0; position: relative; }
}

/* ===============================================================
 * 2. Layout Components
 * =============================================================== */

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

/* Row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* ===============================================================
 * 3. Navigation
 * =============================================================== */

/* Navbar */
.navbar-default {
    background-color: #f8f9fa;
    border-color: #e7e7e7;
}

.navbar-inverse {
    color: #fff;
    background-color: #212529;
}

.navbar-static-top {
    position: static;
    width: 100%;
    z-index: 1000;
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-fixed-bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand {
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav > li {
    position: relative;
    display: block;
}

.navbar-nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

.navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
}

.navbar-nav .dropdown-menu {
    position: static;
    float: none;
}

@media (min-width: 768px) {
    .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-nav .nav-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .navbar-nav .dropdown-menu {
        position: absolute;
    }
}

.navbar-text {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Navbar positioning */
.navbar-right {
    margin-left: auto !important;
}

.navbar-left {
    margin-right: auto !important;
}

/* Pager (removed in BS5) */
.pager {
    padding-left: 0;
    margin: 1.25rem 0;
    list-style: none;
    text-align: center;
}

.pager li {
    display: inline;
}

.pager li > a,
.pager li > span {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 15px;
}

.pager li > a:hover,
.pager li > a:focus {
    text-decoration: none;
    background-color: #e9ecef;
}

.pager .next > a,
.pager .next > span {
    float: right;
}

.pager .previous > a,
.pager .previous > span {
    float: left;
}

.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
    color: #6c757d;
    background-color: #fff;
    cursor: not-allowed;
}

/* ===============================================================
 * 4. Forms
 * =============================================================== */

/* Form Controls */
.form-control-static {
    display: block;
    width: 100%;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.input-lg {
    height: calc(1.5em + 1rem + 2px);
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

.input-sm {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.control-label {
    margin-bottom: 0.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

/* Form Horizontal */
.form-horizontal .control-label {
    padding-top: calc(0.375rem + 1px);
    margin-bottom: 0;
    text-align: right;
}

/* Form Inline */
.form-inline {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.form-inline .form-group {
    display: flex;
    flex: 0 0 auto;
    flex-flow: row wrap;
    align-items: center;
    margin-bottom: 0;
}

/* Input Groups */
.input-group-addon {
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.input-group-addon,
.input-group-btn {
    display: flex;
    align-items: center;
}

.input-group-addon:not(:last-child),
.input-group-btn:not(:last-child) > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-addon:not(:first-child),
.input-group-btn:not(:first-child) > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Form Validation */
.has-success .form-control {
    border-color: #198754;
}

.has-warning .form-control {
    border-color: #ffc107;
}

.has-error .form-control {
    border-color: #dc3545;
}

.help-block {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

/* ===============================================================
 * 5. Buttons
 * =============================================================== */

/* Button styles */
.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}
.btn-default:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

button.close {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
}
.close { 
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    filter: alpha(opacity=20);
}

/* ===============================================================
 * 6. Components
 * =============================================================== */

/* Panels (replaced by cards in BS5) */
.panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}
.panel-heading {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
}
.panel-title {
    margin-bottom: 0;
    font-size: 1rem;
}
.panel-body {
    flex: 1 1 auto;
    padding: 1rem;
}
.panel-footer {
    padding: 0.5rem 1rem;
    background-color: rgba(0,0,0,.03);
    border-top: 1px solid rgba(0,0,0,.125);
}

/* Wells (removed in BS5) */
.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);
}
.well-lg {
    padding: 24px;
    border-radius: 6px;
}
.well-sm {
    padding: 9px;
    border-radius: 3px;
}

/* List styles */
.list-inline {
    padding-left: 0;
    list-style: none;
    margin-left: -5px;
    display: flex;
    flex-wrap: wrap;
}

.list-inline > li {
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
    margin-right: 0.5rem;
}

.list-inline > li:last-child {
    margin-right: 0;
}

/* Form Validation */
.has-success .form-control {
    border-color: #198754;
}

.has-warning .form-control {
    border-color: #ffc107;
}

.has-error .form-control {
    border-color: #dc3545;
}

.help-block {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

/* Thumbnails (replaced by cards in BS5) */
.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;
    display: block;
    max-width: 100%;
    height: auto;
}
.thumbnail .caption {
    padding: 9px;
    color: #333;
}

/* List Groups */
.list-group-item {
    position: relative;
    display: block;
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.125);
}

/* Input groups */
.input-group-addon {
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.input-group-addon,
.input-group-btn {
    display: flex;
    align-items: center;
}

.input-group-addon:not(:last-child),
.input-group-btn:not(:last-child) > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-addon:not(:first-child),
.input-group-btn:not(:first-child) > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Dropdowns */
.dropdown-menu > li > a {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    color: #fff;
    text-decoration: none;
    background-color: #0d6efd;
}

/* List groups */
a.list-group-item {
    color: #495057;
    text-decoration: none;
    background-color: #fff;
}

a.list-group-item:hover,
a.list-group-item:focus {
    z-index: 1;
    color: #495057;
    text-decoration: none;
    background-color: #f8f9fa;
}

/* Tables */
.table-condensed {
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: #212529;
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-active-color: #212529;
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-color: #212529;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
    padding: 0.3rem;
}

/* Contextual table classes */
.table > tbody > tr.success > td,
.table > tbody > tr.success > th,
.table > tbody > tr > td.success,
.table > tbody > tr > th.success,
.table > tfoot > tr.success > td,
.table > tfoot > tr.success > th,
.table > tfoot > tr > td.success,
.table > tfoot > tr > th.success,
.table > thead > tr.success > td,
.table > thead > tr.success > th,
.table > thead > tr > td.success,
.table > thead > tr > th.success {
    --bs-table-accent-bg: rgba(25, 135, 84, 0.1);
    color: #0f5132;
}

.table > tbody > tr.info > td,
.table > tbody > tr.info > th,
.table > tbody > tr > td.info,
.table > tbody > tr > th.info,
.table > tfoot > tr.info > td,
.table > tfoot > tr.info > th,
.table > tfoot > tr > td.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > thead > tr.info > th,
.table > thead > tr > td.info,
.table > thead > tr > th.info {
    --bs-table-accent-bg: rgba(13, 202, 240, 0.1);
    color: #055160;
}

.table > tbody > tr.warning > td,
.table > tbody > tr.warning > th,
.table > tbody > tr > td.warning,
.table > tbody > tr > th.warning,
.table > tfoot > tr.warning > td,
.table > tfoot > tr.warning > th,
.table > tfoot > tr > td.warning,
.table > tfoot > tr > th.warning,
.table > thead > tr.warning > td,
.table > thead > tr.warning > th,
.table > thead > tr > td.warning,
.table > thead > tr > th.warning {
    --bs-table-accent-bg: rgba(255, 193, 7, 0.1);
    color: #664d03;
}

.table > tbody > tr.danger > td,
.table > tbody > tr.danger > th,
.table > tbody > tr > td.danger,
.table > tbody > tr > th.danger,
.table > tfoot > tr.danger > td,
.table > tfoot > tr.danger > th,
.table > tfoot > tr > td.danger,
.table > tfoot > tr > th.danger,
.table > thead > tr.danger > td,
.table > thead > tr.danger > th,
.table > thead > tr > td.danger,
.table > thead > tr > th.danger {
    --bs-table-accent-bg: rgba(220, 53, 69, 0.1);
    color: #842029;
}

/* Progress bars */
.progress-bar-success {
    background-color: #198754;
}

.progress-bar-info {
    background-color: #0dcaf0;
}

.progress-bar-warning {
    background-color: #ffc107;
}

.progress-bar-danger {
    background-color: #dc3545;
}

/* Labels (replaced by badges in BS5) */
.label {
    display: inline-block;
    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;
}

.label-default {
    color: #fff;
    background-color: #6c757d;
}

.label-primary {
    color: #fff;
    background-color: #0d6efd;
}

.label-success {
    color: #fff;
    background-color: #198754;
}

.label-info {
    color: #fff;
    background-color: #0dcaf0;
}

.label-warning {
    color: #fff;
    background-color: #ffc107;
}

.label-danger {
    color: #fff;
    background-color: #dc3545;
}

/* Alerts */
.alert-link {
    font-weight: 700;
}

/* Carousel */
.carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: none;
    border: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.carousel-control:hover,
.carousel-control:focus {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: 0.9;
}

.carousel-control.left {
    left: 0;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
    background-repeat: repeat-x;
}

.carousel-control.right {
    right: 0;
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
    background-repeat: repeat-x;
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
    list-style: none;
}

.carousel-indicators li {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

/* Jumbotron (removed in BS5) */
.jumbotron {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #e9ecef;
    border-radius: 0.3rem;
}

@media (min-width: 576px) {
    .jumbotron {
        padding: 4rem 2rem;
    }
}

.jumbotron-fluid {
    padding-right: 0;
    padding-left: 0;
    border-radius: 0;
}

/* Page header (removed in BS5) */
.page-header {
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem;
    border-bottom: 1px solid #dee2e6;
}
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
    color: #6c757d;
    background-color: #fff;
    cursor: not-allowed;
}

/* ===============================================================
 * 7. Tables
 * =============================================================== */

.table > tbody > tr.active > td,
.table > tbody > tr.active > th,
.table > tbody > tr > td.active,
.table > tbody > tr > th.active,
.table > tfoot > tr.active > td,
.table > tfoot > tr.active > th,
.table > thead > tr.active > td,
.table > thead > tr.active > th {
    background-color: rgba(0, 0, 0, 0.075);
}

.table > tbody > tr.success > td,
.table > tbody > tr.success > th,
.table > tbody > tr > td.success,
.table > tbody > tr > th.success,
.table > tfoot > tr.success > td,
.table > tfoot > tr.success > th,
.table > thead > tr.success > td,
.table > thead > tr.success > th {
    --bs-table-accent-bg: rgba(25, 135, 84, 0.1);
    color: #0f5132;
}

.table > tbody > tr.info > td,
.table > tbody > tr.info > th,
.table > tbody > tr > td.info,
.table > tbody > tr > th.info,
.table > tfoot > tr.info > td,
.table > tfoot > tr.info > th,
.table > thead > tr.info > td,
.table > thead > tr.info > th {
    --bs-table-accent-bg: rgba(13, 202, 240, 0.1);
    color: #055160;
}

.table > tbody > tr.warning > td,
.table > tbody > tr.warning > th,
.table > tbody > tr > td.warning,
.table > tbody > tr > th.warning,
.table > tfoot > tr.warning > td,
.table > tfoot > tr.warning > th,
.table > thead > tr.warning > td,
.table > thead > tr.warning > th {
    --bs-table-accent-bg: rgba(255, 193, 7, 0.1);
    color: #664d03;
}

.table > tbody > tr.danger > td,
.table > tbody > tr.danger > th,
.table > tbody > tr > td.danger,
.table > tbody > tr > th.danger,
.table > tfoot > tr.danger > td,
.table > tfoot > tr.danger > th,
.table > thead > tr.danger > td,
.table > thead > tr.danger > th {
    --bs-table-accent-bg: rgba(220, 53, 69, 0.1);
    color: #842029;
}

/* ===============================================================
 * 8. Utilities
 * =============================================================== */

p {
    margin-bottom: 1rem;
}

.no-margin {
    margin-bottom: 0;
}

/* Text Utilities */
.text-left { text-align: left }
.text-right { text-align: right }
.text-center { text-align: center }
.text-justify { text-align: justify }
.text-nowrap { white-space: nowrap }

/* Text transformation */
.text-lowercase { text-transform: lowercase }
.text-uppercase { text-transform: uppercase }
.text-capitalize { text-transform: capitalize }

/* Text colors */
.text-muted { color: #6c757d }
.text-primary { color: #0d6efd }
.text-success { color: #198754 }
.text-info { color: #0dcaf0 }
.text-warning { color: #ffc107 }
.text-danger { color: #dc3545 }

/* Background colors */
.bg-primary { background-color: #0d6efd; color: #fff }
.bg-success { background-color: #198754; color: #fff }
.bg-info { background-color: #0dcaf0; color: #000 }
.bg-warning { background-color: #ffc107; color: #000 }
.bg-danger { background-color: #dc3545; color: #fff }

/* Clearfix */
.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

/* Additional Spacing Utilities */
.m-t-0, .m-y-0, .m-a-0 { margin-top: 0 }
.m-r-0, .m-x-0, .m-a-0 { margin-right: 0 }
.m-b-0, .m-y-0, .m-a-0 { margin-bottom: 0 }
.m-l-0, .m-x-0, .m-a-0 { margin-left: 0 }

.m-t-1, .m-y-1, .m-a-1 { margin-top: 0.25rem }
.m-r-1, .m-x-1, .m-a-1 { margin-right: 0.25rem }
.m-b-1, .m-y-1, .m-a-1 { margin-bottom: 0.25rem }
.m-l-1, .m-x-1, .m-a-1 { margin-left: 0.25rem }

.m-t-2, .m-y-2, .m-a-2 { margin-top: 0.5rem }
.m-r-2, .m-x-2, .m-a-2 { margin-right: 0.5rem }
.m-b-2, .m-y-2, .m-a-2 { margin-bottom: 0.5rem }
.m-l-2, .m-x-2, .m-a-2 { margin-left: 0.5rem }

.m-t-3, .m-y-3, .m-a-3 { margin-top: 1rem }
.m-r-3, .m-x-3, .m-a-3 { margin-right: 1rem }
.m-b-3, .m-y-3, .m-a-3 { margin-bottom: 1rem }
.m-l-3, .m-x-3, .m-a-3 { margin-left: 1rem }

.m-t-4, .m-y-4, .m-a-4 { margin-top: 1.5rem }
.m-r-4, .m-x-4, .m-a-4 { margin-right: 1.5rem }
.m-b-4, .m-y-4, .m-a-4 { margin-bottom: 1.5rem }
.m-l-4, .m-x-4, .m-a-4 { margin-left: 1.5rem }

.m-t-5, .m-y-5, .m-a-5 { margin-top: 3rem }
.m-r-5, .m-x-5, .m-a-5 { margin-right: 3rem }
.m-b-5, .m-y-5, .m-a-5 { margin-bottom: 3rem }
.m-l-5, .m-x-5, .m-a-5 { margin-left: 3rem }

.p-t-0, .p-y-0, .p-a-0 { padding-top: 0 }
.p-r-0, .p-x-0, .p-a-0 { padding-right: 0 }
.p-b-0, .p-y-0, .p-a-0 { padding-bottom: 0 }
.p-l-0, .p-x-0, .p-a-0 { padding-left: 0 }

.p-t-1, .p-y-1, .p-a-1 { padding-top: 0.25rem }
.p-r-1, .p-x-1, .p-a-1 { padding-right: 0.25rem }
.p-b-1, .p-y-1, .p-a-1 { padding-bottom: 0.25rem }
.p-l-1, .p-x-1, .p-a-1 { padding-left: 0.25rem }

.p-t-2, .p-y-2, .p-a-2 { padding-top: 0.5rem }
.p-r-2, .p-x-2, .p-a-2 { padding-right: 0.5rem }
.p-b-2, .p-y-2, .p-a-2 { padding-bottom: 0.5rem }
.p-l-2, .p-x-2, .p-a-2 { padding-left: 0.5rem }

.p-t-3, .p-y-3, .p-a-3 { padding-top: 1rem }
.p-r-3, .p-x-3, .p-a-3 { padding-right: 1rem }
.p-b-3, .p-y-3, .p-a-3 { padding-bottom: 1rem }
.p-l-3, .p-x-3, .p-a-3 { padding-left: 1rem }

.p-t-4, .p-y-4, .p-a-4 { padding-top: 1.5rem }
.p-r-4, .p-x-4, .p-a-4 { padding-right: 1.5rem }
.p-b-4, .p-y-4, .p-a-4 { padding-bottom: 1.5rem }
.p-l-4, .p-x-4, .p-a-4 { padding-left: 1.5rem }

.p-t-5, .p-y-5, .p-a-5 { padding-top: 3rem }
.p-r-5, .p-x-5, .p-a-5 { padding-right: 3rem }
.p-b-5, .p-y-5, .p-a-5 { padding-bottom: 3rem }
.p-l-5, .p-x-5, .p-a-5 { padding-left: 3rem }

/* Float utilities */
.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

/* Show/Hide utilities */
.show {
    display: block;
}

.hidden {
    display: none;
}

/* Center-block (removed in BS5) */
.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================================================
 * 9. Responsive Utilities
 * =============================================================== */

/* Visibility Classes */
.visible-xs,
.visible-xs-block,
.visible-xs-inline,
.visible-xs-inline-block,
.visible-sm,
.visible-sm-block,
.visible-sm-inline,
.visible-sm-inline-block,
.visible-md,
.visible-md-block,
.visible-md-inline,
.visible-md-inline-block,
.visible-lg,
.visible-lg-block,
.visible-lg-inline,
.visible-lg-inline-block {
    display: none !important;
}

/* Visible classes for each breakpoint */
@media (max-width: 767.98px) {
    .visible-xs {
        display: block !important;
    }
    .visible-xs-block {
        display: block !important;
    }
    .visible-xs-inline {
        display: inline !important;
    }
    .visible-xs-inline-block {
        display: inline-block !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .visible-sm {
        display: block !important;
    }
    .visible-sm-block {
        display: block !important;
    }
    .visible-sm-inline {
        display: inline !important;
    }
    .visible-sm-inline-block {
        display: inline-block !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .visible-md {
        display: block !important;
    }
    .visible-md-block {
        display: block !important;
    }
    .visible-md-inline {
        display: inline !important;
    }
    .visible-md-inline-block {
        display: inline-block !important;
    }
}

@media (min-width: 1200px) {
    .visible-lg {
        display: block !important;
    }
    .visible-lg-block {
        display: block !important;
    }
    .visible-lg-inline {
        display: inline !important;
    }
    .visible-lg-inline-block {
        display: inline-block !important;
    }
}

/* Hidden classes for each breakpoint */
@media (max-width: 767.98px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hidden-sm {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hidden-md {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .hidden-lg {
        display: none !important;
    }
}

/* Center-block (removed in BS5) */
.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Show/Hide utilities */
.show {
    display: block !important;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

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

/* Alerts */
.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}
.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

/* Image Responsive */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Carousel */
.carousel-control.left,
.carousel-control.right {
    background-image: none;
}

/* Bootstrap 5 uses form-select instead of custom-select */
.custom-select {
	display: block;
	width: 100%;
	padding: 0.375rem 2.25rem 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px 12px;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* Fix for modals in Bootstrap 5 */
.modal-dialog {
	margin-right: auto;
	margin-left: auto;
}

/* Bootstrap 5 uses w-100 instead of btn-block */
.btn-block {
	display: block;
	width: 100%;
} 