.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 320px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
    background: rgba(0,170,255,0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.notification-success {
    background: linear-gradient(135deg, #47bbf5f5, #3bb5f1) !important;
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
}

.notification-info {
    background: linear-gradient(135deg, #00aaff, #0088cc) !important;
}

.notification-warning {
    background: linear-gradient(135deg, #ffc107, #f39c12) !important;
    color: #212529;
}

.notification-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.notification-icon {
    margin-right: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.notification-message {
    flex-grow: 1;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-close:hover {
    opacity: 1;
    background-color: rgba(255,255,255,0.1);
}

.notification-fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

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

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    color: white;
    font-size: 18px;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00aaff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-contextual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.loading-spinner-small {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00aaff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-bell .fas.fa-bell {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.notification-bell .fas.fa-bell:hover,
.notification-bell .fas.fa-bell.has-notifications {
    color: #007bff;
}

.notification-bell .fas.fa-bell.notification-pulse {
    animation: bellPulse 0.5s ease-in-out 2;
}

@keyframes bellPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-15deg);
    }
    50% {
        transform: scale(1.2) rotate(15deg);
    }
    75% {
        transform: scale(1.2) rotate(-15deg);
    }
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.notification-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #333;
    border-radius: 8px 8px 0 0;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left: 3px solid #007bff;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    color: #868585;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.notification-time {
    color: #999;
    font-size: 11px;
}

.no-notifications {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    .notification-dropdown {
        width: 280px;
        right: -50px;
    }
}

.cart-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.cart-notification-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInCart 0.3s ease-out;
}

.cart-notification-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.cart-notification-text h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.cart-notification-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}

.cart-notification-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.cart-btn-yes, .cart-btn-no {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.cart-btn-yes {
    background: #00aaff;
    color: white;
}

.cart-btn-yes:hover {
    background: #0088cc;
}

.cart-btn-no {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.cart-btn-no:hover {
    background: #e9ecef;
    color: #333;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cart-notification-content {
        padding: 1.25rem;
        margin: 1rem;
    }
    
    .cart-notification-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cart-btn-yes, .cart-btn-no {
        width: 100%;
    }
}

/* Remove Item Notification Styles > cart.php */
.remove-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.remove-notification-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInCart 0.3s ease-out;
}

.remove-notification-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.remove-notification-text h4 {
    color: #dc3545;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.remove-notification-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}

.remove-notification-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.remove-btn-yes, .remove-btn-no {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.remove-btn-yes {
    background: #dc3545;
    color: white;
}

.remove-btn-yes:hover {
    background: #c82333;
}

.remove-btn-no {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.remove-btn-no:hover {
    background: #e9ecef;
    color: #333;
}

@media (max-width: 768px) {
    .remove-notification-content {
        padding: 1.25rem;
        margin: 1rem;
    }
    
    .remove-notification-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .remove-btn-yes, .remove-btn-no {
        width: 100%;
    }
}

/* Cancel Order Notification Styles > admin.php */
.cancel-order-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.cancel-order-notification-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInCart 0.3s ease-out;
}

.cancel-order-notification-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.cancel-order-notification-text h4 {
    color: #ff6b35;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.cancel-order-notification-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}

.cancel-order-notification-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.cancel-order-btn-yes, .cancel-order-btn-no {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 130px;
}

.cancel-order-btn-yes {
    background: #ff6b35;
    color: white;
}

.cancel-order-btn-yes:hover {
    background: #e55a2b;
}

.cancel-order-btn-no {
    background: #00aaff;
    color: white;
}

.cancel-order-btn-no:hover {
    background: #0088cc;
}

@media (max-width: 768px) {
    .cancel-order-notification-content {
        padding: 1.25rem;
        margin: 1rem;
    }
    
    .cancel-order-notification-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cancel-order-btn-yes, .cancel-order-btn-no {
        width: 100%;
    }
}

/* Delete Offer Notification Styles > admin.php */
.delete-offer-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.delete-offer-notification-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInCart 0.3s ease-out;
}

.delete-offer-notification-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.delete-offer-notification-text h4 {
    color: #dc3545;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.delete-offer-notification-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}

.delete-offer-notification-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.delete-offer-btn-yes, .delete-offer-btn-no {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.delete-offer-btn-yes {
    background: #dc3545;
    color: white;
}

.delete-offer-btn-yes:hover {
    background: #c82333;
}

.delete-offer-btn-no {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.delete-offer-btn-no:hover {
    background: #e9ecef;
    color: #333;
}

@media (max-width: 768px) {
    .delete-offer-notification-content {
        padding: 1.25rem;
        margin: 1rem;
    }
    
    .delete-offer-notification-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .delete-offer-btn-yes, .delete-offer-btn-no {
        width: 100%;
    }
}

/* Staff Status Notification Styles > admin.php */
.staff-status-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.staff-status-notification-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInCart 0.3s ease-out;
}

.staff-status-notification-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.staff-status-notification-text h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.staff-status-notification-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}

.staff-status-notification-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.staff-status-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.staff-status-btn.available {
    background: #28a745;
    color: white;
}

.staff-status-btn.available:hover {
    background: #218838;
}

.staff-status-btn.busy {
    background: #ffc107;
    color: #212529;
}

.staff-status-btn.busy:hover {
    background: #e0a800;
}

.staff-status-btn.offline {
    background: #dc3545;
    color: white;
}

.staff-status-btn.offline:hover {
    background: #c82333;
}

.staff-status-btn.cancel {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    grid-column: 1 / -1;
}

.staff-status-btn.cancel:hover {
    background: #e9ecef;
    color: #333;
}

.staff-password-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.staff-password-notification-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInCart 0.3s ease-out;
}

.staff-password-notification-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.staff-password-notification-text h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.staff-password-notification-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
}

.staff-password-notification-text input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.staff-password-notification-text input:focus {
    outline: none;
    border-color: #00aaff;
}

.staff-password-notification-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.staff-password-btn-yes, .staff-password-btn-no {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.staff-password-btn-yes {
    background: #00aaff;
    color: white;
}

.staff-password-btn-yes:hover {
    background: #0088cc;
}

.staff-password-btn-no {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.staff-password-btn-no:hover {
    background: #e9ecef;
    color: #333;
}

.delete-staff-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.delete-staff-notification-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInCart 0.3s ease-out;
}

.delete-staff-notification-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.delete-staff-notification-text h4 {
    color: #dc3545;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.delete-staff-notification-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}

.delete-staff-notification-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.delete-staff-btn-yes, .delete-staff-btn-no {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.delete-staff-btn-yes {
    background: #dc3545;
    color: white;
}

.delete-staff-btn-yes:hover {
    background: #c82333;
}

.delete-staff-btn-no {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.delete-staff-btn-no:hover {
    background: #e9ecef;
    color: #333;
}

@media (max-width: 768px) {
    .staff-status-notification-content,
    .staff-password-notification-content,
    .delete-staff-notification-content {
        padding: 1.25rem;
        margin: 1rem;
    }
    
    .staff-status-notification-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .staff-password-notification-actions,
    .delete-staff-notification-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .staff-status-btn,
    .staff-password-btn-yes, .staff-password-btn-no,
    .delete-staff-btn-yes, .delete-staff-btn-no {
        width: 100%;
    }
}