
.owl-up-banner {
    z-index: -1 !important;
}

.ChangeModeMobile, #CloseNavBar {
    cursor: pointer;
    z-index: 1050;
}

.MyImg , .user-avatar{
    object-fit: cover
}

/*.dropdown-menu{*/
/*    z-index: 1050;*/
/*}*/

/* Initially hide the navbar */
@media (max-width: 991px) {

    #NavWeb {
        margin-top: 0px !important;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1050;
    }

    /* Show the navbar when active */
    #NavWeb.show {
        transform: translateY(0);
    }

    .language-switcher-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
        margin-bottom: 10px; /* Adds spacing between elements */
    }

    .language-switcher-container .dropdown {
        width: 100%; /* Ensures proper alignment */
        text-align: center;
    }

    .dropdown-toggle-lang {
        width: 100%;
        text-align: center;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 8px;
    }
    .d-none-991{
        display: none;
    }
}

@media (min-width: 991px) {
    .d-none-max991{
        display: none;
    }
}

/* Spinner container */
.spinner-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid #ffffff; /* Primary color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner Text */
.spinner-text {
    margin-left: 8px;
    font-size: 16px;
    color: #ffffff; /* Match spinner color */
    font-weight: 500;
}

/* Keyframes for spinning effect */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

 #Top-Navbar {
     padding-top: 0.25rem; /* pt-1 */
     padding-bottom: 0.25rem; /* pb-1 (default) */
 }

@media (min-width: 992px) {
    #Top-Navbar {
        padding-bottom: 3rem; /* pb-5 */
    }
}


.modern-dropdown {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.modern-dropdown a{
    text-decoration: none;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    /*padding: 12px 10px;*/
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.3s ease;
}

/* Dropdown User Style */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Circular avatar */
    /*object-fit: cover; !* Ensure the image fits well *!*/
    border: 2px solid #5c4db1; /* Add a theme-based border */
    transition: transform 0.3s ease; /* Add animation effect */
}

/*.user-avatar:hover {*/
/*    transform: scale(1.1); !* Slight zoom-in effect on hover *!*/
/*}*/

.modern-user-dropdown {
    border-radius: 8px; /* Smooth rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    background-color: #fff; /* Clean white background */
}

.modern-user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 0.95rem; /* Slightly larger font for readability */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

.modern-user-dropdown .dropdown-item i {
    font-size: 1rem; /* Icon size */
    color: #5c4db1; /* Theme-based icon color */
}

.modern-user-dropdown .dropdown-item.text-danger i {
    color: #dc3545; /* Red icon for logout */
}

.modern-user-dropdown .dropdown-item:hover {
    background-color: #f8f9fa; /* Light hover effect */
    color: #333; /* Text color on hover */
}

.modern-user-dropdown .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1); /* Slight red background for logout hover */
}


.dropdown-item:last-child {
    border-bottom: none;
}

/*.dropdown-item:hover {*/
/*    background-color: #f9f9f9;*/
/*}*/

.notification-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    /*border: 2px solid #5c4db1;*/
}

.notification-text {
    flex: 1;
    word-wrap: break-word;
    white-space: normal;
}

.CairoSemiBold {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.text-muted {
    font-size: 0.85rem;
    color: #777;
}


.owl-up-banner .owl-item{
    /*padding: 10px;*/
    transition: transform 0.3s ease-in-out;
}

/* General navbar styles */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Add space between items */
}

/* Search bar styles */
.SearchSec form {
    display: flex;
    align-items: center;
}

#search-input {
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: 250px;
    transition: all 0.3s ease;
}

#search-input:focus {
    border-color: #5C4DB1;
    box-shadow: 0 0 5px rgba(92, 77, 177, 0.4);
    outline: none;
}

#search-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#search-button:hover {
    transform: scale(1.1);
}

.language-switcher-container .dropdown-toggle-lang {
    font-size: 0.9rem;
    background-color: #f8f9fa;
    border-radius: 50px;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.language-switcher-container .dropdown-toggle-lang:hover {
    background-color: #5C4DB1;
    color: white;
}

.language-switcher-container .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.language-switcher-container .dropdown-item:hover {
    background-color: #f1f1f1;
}

.language-switcher-container #languageSwitcher {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher-container #languageSwitcher i {
    font-size: 16px;
}

.language-switcher-container #languageSwitcher:hover {
    background-color: #5c4db1;
    color: #fff;
    border-color: #5c4db1;
}

.language-switcher-container .dropdown-menu {
    min-width: 150px;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.language-switcher-container .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 8px 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease-in-out;
    border-radius: 6px;
}

.language-switcher-container .dropdown-menu .dropdown-item:hover {
    background-color: #5c4db1;
    color: #fff;
}

.language-switcher-container .dropdown-menu .dropdown-item i {
    font-size: 16px;
    color: inherit;
}

.language-switcher-container .dropdown-menu .dropdown-item .fa-check {
    font-size: 14px;
    color: #28a745;
}

.owl-up-banner .owl-item:hover {
    transform: scale(1.05);
}
/* Fade-out animation */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

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

#error-messages {
    font-size: 0.875rem;
    color: #e74c3c;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    display: none;
}

#error-messages.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Optional: Slide-in animation (if needed) */
.slide-in {
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.5s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Optional: Scale-up animation */
.scale-up {
    transform: scale(0.9);
    opacity: 0;
    animation: scaleUp 0.5s ease-in forwards;
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 10px;
    margin: 20px 0;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out; /* Add fade-in animation */
}

.pagination .page-item {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pagination .page-link {
    display: block;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    background-color: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.pagination .page-link:hover {
    color: #5c4db1;
    background-color: #5c4db1;
    border-color: #5c4db1;
    text-decoration: none;
    transform: scale(1.1); /* Add hover scale effect */
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #5c4db1;
    border-color: #5c4db1;
    pointer-events: none;
    box-shadow: 0 3px 6px rgb(114, 96, 217);
    transform: scale(1.1); /* Highlight active item */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

.pagination .page-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
    background-color: #f1f1f1;
    border-color: #ddd;
    pointer-events: none;
}

/* Add smooth fade-in animation for the entire pagination */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Optional: Add a bounce animation for hover effects */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Apply bounce effect on hover (optional) */
.pagination .page-item:hover .page-link {
    animation: bounce 0.3s ease-in-out;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px; /* Adjust height as needed */
    text-align: center;
    color: #333;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(93, 88, 88, 0.2);
    border-top-color: #ffffff; /* Change to your theme color */
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

.loading-spinner p {
    font-size: 14px;
    margin: 0px 2px;
    color: #666;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999;
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    pointer-events: none; /* Prevents interaction with the background */
}

.loading-overlay .spinner {
    width: 80px;
    height: 80px;
    display: inline-block;
    position: relative;
}

.loading-overlay .spinner div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 6px solid #ffffff; /* Spinner color */
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0.2, 0.3, 1) infinite;
    border-color: #ffffff transparent transparent transparent;
}

.loading-overlay .spinner div:nth-child(1) {
    animation-delay: -0.45s;
}
.loading-overlay .spinner div:nth-child(2) {
    animation-delay: -0.3s;
}
.loading-overlay .spinner div:nth-child(3) {
    animation-delay: -0.15s;
}
.loading-overlay .spinner div:nth-child(4) {
    animation-delay: 0s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.btn-login {
    background-color: #5c4db1;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-login:hover {
    background-color: #48389a;
    transform: translateY(-2px);
}
