.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    z-index: 10000;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    opacity: 1;
    transform: translateX(0);
}

/* Success notification */
.notification-success {
    background-color: #10b981;
    color: white;
    border-left: 4px solid #059669;
}

/* Error notification */
.notification-error,
.notification-danger {
    background-color: #ef4444;
    color: white;
    border-left: 4px solid #dc2626;
}

/* Info notification */
.notification-info {
    background-color: #3b82f6;
    color: white;
    border-left: 4px solid #2563eb;
}

/* Warning notification */
.notification-warning {
    background-color: #f59e0b;
    color: white;
    border-left: 4px solid #d97706;
}

/* Status notification (alias for success) */
.notification-status {
    background-color: #10b981;
    color: white;
    border-left: 4px solid #059669;
}

/* Notification icon */
.notification i {
    font-size: 20px;
    flex-shrink: 0;
}

/* Notification text */
.notification span {
    flex: 1;
    line-height: 1.4;
}

/* Close button for notifications */
.notification .notification-close {
    background: transparent;
    border: none;
    color: currentColor;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    font-size: 18px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.notification .notification-close:hover {
    opacity: 1;
}

/* Animations */
@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;
    }
}

/* Fade out animation class */
.notification.fade-out {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Hide all notifications except the last one - CSS only solution */
.notification {
    display: none !important;
}

.notification:last-of-type {
    display: flex !important;
}

/* Responsive design */
@media (max-width: 640px) {
    .notification {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
        font-size: 14px;
        padding: 12px 16px;
    }

    /* All notifications use the same position for mobile too */
}

/* Print styles - hide notifications when printing */
@media print {
    .notification {
        display: none !important;
    }
}

/* ========================================
   Notify.js Custom Styles Override
   Apply unified style to Notify.js notifications
   ======================================== */

/* Base Notify.js wrapper */
.notifyjs-wrapper {
    position: fixed !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: 500 !important;
    z-index: 10000 !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 15px !important;
    max-width: 400px !important;
    animation: slideInRight 0.3s ease-out !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    margin: 10px !important;
    border: none !important;
}

.notifyjs-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: white !important;
}

/* Hide the default arrow */
.notifyjs-arrow {
    display: none !important;
}

/* Icon styling for Notify.js */
.icon-notify {
    font-size: 20px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.icon-notify i {
    font-size: 20px !important;
}

/* Success notification (default green) */
.notifyjs-success-base,
.notifyjs-success-success {
    background-color: #10b981 !important;
    color: white !important;
    border-left: 4px solid #059669 !important;
}

/* Error notification */
.notifyjs-error-base,
.notifyjs-error-error {
    background-color: #ef4444 !important;
    color: white !important;
    border-left: 4px solid #dc2626 !important;
}

/* Warning notification */
.notifyjs-warning-base,
.notifyjs-warning-warning {
    background-color: #f59e0b !important;
    color: white !important;
    border-left: 4px solid #d97706 !important;
}

/* Info notification */
.notifyjs-info-base,
.notifyjs-info-info {
    background-color: #3b82f6 !important;
    color: white !important;
    border-left: 4px solid #2563eb !important;
}

/* Primary notification */
.notifyjs-primary-base,
.notifyjs-primary-primary {
    background-color: #3b82f6 !important;
    color: white !important;
    border-left: 4px solid #2563eb !important;
}

/* New Order 1 - Delivery (Blue) */
.notifyjs-newOrder1-base,
.notifyjs-newOrder1-success {
    background-color: #1e90ff !important;
    color: white !important;
    border-left: 4px solid #1873cc !important;
}

/* New Order 2 - Pickup (Teal) */
.notifyjs-newOrder2-base,
.notifyjs-newOrder2-success {
    background-color: #00a4a6 !important;
    color: white !important;
    border-left: 4px solid #008385 !important;
}

/* New Order 3 - Table (Gold) */
.notifyjs-newOrder3-base,
.notifyjs-newOrder3-success {
    background-color: #daa520 !important;
    color: white !important;
    border-left: 4px solid #b8860b !important;
}

/* Call Waiter (Gold) */
.notifyjs-callWaiter-base,
.notifyjs-callWaiter-success {
    background-color: #daa520 !important;
    color: white !important;
    border-left: 4px solid #b8860b !important;
}

/* New Reservation (Gold) */
.notifyjs-newReservation-base,
.notifyjs-newReservation-success {
    background-color: #daa520 !important;
    color: white !important;
    border-left: 4px solid #b8860b !important;
}

/* Ask Bill (Light Sea Green) */
.notifyjs-askBill-base,
.notifyjs-askBill-success {
    background-color: #20b2aa !important;
    color: white !important;
    border-left: 4px solid #1a8f89 !important;
}

/* Corner positioning adjustments */
.notifyjs-corner {
    z-index: 10000 !important;
}

/* Hide all notify.js notifications except the last one - CSS only solution */
.notifyjs-wrapper {
    display: none !important;
}

.notifyjs-wrapper:last-of-type {
    display: flex !important;
}

/* Text styling */
.notifyjs-wrapper [data-notify-text],
.notifyjs-wrapper [data-notify-html] {
    flex: 1 !important;
    line-height: 1.4 !important;
    color: white !important;
}

.notifyjs-wrapper strong {
    font-weight: 600 !important;
    color: white !important;
}

/* Responsive for Notify.js */
@media (max-width: 640px) {
    .notifyjs-wrapper {
        max-width: calc(100% - 40px) !important;
        font-size: 14px !important;
        padding: 12px 16px !important;
    }
}
