/* ปุ่มเข้าสู่ระบบมุมขวาบน */
.top-nav {
    position: absolute;
    top: 20px;
    right: 20px;
}

.btn-admin-login {
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-admin-login:hover {
    color: #ffffff;
    border-color: #6366f1;
    background: #1e293b;
}

/* Modal Popup สำหรับเข้าสู่ระบบ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: #ffffff;
}

.btn-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-close:hover {
    color: #ffffff;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-input {
    width: 100%;
    background: #0f172a;
    border: 1.5px solid #334155;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.modal-input:focus {
    border-color: #6366f1;
}