﻿body {
    transition-delay: 0.3s;
    background-color: #d3d3d39c;
}

    

    :root {
        --primary-color: rgb(26,26,26);
    }

th,button,select,img,.badge {
    user-select: none;
}


main#main{
    min-height: 400px;
}

/*Footer*/
#footer {
    position: relative;
    background-color: var(--primary-color);
}

    #footer img {
        width: 15%;
        transform: scaleX(-1);
        position: absolute;
        bottom: 0;
        left: 0;
    }

    #footer .container {
        padding: 16px 24px;
        text-align: center;
        color: rgba(256, 256, 256, 0.6);
        font-size: 12px;
    }

        #footer .container p {
            padding: 4px;
        }


.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid;
    border-color: #000 #0000;
    animation: l1 1s infinite;
    display: none;
    user-select: none;
}
.loaderBar {
    width: 45px;
    aspect-ratio: 1;
    --c: no-repeat linear-gradient(#000 0 0);
    background: var(--c) 0% 50%, var(--c) 50% 50%, var(--c) 100% 50%;
    background-size: 20% 100%;
    animation: l2 1s infinite linear;
    user-select: none;
}

@keyframes l2 {
    0% {
        background-size: 20% 100%,20% 100%,20% 100%
    }

    33% {
        background-size: 20% 10%,20% 100%,20% 100%
    }

    50% {
        background-size: 20% 100%,20% 10%,20% 100%
    }

    66% {
        background-size: 20% 100%,20% 100%,20% 10%
    }

    100% {
        background-size: 20% 100%,20% 100%,20% 100%
    }
}
@keyframes l1 {
    to {
        transform: rotate(.5turn)
    }
}


.animation-hidden {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
    user-select: none;
}

.animation-visible {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.7s ease, opacity 0.7s ease;
    user-select: none;
}


.cke_notifications_area{
    display: none !important;
}








/* HEADER CSS */
/* Header Styles */
.navbar {
    background-color: var(--bs-primary) !important;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Arial', sans-serif;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #e0e0e0 !important;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: #3498db !important;
        background-color: #2c3e50;
        border-radius: 4px;
    }

    .navbar-nav .nav-link.active {
        color: var(--bs-info) !important;
        font-weight: bold;
        /*background-color: var(--bs-black);*/
        border-radius: 4px;
    }

.navbar-toggler {
    border-color: #3498db;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(52, 152, 219, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.dropdown-menu {
    background-color: #2c3e50;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
    z-index: 1050;
}

.dropdown-item {
    color: #e0e0e0 !important;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease;
}

    .dropdown-item:hover {
        background-color: #3498db;
        color: #fff !important;
    }

    .dropdown-item.text-danger {
        color: #e74c3c !important;
    }

        .dropdown-item.text-danger:hover {
            background-color: #c0392b;
            color: #fff !important;
        }

.dropdown-toggle img.rounded-circle {
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin-right: 0.5rem;
    border: 2px solid var(--bs-success);
}

.nav-item.auth-links .nav-link {
    color: #3498db !important;
    margin-left: 1rem;
}

    .nav-item.auth-links .nav-link:hover {
        color: #2980b9 !important;
        background-color: transparent;
    }

@media (max-width: 991px) {
    .navbar-nav {
        padding-top: 1rem;
    }

        .navbar-nav .nav-link {
            padding: 0.75rem 1.5rem;
        }

    .nav-item.auth-links {
        margin-top: 1rem;
        border-top: 1px solid #3498db;
        padding-top: 1rem;
    }

    .dropdown-menu {
        position: absolute;
        left: 0 !important;
        /* disable right:0 in boostrap */
        right: auto !important;
    }

        .dropdown-menu .dropdown-toggle {
            padding: 0.75rem 1.5rem;
        }
}

.notification-dropdown {
    position: relative;
}

.notification-bell {
    font-size: 1.4rem;
    color: #3498db;
    cursor: pointer;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
}

.notification-menu {
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #2c3e50;
    border-radius: 10px;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

    .notification-item.unseen {
        background-color: rgba(52, 152, 219, 0.1);
    }

    .notification-item:hover {
        background-color: #3498db;
        color: #fff;
    }

    .notification-item.important .notification-title::before {
        content: '\f0a1';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: #e74c3c;
        margin-right: 0.5rem;
    }

.notification-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color:var(--bs-light);
}

.notification-message {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.notification-meta {
    font-size: 0.8rem;
    color: #b0b0b0;
}

@media (max-width: 768px) {
    .notification-menu {
        width: 100%;
    }

    .notification-bell {
        font-size: 1.2rem;
    }
}

.notification-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.notification-message {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-meta {
    font-size: 0.8rem;
    color: #b0b0b0;
}

#notificationModal .modal-content {
    border-radius: 10px;
    border: none;
}

#notificationModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#notificationModal .modal-title {
    font-size: 1.2rem;
}

#notificationModal .modal-body {
    font-size: 1rem;
    line-height: 1.5;
}

#notificationModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px)
{
    .notification-badge {
        position: absolute;
        top: 8px;
        right:auto !important;
        left: 68px;
        background-color: #e74c3c;
        color: #fff;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .notification-menu {
        width: 100%;
    }

    .notification-bell {
        font-size: 1.2rem;
    }

    #notificationModal .modal-dialog {
        margin: 1rem;
    }
}