/* บล็อกการปัดหน้าจอลงเพื่อรีเฟรช (Pull-to-Refresh) ป้องกันข้อมูลหาย */
body { 
    overscroll-behavior-y: none; 
    -webkit-tap-highlight-color: transparent;
}

/* Global Loading Overlay (ทับเต็มหน้าจอ) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.d-none { display: none !important; }

/* CSS Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #006c52; /* สีเขียวมิ้นต์ */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Textarea Auto-expand Constraint */
textarea {
    max-height: 200px;
    overflow-y: auto;
    resize: none;
}

/* Custom Dropzone & File Input */
.dropzone {
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}
.dropzone.dragover {
    border-color: #006c52;
    background-color: #f0fdf4;
}

/* Radio Button Custom Color */
input[type="radio"]:checked {
    accent-color: #006c52;
}

/* Mobile Safe Area Height */
.h-safe { min-height: 100dvh; }