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

:root {
    --primary: #FFBD1F;
    --primary-hover: #FFD666;
    --primary-active: #E6A91A;
    --secondary: #1C1C1E;
    --background: #FFFFFF;
    --surface: #F9FAFB;
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    --bot-msg-bg: #FFF9E6;
    --user-msg-bg: #FFFFFF;
    
    --border-color: #E5E7EB;
    --text-primary: #1C1C1E;
    --text-secondary: #6B7280;
    
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-large: 0 10px 15px rgba(0,0,0,0.08);
    --focus-ring: 0 0 0 3px rgba(255,189,31,0.2);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-chat: 16px;
    --radius-full: 999px;
}

body {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Base Styles */
h1 { font-size: 36px; font-weight: 600; }
h2 { font-size: 30px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 200ms ease;
    cursor: pointer;
}

.btn-primary-outline {
    border: 1px solid var(--primary);
    color: var(--text-primary);
}

.btn-primary-outline:hover {
    background-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.card {
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 200ms ease;
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* Chat Bubbles */
.bot-message {
    background-color: var(--bot-msg-bg);
    border-radius: var(--radius-chat);
    padding: 12px 16px;
    max-width: 70%;
}

.user-message {
    background-color: var(--user-msg-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-chat);
    padding: 12px 16px;
    max-width: 70%;
    box-shadow: var(--shadow-subtle);
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 250ms ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 500px;
    transform: scale(0.95);
    transition: all 250ms ease-out;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D1D5DB;
}
