/* Notification System Styles */

/* Notification Bell */
.notification-wrapper {
    position: relative;
}

.notification-bell-btn {
    position: relative;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: #fff;
    transition: all 0.2s ease;
}

.notification-bell-btn:hover {
    color: #45CB69;
    transform: scale(1.1);
}

.notification-bell-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(69, 203, 105, 0.3);
    border-radius: 4px;
}

/* Hide Bootstrap dropdown arrow */
.notification-bell-btn::after {
    display: none !important;
}

.notification-bell-btn.dropdown-toggle::after {
    display: none !important;
}

/* Notification Badge */
.notification-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Notification Dropdown */
.notification-dropdown {
    background: #1C2235;
    border: 1px solid rgba(69, 203, 105, 0.2);
    min-width: 380px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.notification-dropdown::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown::-webkit-scrollbar-track {
    background: #232734;
    border-radius: 3px;
}

.notification-dropdown::-webkit-scrollbar-thumb {
    background: rgba(69, 203, 105, 0.3);
    border-radius: 3px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(69, 203, 105, 0.5);
}

/* Notification List */
.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

/* Notification Item */
.notification-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0.75rem 1rem;
}

.notification-item:hover {
    background: rgba(69, 203, 105, 0.05);
}

.notification-item-unread {
    background: rgba(69, 203, 105, 0.03);
}

.notification-item-unread .notification-title {
    font-weight: 600;
    color: #fff;
}

.notification-item-read {
    background: transparent;
}

.notification-item-read .notification-title {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(69, 203, 105, 0.1);
    border: 1px solid rgba(69, 203, 105, 0.2);
}

.notification-icon i {
    font-size: 1.25rem;
    color: #45CB69;
}

/* Notification Content */
.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.notification-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Unread Indicator */
.notification-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
}

.notification-item-read .notification-unread-dot {
    display: none;
}

/* Notification View Button */
.notification-view-btn {
    padding: 0;
    font-size: 0.75rem;
    color: #45CB69;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notification-view-btn:hover {
    color: #2f8a47;
    text-decoration: underline;
}

/* Empty State */
#notificationEmpty {
    padding: 3rem 1rem;
    text-align: center;
}

#notificationEmpty i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

#notificationEmpty p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Loading State */
#notificationLoading {
    padding: 2rem 1rem;
    text-align: center;
}

#notificationLoading .spinner-border {
    color: #45CB69;
}

#notificationLoading p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Header Badge */
#notificationHeaderBadge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

/* Footer Buttons */
.notification-dropdown .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.notification-dropdown .btn-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.notification-dropdown .btn-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        min-width: 320px;
        max-width: 90vw;
    }
    
    .notification-item {
        padding: 0.5rem 0.75rem;
    }
    
    .notification-icon {
        width: 32px;
        height: 32px;
    }
    
    .notification-icon i {
        font-size: 1rem;
    }
    
    .notification-title {
        font-size: 0.85rem;
    }
    
    .notification-message {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .notification-dropdown {
        min-width: 280px;
        max-width: 95vw;
    }
    
    .notification-bell-btn {
        padding: 0.375rem;
    }
    
    .notification-badge {
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
    }
}

