﻿/* 模态框整体背景 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 设置z-index，确保它在其他元素之上 */
}

/* 模态框内容 */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    z-index: 10000; /* 确保模态框内容在背景上方 */
}

/* 输入框样式 */
.password-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 模态框按钮的容器 */
.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 取消按钮 */
.btn-cancel {
    padding: 6px 20px;
    background-color: #808080;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 确认按钮 */
.btn-confirm {
    padding: 6px 20px;
    background-color: #426bd0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 按钮在 hover 状态时 */
.btn-cancel:hover {
    background-color: #2b2a2a;
}

.btn-confirm:hover {
    background-color: #388e3c;
}

.error-placeholder::placeholder {
    color: red; /* 占位符文字颜色 */
}