/* 📌 ไฟล์: style.css */
body {
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

.min-h-\[100dvh\] {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}
html {
    height: -webkit-fill-available;
}

textarea.auto-expand {
    overflow: hidden;
    resize: none;
    max-height: 200px;
    overflow-y: auto;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.loading-overlay.d-none {
    display: none !important;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #E2E8F0;
    border-top-color: #0D9488;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-load 1.5s infinite;
    color: transparent !important;
    pointer-events: none;
}
@keyframes skeleton-load {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error State UI สำหรับ Required Fields */
.input-error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
    transition: all 0.3s;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}