.auth-card {
    background-color: #0A3D72;
    border-radius: 15px; /* Keep a smooth normal rounding */
    border: 2px solid #06294D;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Optional: Remove these pseudo-elements completely */
.auth-card::before,
.auth-card::after {
    content: none;
}

/*Header styles*/
.navbar-custom {
    backdrop-filter: blur(10px);
    background-color: #0A3D72;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 0.5rem 0;
}

.nav-icon-wrapper {
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover .nav-icon-wrapper {
    transform: translateY(-1px);
}

.avatar-md {
    width: 38px;
    height: 38px;
}

.avatar-lg {
    width: 48px;
    height: 48px;
}

.dropdown-menu {
    animation: dropdownAnimation 0.2s ease;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    margin-left: 1px;
    border-radius: 0.5rem;
    background-color: var(--bs-dropdown-bg);
    padding: 0.5rem 0;
}

.dropdown-submenu:hover .submenu,
.dropdown-submenu .submenu.show {
    display: block;
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bs-primary-bg-subtle);
}

.dropdown-item.active {
    color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
}

.dropdown-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes dropdownAnimation {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-bs-theme="dark"] .navbar-custom {
    background-color: rgba(33,37,41,.95);
    border-bottom-color: rgba(255,255,255,.05);
}

/* Loading Indicator Styles */
#loading-overlay {
    animation: fadeIn 0.3s ease-in-out;
}

#loading-overlay .spinner-border {
    animation: spin 1s linear infinite;
}

#loading-overlay h5 {
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Ensure loading overlay is always on top */
#loading-overlay {
    z-index: 9999 !important;
}

/* Smooth transitions for page content */
.app-content-area {
    transition: opacity 0.3s ease-in-out;
}

.app-content-area.loading {
    opacity: 0.5;
}

/* Loading skeleton animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}