/* Modern Navbar Styles */

.navbar {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; */
    background-color: black !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    z-index: 9999;
}

.navbar-brand {
    font-weight: 700;
    color: #fff !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #f8f9fa !important;
}

.navbar-brand img {
    
    object-fit: cover;
    /* border-radius: 50%;
    height: 40px;
    width: 40px; */
    margin-right: 10px;

    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(5deg);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.dropdown-menu {
    background-color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: #495057;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #667eea;
    color: #fff;
    /* transform: translateX(5px); */
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* User Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: rgb(12, 55, 196);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: capitalize;
}

/* Dark Mode Toggle */
.darktoggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.darktoggle:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        color: #495057 !important;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: #667eea;
        color: #fff !important;
    }
    
    .user-profile {
        color: #495057 !important;
        background-color: #f8f9fa;
        border-color: #dee2e6;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    animation: slideDown 0.3s ease;
}

/* Navbar Brand Text Animation */
.navbar-brand span {
    background: linear-gradient(45deg, #fff, #f8f9fa);
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Notification Badge Styles */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: bold;
    /* min-width: 18px;
    height: 21px; */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: pulse 2s infinite;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Bell icon hover effect */
.bi-bell {
    transition: all 0.3s ease;
    position: relative;
}

.bi-bell:hover {
    transform: scale(1.1);
    color: #ffc107 !important;
}

/* Notification container */
.notification-container {
    position: relative;
    display: inline-block;
}

/* Ensure notification badge is visible on all backgrounds */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: pulse 2s infinite;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-shadow: none;
}
