:root {
    --primary: #065f46;
    --primary-light: #ecfdf5;
    --primary-hover: #047857;
    --accent: #10b981;
    --bg-main: #f9fafb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Custom Component Styles */
.status-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium) !important;
}

.drop-zone--over {
    border-color: #059669 !important;
    background-color: #ecfdf5 !important;
}

/* Responsive UI Utilities */
.table-container {
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 640px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .truncate-mobile {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
}

.custom-table tr {
    transition: background-color 0.2s ease;
}

/* Smooth Scrollbar for better UI */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Better Input focus */
input:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Skeleton UI Animation */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(90deg, #f1f5f9 25%, #ffffff 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toast animation */
.toast-show {
    transform: translateY(-1rem) !important;
    opacity: 1 !important;
}
