
/* [1654] MISC-14_Post-Submit-Loading-Overlay-CSS
   ==========================================================================
   overlay เต็มจอ โชว์ตอนกดปุ่ม Submit บนฟอร์มสร้างกระทู้/ตอบกระทู้
   ให้คนรอโหลดแบบไม่เบื่อ (ระบบหลังบ้านมีขั้นตอน AI ตรวจสอบเนื้อหาที่ใช้เวลาสักพัก)
   z-index สูงสุด (2147483647) แบบเดียวกับแถบเมนูแอป (788) — เจตนาให้ overlay
   นี้ลอยทับทุกอย่างในเว็บแน่นอน รวมถึงปุ่มลอยอื่นๆ ทั้งหมดที่เคยไล่จัดระเบียบ
   กันไปก่อนหน้า (กระดิ่ง/ตะกร้า/ปุ่มเขียนเรื่องใหม่)
   ========================================================================== */

#tms-post-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    z-index: 2147483647; /* ต้องลอยบนสุดของทุกอย่าง รวมถึงเมนูแอปด้านล่าง */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Prompt', sans-serif;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

#tms-post-loading-overlay .tms-loading-icon {
    font-size: 56px;
    display: inline-block;
    animation: tms-loading-pulse 1.3s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes tms-loading-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

#tms-post-loading-overlay .tms-loading-title {
    font-size: 17px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 8px;
}

#tms-post-loading-overlay .tms-loading-subtext {
    font-size: 13px;
    color: #7f8fa6;
    min-height: 18px; /* กันข้อความกระตุกตอนสลับความยาวไม่เท่ากัน */
    transition: opacity 0.3s ease;
}

#tms-post-loading-overlay .tms-loading-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0984e3;
    margin: 0 3px;
    animation: tms-loading-bounce 1.2s infinite ease-in-out both;
}
#tms-post-loading-overlay .tms-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
#tms-post-loading-overlay .tms-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes tms-loading-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
