/* style.css - ดูแลเรื่องความสวยงามและการแสดงผล */

body { 
    font-family: 'Kanit', sans-serif; 
    background-color: #f1f5f9; 
    color: #334155; 
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none; 
}

.font-display {
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-surface {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Animation */
@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.toast-enter {
    animation: slideInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-exit {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Toggle Switch */
.toggle-checkbox:checked {
    right: 0;
    border-color: #10b981;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #10b981;
}