/**
 * Custom Notification Modal System
 * Beautiful notifications instead of browser alerts
 */

/* Notification Overlay */
.ahive-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.ahive-notification-overlay.active {
    display: flex;
}

/* Notification Container */
.ahive-notification-container {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

/* Notification Header */
.ahive-notification-header {
    padding: 30px 30px 20px;
    text-align: center;
}

.ahive-notification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Success */
.ahive-notification-icon.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.3);
}

/* Error */
.ahive-notification-icon.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(245, 101, 101, 0.3);
}

/* Warning */
.ahive-notification-icon.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(237, 137, 54, 0.3);
}

/* Info */
.ahive-notification-icon.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.3);
}

/* Confirm */
.ahive-notification-icon.confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

/* Notification Title */
.ahive-notification-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
}

/* Notification Message */
.ahive-notification-message {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
}

/* Notification Body */
.ahive-notification-body {
    padding: 0 30px 30px;
}

/* Notification Actions */
.ahive-notification-actions {
    padding: 20px 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ahive-notification-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.ahive-notification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ahive-notification-btn:active {
    transform: translateY(0);
}

/* Primary Button */
.ahive-notification-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ahive-notification-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Success Button */
.ahive-notification-btn.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.ahive-notification-btn.success:hover {
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

/* Danger Button */
.ahive-notification-btn.danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.ahive-notification-btn.danger:hover {
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

/* Secondary Button */
.ahive-notification-btn.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.ahive-notification-btn.secondary:hover {
    background: #cbd5e0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Auto-dismiss progress bar */
.ahive-notification-progress {
    height: 4px;
    background: #e2e8f0;
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.ahive-notification-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    animation: progressBar 3s linear;
}

@keyframes progressBar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .ahive-notification-container {
        width: 95%;
        max-width: none;
    }

    .ahive-notification-header {
        padding: 24px 20px 16px;
    }

    .ahive-notification-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .ahive-notification-title {
        font-size: 20px;
    }

    .ahive-notification-message {
        font-size: 14px;
    }

    .ahive-notification-body {
        padding: 0 20px 24px;
    }

    .ahive-notification-actions {
        padding: 16px 20px 24px;
        flex-direction: column;
    }

    .ahive-notification-btn {
        width: 100%;
        min-width: auto;
    }
}