/* Notification Popup Styles */

#notification-popup-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification-popup {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    animation: slideInRight 0.3s ease-out;
    border-left: 5px solid;
}

.notification-popup-info { border-left-color: #17a2b8; }
.notification-popup-primary { border-left-color: #007bff; }
.notification-popup-warning { border-left-color: #ffc107; }
.notification-popup-danger { border-left-color: #dc3545; }

.notification-popup-content {
    padding: 20px;
}

.notification-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-popup-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.notification-popup-badge.badge-info { background: #17a2b8; }
.notification-popup-badge.badge-primary { background: #007bff; }
.notification-popup-badge.badge-warning { background: #ffc107; color: #000; }
.notification-popup-badge.badge-danger { background: #dc3545; }

.notification-popup-close {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.notification-popup-close:hover {
    background: #f8f9fa;
    color: #000;
}

.notification-popup-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.notification-popup-message {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.notification-popup-actions {
    display: flex;
    gap: 10px;
}

.notification-popup-actions .btn {
    flex: 1;
}

.notification-popup-fade-out {
    animation: slideOutRight 0.3s ease-in;
    opacity: 0;
}

/* Notification Badge in Navigation */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    display: none;
}

.notification-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #notification-popup-container {
        left: 10px;
        right: 10px;
        max-width: none;
        top: 70px;
    }

    .notification-popup-content {
        padding: 15px;
    }

    .notification-popup-title {
        font-size: 1em;
    }

    .notification-popup-message {
        font-size: 0.9em;
    }

    .notification-popup-actions {
        flex-direction: column;
    }
}
