/* Loading spinner animation */
.fa-spin-pulse {
    animation: fa-spin-pulse 1s infinite linear;
}

@keyframes fa-spin-pulse {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

/* Mobile sidebar overlay */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

#sidebar-overlay.active {
    display: block;
}

/* Mobile sidebar */
.mobile-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.custom-container {
    width: 100%;
    padding-right: 8px;
    padding-left: 8px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 374px) {
    .custom-container {
        max-width: 350px;
    }
}

@media (min-width: 576px) {
    .custom-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .custom-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .custom-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .custom-container {
        max-width: 1140px;
    }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.login {
    min-height: 100%;
    padding: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .login {
        padding: 1.25rem;
    }
}

.login .login-content {
    max-width: 22.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1200px) {
    .desktop-sticky-top {
        position: -webkit-sticky;
        position: sticky;
        top: 80px;
    }
}

@media (min-width: 992px) {
    body,
    html,
    #app {
        height: 100%;
    }
}

body {
    margin: 0;
    line-height: 1.5;
    color: #212837;
    text-align: left;
}

a.custom-text {
    color: #1f6bff;
    text-decoration: none;
    background-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

h1.custom-text,
.h1 {
    font-size: 2.1875rem;
}

h2.custom-text,
.h2 {
    font-size: 1.75rem;
}

h3.custom-text,
.h3 {
    font-size: 1.53125rem;
}

h4.custom-text,
.h4 {
    font-size: 1.3125rem;
}

h5.custom-text,
.h5 {
    font-size: 1.09375rem;
}

h6.custom-text,
.h6 {
    font-size: 0.875rem;
}

.text-muted {
    color: #869ac0 !important;
}

.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
}
  
.alert-heading {
    color: inherit;
}

.alert-danger {
    color: #851f19;
    background-color: #ffd8d6;
    border-color: #ffc8c5;
}

.alert-danger hr {
    border-top-color: #ffb0ac;
}

.alert-danger .alert-link {
    color: #5a1511;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
    background-color: #1f6bff;
    transition: width 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
    .progress-bar {
      transition: none;
    }
}