html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.toast {
    position: fixed;
    top: 0;
    right: 0;
    margin: 1rem;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}
.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}


.page-title {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, rgba(0,123,255,0), rgba(0,123,255,1), rgba(0,123,255,0));
}

/* Filter Card Styles */
.filter-card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.filter-card-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    background-color: rgba(0, 0, 0, 0.03);
}

/* Loading overlay styles */
.loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s, opacity 0.3s linear;
    }

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.form-select, .form-control {
    border-radius: 0.375rem;
}

.form-floating > .form-control, .form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.badge-item-count {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 0.25rem 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions .btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
     from { opacity: 0; }
     to { opacity: 1; }
 }

.pagination .page-link {
    min-width: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    table.table {
        font-size: 0.95rem;
    }
    th, td {
        white-space: nowrap;
        padding: 0.5rem 0.3rem;
    }
}