﻿/* ============================================================
   TSM SYSTEM - ERROR POPUP STYLES
   ============================================================ */

@font-face {
    font-family: 'JF-Flat';
    src: url('/src/font/JF-Flat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* 1. الحاوية الرئيسية (التعتيم الخلفي) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* تعتيم قوي لعزل المحتوى الخلفي */
    backdrop-filter: blur(12px); /* تأثير ضبابي فخم للخلفية */
    -webkit-backdrop-filter: blur(12px);
    display: none; /* يتم التحكم بالظهور عبر الكود الخلفي VB.NET */
    justify-content: center;
    align-items: center;
    z-index: 999999; /* لضمان الظهور فوق كافة عناصر الصفحة والسايد بار */
    direction: rtl;
    transition: all 0.3s ease;
}

/* 2. صندوق الرسالة (النافذة) */
.popup-content {
    background: rgba(28, 28, 30, 0.98); /* لون داكن عميق متناسق مع iOS Dark Mode */
    border: 1px solid rgba(255, 69, 58, 0.5); /* إطار بلون الأحمر المرجاني التحذيري */
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 69, 58, 0.1); /* توهج أحمر خفيف حول الإطار */
    transform: translateY(0);
    animation: popupAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. الجزء العلوي (الأيقونة والعنوان) */
.popup-header {
    margin-bottom: 20px;
}

    .popup-header i {
        font-size: 50px;
        color: #ff453a; /* اللون الأحمر الرسمي للأخطاء في iOS */
        margin-bottom: 15px;
        display: block;
    }

    .popup-header span {
        display: block;
        font-family: 'menu font', 'JF Flat', sans-serif; /* استخدام خط المنيو كما طلبت */
        font-size: 22px;
        color: #ffffff;
        font-weight: bold;
    }

/* 4. محتوى الرسالة */
.popup-body {
    margin-bottom: 30px;
   }

    .popup-body p {
        font-family: 'JF-Flat', 'Plus Jakarta Sans', sans-serif;
        color: #aeaeae;
        font-size: 16px;
        line-height: 1.6;
        margin: 0;
    }

/* 5. زر الإغلاق (HTML Button) */
.btn-close-popup {
    width: 100%;
    background: #ff453a;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-family: 'menu font', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(255, 69, 58, 0.3);
}

    .btn-close-popup:hover {
        background: #ff3b30;
        transform: scale(1.02);
        box-shadow: 0 8px 20px rgba(255, 69, 58, 0.4);
    }

    .btn-close-popup:active {
        transform: scale(0.98);
    }

/* 6. تأثيرات الحركة (Animations) */
@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 480px) {
    .popup-content {
        padding: 25px;
        width: 85%;
    }

    .popup-header i {
        font-size: 40px;
    }

    .popup-header span {
        font-size: 18px;
    }
}
