@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
    --font-sarabun: 'Sarabun', sans-serif;
    
    /* Primary Colors (Dark Blue / Deep Indigo Theme) */
    --color-bg-start: 222 47% 11%; /* #0f172a */
    --color-bg-mid: 224 71% 7%;     /* #020617 */
    --color-bg-end: 222 47% 11%;   /* #0f172a */
    
    --color-primary: 217.2 91.2% 59.8%; /* #3b82f6 */
    --color-primary-hover: 221.2 83.2% 53.3%;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(59, 130, 246, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: var(--font-sarabun);
    background: linear-gradient(135deg, hsl(var(--color-bg-start)) 0%, hsl(var(--color-bg-mid)) 50%, hsl(var(--color-bg-end)) 100%);
    color: #f8fafc;
    min-height: 100vh;
}

/* Glassmorphism elements */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

.glass-panel-hover:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom inputs and buttons */
.glass-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    color: #f8fafc;
    transition: all 0.2s ease-in-out;
}

.glass-input:focus {
    outline: none;
    border-color: hsl(var(--color-primary));
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Drag & Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.01);
}

.drop-zone.drag-active {
    border-color: hsl(var(--color-primary));
    background: rgba(59, 130, 246, 0.08);
    transform: scale(1.01);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Table styles */
.result-table th {
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Micro-animations */
.hover-scale {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-scale:hover {
    transform: scale(1.02);
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
