/* 用户编辑页面样式 */
.user-edit-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 页面标题和操作按钮 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.page-header h1 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.page-header .actions {
    display: flex;
    gap: 10px;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-body {
    padding: 25px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    display: block;
}

.form-control {
    height: auto;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #4c84ff;
    box-shadow: 0 0 0 0.2rem rgba(76, 132, 255, 0.25);
}

.form-control[readonly] {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.form-text {
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-row {
    margin-right: -15px;
    margin-left: -15px;
    display: flex;
    flex-wrap: wrap;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* 用户信息框 */
.user-info-box {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
}

.info-item {
    flex: 0 0 auto;
    margin-right: 30px;
    margin-bottom: 10px;
}

.info-label {
    font-weight: 500;
    color: #666;
    margin-right: 5px;
}

.info-value {
    color: #333;
}

/* 表单操作区域 */
.form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #4c84ff;
    border-color: #4c84ff;
}

.btn-primary:hover {
    background-color: #3a70e9;
    border-color: #3a70e9;
}

.btn-secondary {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* 表单分隔线 */
.form-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 30px 0;
}

/* 警告和错误状态 */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #dc3545;
}

/* 成功消息样式 */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* 错误消息样式 */
.alert-error, .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .col-md-6, .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header .actions {
        margin-top: 15px;
    }

    .user-info-box {
        flex-direction: column;
    }

    .info-item {
        margin-right: 0;
    }
}
