body {
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 50px;
}
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: #e0e0e0;
    z-index: 1001; /* Ensure it stays on top */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}
#editor-container {
    height: 50vh;
}
button:hover {
    opacity: 0.8;
}
img.avatar {
    width: 40%;
    border-radius: 50%;
}
span.psw {
    float: right;
    padding-top: 16px;
}
.qrform {
    padding: 25px;
    margin: 25px;
    box-shadow: 0 2px 5px #f5f5f5;
    background: #eee;
}
.showqr-form button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #1c87c9;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.form-container {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
form {
    display: flex;
    flex-direction: column;
}
label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    text-align: left;
}
input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}
input:focus {
    border-color: #6a11cb;
}
#checkcode {
    width: 200px; /* 固定寬度 */
    height: 200px; /* 固定高度 */
    border-radius: 8px;
    border: 1px solid #ddd;
    object-fit: cover; /* 確保圖片比例不變形 */
}
a {
    color: #6a11cb;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
a:hover {
    color: #2575fc;
}
button {
    padding: 12px;
    background: #6a11cb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}
button:hover {
    background: #2575fc;
}
#message {
    margin-top: 15px;
    font-size: 14px;
    color: red;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    position: relative;
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute; /* 相對於 modal-content 定位 */
    top: 10px;
    right: 15px;
    cursor: pointer;
}
