/* ตั้งค่าพื้นฐาน (Reset & Font) */
:root {
    --primary: #4A7C38; /* เขียวใบตองแก่ */
    --accent: #F4E8C1;  /* ครีมอุ่น */
    --bg: #F9F9F9;
    --text: #333;
}
body {
    font-family: 'Sarabun', sans-serif; /* ใช้ฟอนต์ไทยสวยๆ */
    background-color: var(--bg);
    color: var(--text);
    margin: 0; padding: 0;
    display: flex; justify-content: center; min-height: 100vh;
}
.app-container {
    width: 100%; max-width: 450px; /* ขนาดเท่ามือถือ */
    background: white; min-height: 100vh;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    position: relative; overflow-x: hidden;
}

/* หน้าจอ (Screen) - ซ่อนไว้ก่อน */
.screen { display: none; padding: 20px; animation: fadeIn 0.3s; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Login Screen */
.login-box {
    text-align: center; margin-top: 40%;
}
.logo-text {
    font-size: 2rem; font-weight: bold; color: var(--primary); margin-bottom: 2rem;
}
input {
    width: 100%; padding: 15px; margin: 10px 0;
    border: 1px solid #ddd; border-radius: 12px; font-size: 1.1rem; box-sizing: border-box;
}
.btn-primary {
    width: 100%; padding: 15px; background: var(--primary); color: white;
    border: none; border-radius: 12px; font-size: 1.2rem; cursor: pointer;
    font-weight: bold; margin-top: 10px;
}

/* Home Dashboard */
.header {
    background: var(--primary); color: white; padding: 20px;
    border-radius: 0 0 20px 20px; margin-bottom: 20px;
}
.user-info h2 { margin: 0; font-size: 1.5rem; }
.menu-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}
.menu-card {
    background: white; padding: 20px; border-radius: 15px;
    text-align: center; border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); cursor: pointer; transition: 0.2s;
}
.menu-card:active { transform: scale(0.95); }
.menu-icon { font-size: 2rem; margin-bottom: 10px; display: block; }