/* Enhanced Notification Styles for Altayara */

/* PNotify Custom Styles */
.notification-altayara {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-family: 'Cairo', sans-serif !important;
    direction: rtl !important;
}

.notification-altayara .pnotify-title {
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

.notification-altayara .pnotify-text {
    font-size: 14px !important;
    line-height: 1.4 !important;
    opacity: 0.9 !important;
}

.notification-altayara .pnotify-icon {
    color: white !important;
}

/* SweetAlert Custom Styles */
.swal2-toast {
    border-radius: 12px !important;
    font-family: 'Cairo', sans-serif !important;
    direction: rtl !important;
}

.swal2-toast .swal2-title {
    font-weight: 600 !important;
    font-size: 16px !important;
}

.swal2-toast .swal2-html-container {
    font-size: 14px !important;
    margin-top: 4px !important;
}

/* Browser Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    direction: rtl;
}

.notification-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    animation: slideInRight 0.3s ease-out;
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.notification-body {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.notification-icon {
    width: 24px;
    height: 24px;
    margin-left: 12px;
    float: right;
}

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

.notification-item.removing {
    animation: slideOutRight 0.3s ease-in;
}

/* Sound Control */
.notification-sound-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-sound-control:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.notification-sound-control.muted {
    background: #f56565;
    color: white;
}

.notification-sound-control svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification-item {
        padding: 12px;
        margin-bottom: 8px;
    }

    .notification-title {
        font-size: 14px;
    }

    .notification-body {
        font-size: 13px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .notification-sound-control {
        background: #2d3748;
        color: white;
    }

    .notification-sound-control.muted {
        background: #e53e3e;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .notification-item {
        border: 2px solid #000;
    }

    .notification-sound-control {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .notification-item,
    .notification-sound-control {
        animation: none;
        transition: none;
    }
}
