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-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;
    background-color: rgb(255, 255, 255);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

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

.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%);}
.bg-red {background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);}
.bg-purple {background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);}
.bg-pink {background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);}
.bg-yellow {background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%);}
.bg-indigo {background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);}
.bg-cyan {background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);}
.bg-teal {background: linear-gradient(135deg, #1de9b6 0%, #1dc4e9 100%);}
.bg-grey {background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);}

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