
body {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
.header {
    background-color: #33aaa0;
    color: rgb(255, 255, 255);
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.header .menu-button {
    position: absolute;
    left: 15px;
    top: 15px;
    background-color: #ff7e5f;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    z-index: 3;
    margin: 15px;

}
.header .menu-button:hover {
    background-color: #e06b50;
}
.footer {
    background-color: #33aaa0;
    color: white;
    padding: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.main {
    display: flex;
    flex: 1;
    overflow: hidden;
    text-align: center;

}
.sidebar {
    width: 350px;
    background-color: #18776f;
    color: white;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    transform: translateX(-100%);
}
.sidebar.show {
    transform: translateX(0);
}
.sidebar button {
    background-color: #ff7e5f;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin: 15px;
    align-self: flex-end;
}
.sidebar button:hover {
    background-color: #e06b50;
}
.sidebar a {
    padding: 15px 20px;
    text-decoration: none;
    color: white;
    display: block;
    transition: background-color 0.3s ease;
}
.sidebar a:hover {
    background-color: #22cfee;
}
.sidebar .profile {
    text-align: center;
    margin-bottom: 20px;
}
.sidebar .profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
.sidebar .profile .name {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}
.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #f4f4f4;
    transition: margin-left 0.3s ease;
    overflow-y: auto;
    margin-left: 0;
}
.content.shifted {
    margin-left: 250px;
}
.contact-panel {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.contact-panel h2 {
    text-align: center;
    margin-bottom: 20px;
}
.contact-panel form {
    display: flex;
    flex-direction: column;
}
.contact-panel label {
    margin-bottom: 8px;
    font-weight: bold;
}
.contact-panel input, .contact-panel textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.contact-panel input[type="submit"] {
    background-color: #ff7e5f;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-panel input[type="submit"]:hover {
    background-color: #e06b50;
}
.contact-details {
    margin-top: 20px;
}
.contact-details p {
    margin: 10px 0;
}

.top-right-buttons {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.top-right-buttons button {
    padding: 10px 15px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ff7e5f;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.top-right-buttons button:hover {
    background-color: #e06b50;
}
.bottom-center-buttons{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 10px;
}
.bottom-center-buttons button {
    padding: 10px 15px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ff7e5f;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.bottom-center-buttons button:hover {
    background-color: #e06b50;
}
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-container button {
    padding: 10px 15px;
    margin-left: 95%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ff7e5f;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.form-container button:hover {
    background-color: #e06b50;
}
.form-container h2 {
    margin-bottom: 20px;
}
.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-container input, .form-container textarea, .form-container select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.form-container input[type="submit"] {
    background-color: #ff7e5f;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.form-container input[type="submit"]:hover {
    background-color: #e06b50;
}
.admin-panel {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.admin-panel h2 {
    text-align: center;
    margin-bottom: 20px;
}
.admin-panel table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.admin-panel table, .admin-panel th, .admin-panel td {
    border: 1px solid #ccc;
}
.admin-panel th, .admin-panel td {
    padding: 10px;
    text-align: left;
}
.admin-panel th {
    background-color: #f2f2f2;
}
.admin-panel button {
    padding: 10px 15px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ff7e5f;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
}
.admin-panel button:hover {
    background-color: #e06b50;
}
.toggle-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #ff7e5f;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    z-index: 3;
}
.application-list {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.application-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}
.application-item:last-child {
    border-bottom: none;
}
.application-item h3 {
    margin-top: 0;
}
.application-item a {
    display: inline-block;
    margin-top: 10px;
    color: #ff7e5f;
    text-decoration: none;
}
.application-item a:hover {
    text-decoration: underline;
}
.application-item .details {
    margin-bottom: 10px;
}
.application-item .file-preview img {
    max-width: 100px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
.application-item .file-preview a {
    margin-right: 10px;
}
.application-item .actions {
    margin-top: 10px;
}
.application-item .actions button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}
.application-item .actions button:hover {
    background-color: #45a049;
}
.settings-panel {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.settings-panel h2 {
    text-align: center;
    margin-bottom: 20px;
}
.settings-panel form {
    display: flex;
    flex-direction: column;
}
.settings-panel label {
    margin-bottom: 8px;
    font-weight: bold;
}
.settings-panel input, .settings-panel textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.settings-panel input[type="submit"] {
    background-color: #ff7e5f;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.settings-panel input[type="submit"]:hover {
    background-color: #e06b50;
}
.settings-panel input[type="file"] {
    padding: 5px;
}
.custom-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 250px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    transition: background-color 0.3s;
    padding: 10px;
    color: rgb(255, 255, 255);
    font-size: 16px;
}
/* Hover Effect ให้ปุ่มเด้งขึ้น */
.custom-button:hover {
    transform: translateY(-10px); /* เด้งขึ้น 5px */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้ดูมีมิติ */
    color: rgb(255, 255, 255);
}
/* สีฟ้า */
.custom-button.blue { background-color: #78b9ff; }
.custom-button.blue:hover { background-color: #429dff;}

/* สีแดง */
.custom-button.red { background-color: #f5877b; }
.custom-button.red:hover { background-color: #da4433; }

/* สีเขียว */
.custom-button.green { background-color: #80f8b2; }
.custom-button.green:hover { background-color: #24df72; }

/* สีเหลือง */
.custom-button.yellow { background-color: #f1c40f; color: black; }
.custom-button.yellow:hover { background-color: #d4ac0d; }

/* สีม่วง */
.custom-button.purple { background-color: #e093ff; }
.custom-button.purple:hover { background-color: #b346e2; }

/* สีส้ม */
.custom-button.orange { background-color: #e67e22; }
.custom-button.orange:hover { background-color: #d35400; }

/* สีชมพู */
.custom-button.pink { background-color: #f79eca; }
.custom-button.pink:hover { background-color: #f865b4; }

/* สีเทา */
.custom-button.gray { background-color: #95a5a6; }
.custom-button.gray:hover { background-color: #7f8c8d; }

.mainmenu {
    flex-grow: 1;
    padding: 20px;
    background-color: #f4f4f4;
    transition: margin-left 0.3s ease;
    overflow-y: auto;
    margin-left: 0;
}
.top-center-buttons {
    display: flex;
    flex-wrap: wrap; /* ให้ปุ่มขึ้นบรรทัดใหม่ถ้าพื้นที่ไม่พอ */
    gap: 10px; /* ระยะห่างระหว่างปุ่ม */
    justify-content: center; /* จัดให้อยู่ตรงกลาง */
    margin-top: 20px;
}
.top-center-buttons a{
    text-decoration: none;
    
}
.top-center-buttons button {
    padding: 10px 15px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4fb6f1;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.top-center-buttons button:hover {
    background-color: #0056b3;
}

.button-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 40px;
}

.button-text {
    font-family: 'Prompt', sans-serif;
    font-size: 20px;
    font-weight: bold;
}