/* styles-index-admin.css */

body {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.container:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

header {
    background: linear-gradient(90deg, #9f0cc8, #6a0dad);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

header:hover {
    background: linear-gradient(90deg, #b82ad1, #7d18a4);
}

header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: white;
}

.header-content img {
    margin-right: 10px;
    max-width: 50px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

header::after {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #ffa600, #ff6700);
    margin-top: 15px;
    border-radius: 2px;
}

.section {
    margin: 20px 0;
}

.section h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    position: relative;
}

.button-container button {
    padding: 15px;
    background: linear-gradient(90deg, #9f0cc8, #6a0dad);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px 0;
    min-width: calc(30% - 20px);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.button-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    transform: scale(0);
    transition: transform 0.3s, border-color 0.3s;
}

.button-container button:hover::before {
    transform: scale(1);
    border-color: #9f0cc8;
}

.button-container button span {
    position: relative;
    z-index: 1;
}

.button-container button:hover {
    background: linear-gradient(90deg, #ffa600, #ff6700);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.button-container button:hover .popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

.popup {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    white-space: nowrap;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f4e4;
    border: 2px solid #9f0cc8;
    border-radius: 10px;
    display: none;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-content {
    margin-top: 20px;
}

.footer-content h3 {
    font-size: 16px;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 15px 0;
    background: linear-gradient(90deg, #9f0cc8, #6a0dad);
    color: white;
    margin-top: 20px;
    border-radius: 0 0 15px 15px;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: -10px; /* ปรับตำแหน่งที่ต้องการให้ปุ่มอยู่ด้านข้างซ้ายของ container */
    padding: 10px 20px;
    background: linear-gradient(90deg, #9f0cc8, #6a0dad);
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    border: 2px solid #6a0dad;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    background: linear-gradient(90deg, #ffa600, #ff6700);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

}