/**
 * Elegant Notification Modal Styles
 * RTL-ready design for Arabic content
 */

.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.notification-modal {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    direction: rtl;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

.notification-modal-overlay.show .notification-modal {
    transform: scale(1) translateY(0);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #28a745;
    text-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.notification-modal h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.notification-modal p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    font-family: inherit;
}

.btn-allow {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-allow:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-later {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-later:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #adb5bd;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-modal {
        padding: 30px 20px;
        margin: 20px;
        max-width: none;
    }
    
    .modal-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .notification-modal h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .notification-modal p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* RTL Support */
[dir="rtl"] .modal-close {
    right: auto;
    left: 15px;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .notification-modal {
        background: #2c3e50;
        color: white;
    }
    
    .notification-modal h3 {
        color: white;
    }
    
    .notification-modal p {
        color: #bdc3c7;
    }
    
    .btn-later {
        background: #34495e;
        color: #bdc3c7;
        border-color: #4a5f7a;
    }
    
    .btn-later:hover {
        background: #4a5f7a;
        color: white;
    }
}
