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, #c27400 00%,#f5b401 100%);
    color: white;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* <-- จุดสำคัญ: ดันองค์ประกอบไปคนละฝั่ง */
    gap: 15px;
    border-radius: 0 0 30px 30px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* --- จบส่วนที่แก้ไข --- */

#staff-photo {
    width: 60px;
    height: 85px;
    border-radius: 10%;
    object-fit: cover;
    border: 3px solid #fff;
    background-color: #ccc;
}

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


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


#logout-btn {
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Sarabun', sans-serif;
    font-weight: bold;
    transition: all 0.2s;
}
#logout-btn:hover {
    background-color: white;
    color: #005a8d;
}



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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* แสดง 3 ไอคอนต่อแถว */
    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;
    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%);}
.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;
}




/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-box {
    background-color: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    width: 90%;
    max-width: 400px;
    color: #333;
}
.modal-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #005a8d;
}
.modal-box p {
    margin-bottom: 25px;
    line-height: 1.6;
}
.modal-box .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.modal-action-btn {
    font-family: 'Sarabun', sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-action-btn.ok {
    background-color: #dc3545; /* สีแดงสำหรับยืนยันการ Logout */
    color: white;
}
.modal-action-btn.ok:hover {
    background-color: #c82333;
}
.modal-action-btn.cancel {
    background-color: #f0f0f0;
    color: #333;
}
.modal-action-btn.cancel:hover {
    background-color: #e0e0e0;
}




