/* Instant Notifications Styles */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.instant-notification-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-left: 4px solid #1F3A5F;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.instant-notification-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.instant-notification-toast .toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--gray-400);
    transition: color 0.2s;
    flex-shrink: 0;
}

.instant-notification-toast .toast-close:hover {
    color: var(--gray-600);
}

/* Notification badge pulse animation */
.notification-badge {
    animation: pulse-badge 2s infinite;
}

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

/* Multiple notifications stacking */
.instant-notification-toast + .instant-notification-toast {
    margin-top: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .instant-notification-toast {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        top: 70px;
    }
}

/* Notification Permission Dialog */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.notification-permission-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.notification-permission-dialog .permission-btn-allow:hover {
    transform: scale(1.05);
}

.notification-permission-dialog .permission-btn-deny:hover {
    transform: scale(1.05);
    background: var(--gray-200);
}

/* Mobile responsive for permission dialog */
@media (max-width: 768px) {
    .notification-permission-dialog {
        max-width: calc(100% - 40px);
        padding: 1.5rem;
    }
}


