/* ===========================================
   📧 敏感操作邮箱提醒样式
   =========================================== */

/* 邮箱提醒卡片样式 */
.security-card--email-alerts {
    border-left: 4px solid #17a2b8 !important;
}

.security-card--email-alerts .card-status {
    background-color: #17a2b8;
    color: white;
}

/* 表单部分样式 */
.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title:before {
    content: "📌";
    font-size: 14px;
}

/* 输入框带按钮样式 */
.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button .form-input {
    flex: 1;
}

.input-with-button .btn {
    flex-shrink: 0;
}

/* 验证码部分 */
#verificationCodeSection .form-input {
    letter-spacing: 10px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    font-family: 'Courier New', monospace;
}

/* 提醒选项网格 */
.alert-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.alert-option {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.alert-option:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.alert-option .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.alert-option .checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-option .checkbox-text strong {
    font-size: 14px;
    color: #212529;
}

.alert-option .checkbox-text small {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* 快速设置按钮组 */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 1;
    min-width: 120px;
}

/* 邮箱状态显示 */
#emailStatus.alert--success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#emailStatus.alert--warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

#emailStatus .alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

#emailStatus .alert-content {
    flex: 1;
}

#emailStatus .alert-content strong {
    display: block;
    margin-bottom: 4px;
}

/* 验证码倒计时 - 低调流光特效 */
#verificationTimer {
    font-weight: bold;
    color: #dc3545;
    background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 50%, #dc3545 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: flow 3s ease-in-out infinite;
}

@keyframes flow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .alert-options-grid {
        grid-template-columns: 1fr;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .input-with-button .btn {
        width: 100%;
    }
    
    .button-group .btn {
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .alert-options-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
}

/* 安全中心卡片状态指示器 */
.security-card[data-alerts-enabled="true"] .card-status {
    background-color: #28a745 !important;
}

.security-card[data-alerts-enabled="false"] .card-status {
    background-color: #6c757d !important;
}

.security-card[data-alerts-verified="true"] .card-icon {
    color: #28a745;
}

.security-card[data-alerts-verified="false"] .card-icon {
    color: #dc3545;
}

/* 模态框特定样式 */
#sensitiveAlertsModal .modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

#sensitiveAlertsModal .modal-body {
    padding: 20px;
}

/* 表单提示文本样式 */
.form-label-hint {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    font-weight: normal;
}

/* 复选框自定义样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background-color: #007bff;
    border-color: #007bff;
}

.checkbox-input:checked + .checkbox-custom:after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-input:disabled + .checkbox-custom {
    background-color: #e9ecef;
    border-color: #ced4da;
    cursor: not-allowed;
}

/* 开关按钮样式 */
.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch-input:checked + .toggle-switch-slider {
    background-color: #28a745;
}

.toggle-switch-input:checked + .toggle-switch-slider:before {
    transform: translateX(24px);
}

.toggle-switch-input:disabled + .toggle-switch-slider {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.toggle-switch-label {
    font-weight: 500;
    color: #495057;
}

/* ===========================================
   📋 三步向导样式
   =========================================== */

.wizard-container {
    position: relative;
    min-height: 400px;
}

.wizard-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wizard-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step-content {
    padding: 20px 0;
}

.step-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
    text-align: center;
}

.step-description {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.step-description p {
    margin-bottom: 10px;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.step-actions .btn {
    min-width: 100px;
}

/* 密码验证模态框 */
#passwordVerifyModal {
    position: fixed;
    z-index: 1050;
}

#passwordVerifyModal .modal-content {
    z-index: 1051;
}

/* 危险按钮样式 */
.btn--danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn--danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn--outline.btn--danger {
    background-color: transparent;
    color: #dc3545;
    border-color: #dc3545;
}

.btn--outline.btn--danger:hover {
    background-color: #dc3545;
    color: white;
}

/* 步骤指示器（可选） */
.wizard-steps-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wizard-step-indicator .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.wizard-step-indicator .step-label {
    font-size: 12px;
    color: #6c757d;
}

.wizard-step-indicator.active .step-number {
    background-color: #007bff;
    color: white;
}

.wizard-step-indicator.active .step-label {
    color: #007bff;
    font-weight: 600;
}

/* ===========================================
   ✅ 邮箱验证成功样式
   =========================================== */

.email-verified-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #155724;
}

.email-verified-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.email-verified-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.email-verified-title {
    font-weight: 600;
    font-size: 16px;
}

.email-verified-details {
    font-size: 14px;
    line-height: 1.5;
    padding-left: 30px; /* 对齐图标 */
}