/**
 * 用户账号删除系统 - 前端样式
 * 子比主题兼容版 - SweetAlert2版本
 */

/* 步骤指示器 */
.uad-stepper {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.uad-stepper:after {
    content: '';
    position: absolute;
    top: 15px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--muted-color, #ddd);
    z-index: 0;
}

.uad-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    position: relative;
    z-index: 1;
}

.uad-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--muted-color, #ddd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
}

.uad-step.active .uad-step-number {
    background-color: var(--theme-color, #fa424a);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(250, 66, 74, 0.2);
}

.uad-step-label {
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.uad-step.active .uad-step-label {
    color: var(--theme-color, #fa424a);
    font-weight: bold;
    transform: translateY(2px);
}

/* 资产网格 */
.uad-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .uad-assets-grid {
        grid-template-columns: 1fr;
    }
}

/* 资产卡片 */
.uad-asset-card {
    border-radius: 8px;
    padding: 15px;
    background-color: var(--main-bg-light, #f9f9f9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.uad-asset-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.uad-asset-icon {
    font-size: 20px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.uad-asset-card:hover .uad-asset-icon {
    transform: scale(1.1);
}

.uad-asset-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.uad-asset-value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.uad-asset-card:hover .uad-asset-value {
    transform: translateY(-2px);
}

.uad-asset-active {
    border-left: 3px solid var(--theme-color, #ff5722);
}

/* 零值资产样式 */
.uad-asset-card.is-zero .uad-asset-value {
    color: var(--muted-2-color, #bbb);
}

.uad-asset-card.is-zero {
    opacity: 0.75;
}

/* 会员进度条 */
.uad-membership-progress {
    margin-top: 10px;
}

.uad-progress-bar {
    height: 5px;
    background-color: var(--muted-2-color, #eee);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.uad-progress-fill {
    height: 100%;
    background-color: var(--theme-color, #ff5722);
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.uad-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

/* 表单样式 - 极简化，依赖主题 */
.uad-delete-warning {
    padding: 15px;
    border-radius: 8px;
    line-height: 1.5;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.uad-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* SweetAlert2 自定义样式 */
.uad-swal-container .swal2-popup {
    width: 36em;
    max-width: 95vw;
    padding: 1.5em;
}

.uad-swal-container .swal2-title {
    font-size: 1.5em;
    margin-bottom: 1em;
}

.uad-swal-container .swal2-html-container {
    text-align: left;
    overflow: visible;
}

/* 表单元素动画 */
.uad-form-group input {
    transition: all 0.3s ease;
}

.uad-form-group input:focus {
    box-shadow: 0 0 0 2px rgba(var(--theme-color-rgb, 250, 66, 74), 0.2);
}

/* 按钮动画效果 */
.uad-form-actions button {
    transition: all 0.3s ease;
}

.uad-form-actions button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.uad-form-actions button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 按钮加载状态 */
.uad-form-actions button.is-loading {
    position: relative;
    color: transparent !important;
}

.uad-form-actions button.is-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: buttonLoading 0.8s linear infinite;
}

@keyframes buttonLoading {
    to {
        transform: rotate(360deg);
    }
}

/* 交错淡入动画效果 */
.uad-confirm-form-loaded .uad-form-group {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.uad-confirm-form-loaded .uad-form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.uad-confirm-form-loaded .uad-form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.uad-confirm-form-loaded .uad-form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.uad-confirm-form-loaded .uad-form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.uad-confirm-form-loaded .uad-form-check {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.uad-confirm-form-loaded .uad-form-actions {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .uad-confirm-form-loaded .uad-form-group,
    .uad-confirm-form-loaded .uad-form-check,
    .uad-confirm-form-loaded .uad-form-actions {
        animation-delay: 0.1s;
    }
} 