/* 全局样式 */
body {
    color: #fff;
}

/* 表单元素样式 */
.form-control.bg-dark {
    color: white !important;
}

.form-control.bg-dark:focus {
    background-color: #2a2a2a !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    caret-color: white;
}

/* 修复表单浮动标签 */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    background-color: transparent !important;
    color: #fff !important;
    opacity: 1;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* 表单浮动标签背景 */
.form-floating > label {
    background-color: transparent !important;
}

/* 选中文本的样式 */
::selection {
    background-color: #0d6efd !important;
    color: white !important;
    text-shadow: none;
}

/* 确保表单元素在选中状态下文字清晰可见 */
input::selection, 
textarea::selection,
.form-control::selection {
    background-color: #0d6efd !important;
    color: white !important;
}

/* 表单标签样式 */
.form-check-label {
    color: white !important;
}

/* 确保选中状态下的文本可见 */
.form-check-label::selection {
    background-color: #0d6efd !important;
    color: white !important;
}

/* 修复表单输入框文字颜色 */
.form-control {
    color: #fff !important;
}

/* 修复表单输入框获取焦点时的样式 */
.form-control:focus {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #0d6efd !important;
} 