body {
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

.app-container {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    background-color: #ffffff;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.app-header {
    background: linear-gradient(135deg, #0077b6 0%, #005a8d 100%);
    color: white;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* ทำให้ส่วนซ้ายและขวาแยกจากกัน */
    gap: 15px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 15px rgba(0, 90, 141, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid white;
}

.header-text h1 {
    margin: 0;
    font-size: 22px;
}

.header-text p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

/* --- ส่วนที่แก้ไข --- */
.website-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column; /* จัดเรียงในแนวตั้ง */
    align-items: center;   /* <-- บรรทัดนี้คือตัวที่จัดให้อยู่ตรงกลาง */
    gap: 4px;
}


.website-link:hover {
    opacity: 0.8;
}
/* --- จบส่วนที่แก้ไข --- */
.website-link svg {
    width: 28px; /* <--- แก้ไขตัวเลขตรงนี้ */
    height: 28px; /* <--- และตรงนี้ */
}
/* --- จบส่วนที่แก้ไข --- */

.app-main {
    padding: 40px 20px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    row-gap: 30px;
}

.menu-grid-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.menu-item:hover {
    transform: scale(1.05);
}

.menu-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.menu-item:hover .menu-icon-circle {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-icon-circle svg {
    width: 36px;
    height: 36px;
    color: white;
    stroke-width: 1.5;
}

.bg-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.bg-orange { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }

.menu-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
}


.menu-item-horizontal {
    display: flex;
    align-items: center;
    background-color: #f0f0f0; /* สีพื้นเรียบ */
    color: rgb(0, 0, 0);
    padding: 16px 20px;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.menu-item-horizontal:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}




/*ปรับรูปแบบ main จาก icon grid เป็น กล่อง*/
.menu-icon-box {
    width: 40px;
    height: 40px;
    background-color: #dcdcdc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.menu-icon-box svg {
    width: 22px;
    height: 22px;
    stroke: #333;
}


.menu-label-horizontal {
    display: flex;
    flex-direction: column;
}

.label-main {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.label-sub {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}