/* ========================================
   UNIFIED NOTIFICATION SYSTEM
   ======================================== */

/* Base notification styles */
.dppb-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: dppb-slide-in 0.3s ease-out;
    border-left: 4px solid;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Notification types */
.dppb-notification-success {
    background: #28a745;
    border-left-color: #1e7e34;
}

.dppb-notification-error {
    background: #dc3545;
    border-left-color: #bd2130;
}

.dppb-notification-warning {
    background: #ffc107;
    border-left-color: #e0a800;
}

.dppb-notification-info {
    background: #0073aa;
    border-left-color: #005a87;
}

/* Notification message */
.dppb-notification-message {
    flex: 1;
    margin-right: 12px;
}

/* Close button */
.dppb-notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dppb-notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.dppb-notification-close:active {
    transform: scale(0.95);
}

/* Animation */
@keyframes dppb-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes dppb-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Hover effects */
.dppb-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media screen and (max-width: 782px) {
    .dppb-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        margin: 0;
    }
}

/* WordPress admin compatibility */
.wp-admin .dppb-notification {
    top: 32px;
}

/* Multiple notifications stacking */
.dppb-notification + .dppb-notification {
    top: calc(20px + 80px * var(--notification-index, 0));
}

.wp-admin .dppb-notification + .dppb-notification {
    top: calc(32px + 80px * var(--notification-index, 0));
}

/* Legacy support for WordPress notice classes */
.notice.dppb-notification {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    margin: 0 !important;
    max-width: 400px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    animation: dppb-slide-in 0.3s ease-out !important;
    backdrop-filter: blur(10px) !important;
    border-left-width: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 16px 20px !important;
}

.wp-admin .notice.dppb-notification {
    top: 32px !important;
}

.notice.dppb-notification.notice-success {
    background: #28a745 !important;
    border-left-color: #1e7e34 !important;
}

.notice.dppb-notification.notice-error {
    background: #dc3545 !important;
    border-left-color: #bd2130 !important;
}

.notice.dppb-notification.notice-warning {
    background: #ffc107 !important;
    border-left-color: #e0a800 !important;
}

.notice.dppb-notification.notice-info {
    background: #0073aa !important;
    border-left-color: #005a87 !important;
}

.notice.dppb-notification p {
    margin: 0 !important;
    color: white !important;
} 