/**
 * 家长配置系统样式
 * 包含按键进度提示、密码对话框、配置面板等样式
 */

/* ===== 按键进度提示 ===== */
.parental-key-progress {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 100%
    );
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: slideInRight 0.3s ease-out;
}

/* ===== 密码重置进度提示 ===== */
.parental-reset-progress {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    background: linear-gradient(135deg,
        rgba(66, 153, 225, 0.95) 0%,
        rgba(49, 130, 206, 0.98) 100%
    );
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow:
        0 8px 32px rgba(66, 153, 225, 0.4),
        0 4px 16px rgba(66, 153, 225, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: slideInRight 0.3s ease-out, pulse-glow-blue 2s ease-in-out infinite;
}

@keyframes pulse-glow-blue {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(66, 153, 225, 0.4),
            0 4px 16px rgba(66, 153, 225, 0.3),
            0 0 0 2px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow:
            0 12px 40px rgba(66, 153, 225, 0.6),
            0 6px 20px rgba(66, 153, 225, 0.5),
            0 0 0 3px rgba(255, 255, 255, 0.6);
    }
}

.parental-reset-progress .progress-title {
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.parental-reset-progress .progress-text {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.parental-reset-progress .reset-dot {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.parental-reset-progress .reset-dot.active {
    background: white;
    border-color: white;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E2E8F0;
    border: 2px solid #CBD5E0;
    transition: all 0.3s ease;
}

.dot.active {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    border-color: #38A169;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(72, 187, 120, 0.4);
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #4A5568;
    min-width: 40px;
    text-align: center;
}

/* ===== 密码对话框 ===== */
.parental-password-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000001;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.password-modal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%
    );
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.21, 0.61, 0.35, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2D3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(226, 232, 240, 0.6);
    color: #4A5568;
}

.modal-body {
    padding: 20px 24px;
}

.modal-body p {
    margin: 0 0 16px;
    color: #4A5568;
    font-size: 14px;
    line-height: 1.5;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.password-input {
    flex: 1;
    padding: 12px 40px 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.password-input:focus {
    outline: none;
    border-color: #48BB78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.password-input.error {
    border-color: #E53E3E;
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60% { transform: translateX(6px); }
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #718096;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #4A5568;
}

.attempts-info {
    font-size: 12px;
    color: #718096;
    text-align: center;
    padding: 8px;
    background: rgba(226, 232, 240, 0.4);
    border-radius: 6px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 20px;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #F7FAFC;
    color: #4A5568;
    border: 2px solid #E2E8F0;
}

.cancel-btn:hover {
    background: #EDF2F7;
    border-color: #CBD5E0;
}

.confirm-btn {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #4FD1C5 0%, #319795 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

/* ===== 配置面板 ===== */
.parental-config-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000002;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.config-modal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%
    );
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.21, 0.61, 0.35, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.config-tabs {
    display: flex;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(248, 249, 250, 0.8);
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #4A5568;
    background: rgba(226, 232, 240, 0.4);
}

.tab-btn.active {
    color: #2D5A27;
    background: rgba(72, 187, 120, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    color: #2D3748;
    min-height: 300px;
    max-height: calc(80vh - 200px);
}

.tab-pane {
    display: none;
    color: #2D3748;
}

.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.config-group {
    margin-bottom: 20px;
}

.config-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
}

.config-group input[type="number"],
.config-group input[type="password"],
.config-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    color: #2D3748;
}

.config-group input:focus,
.config-group select:focus {
    outline: none;
    border-color: #48BB78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-group input {
    padding-right: 40px;
}

.password-group button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #718096;
    transition: color 0.2s ease;
}

.password-group button:hover {
    color: #4A5568;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E0;
    transition: 0.4s;
    border-radius: 24px;
}

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

input:checked + .slider {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.reset-btn {
    background: linear-gradient(135deg, #F56565 0%, #E53E3E 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #FC8181 0%, #F56565 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 101, 101, 0.4);
}

.save-btn {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.save-btn:hover {
    background: linear-gradient(135deg, #4FD1C5 0%, #319795 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E2E8F0;
    border: 2px solid #CBD5E0;
    transition: all 0.3s ease;
}

.dot.active {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    border-color: #38A169;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(72, 187, 120, 0.4);
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #4A5568;
    min-width: 40px;
    text-align: center;
}

/* ===== 密码对话框 ===== */
.parental-password-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000001;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.password-modal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%
    );
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.21, 0.61, 0.35, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2D3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(226, 232, 240, 0.6);
    color: #4A5568;
}

.modal-body {
    padding: 20px 24px;
}

.modal-body p {
    margin: 0 0 16px;
    color: #4A5568;
    font-size: 14px;
    line-height: 1.5;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.password-input {
    flex: 1;
    padding: 12px 40px 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.password-input:focus {
    outline: none;
    border-color: #48BB78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.password-input.error {
    border-color: #E53E3E;
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60% { transform: translateX(6px); }
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #718096;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #4A5568;
}

.attempts-info {
    font-size: 12px;
    color: #718096;
    text-align: center;
    padding: 8px;
    background: rgba(226, 232, 240, 0.4);
    border-radius: 6px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 20px;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #F7FAFC;
    color: #4A5568;
    border: 2px solid #E2E8F0;
}

.cancel-btn:hover {
    background: #EDF2F7;
    border-color: #CBD5E0;
}

.confirm-btn {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #4FD1C5 0%, #319795 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

/* ===== 配置面板 ===== */
.parental-config-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000002;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.config-modal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%
    );
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.21, 0.61, 0.35, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.config-tabs {
    display: flex;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(248, 249, 250, 0.8);
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #4A5568;
    background: rgba(226, 232, 240, 0.4);
}

.tab-btn.active {
    color: #2D5A27;
    background: rgba(72, 187, 120, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    color: #2D3748;
    min-height: 300px;
    max-height: calc(80vh - 200px);
}

.tab-pane {
    display: none;
    color: #2D3748;
}

.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.config-group {
    margin-bottom: 20px;
}

.config-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
}

.config-group input[type="number"],
.config-group input[type="password"],
.config-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    color: #2D3748;
}

.config-group input:focus,
.config-group select:focus {
    outline: none;
    border-color: #48BB78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-group input {
    padding-right: 40px;
}

.password-group button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #718096;
    transition: color 0.2s ease;
}

.password-group button:hover {
    color: #4A5568;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E0;
    transition: 0.4s;
    border-radius: 24px;
}

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

input:checked + .slider {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.reset-btn {
    background: linear-gradient(135deg, #F56565 0%, #E53E3E 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #FC8181 0%, #F56565 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 101, 101, 0.4);
}

.save-btn {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.save-btn:hover {
    background: linear-gradient(135deg, #4FD1C5 0%, #319795 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .parental-key-progress {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    .progress-dots {
        gap: 4px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .progress-text {
        font-size: 12px;
    }

    .password-modal,
    .config-modal {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh; /* 限制最大高度 */
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .config-tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 12px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    }

    .tab-btn.active::after {
        height: 2px;
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
    }

    .tab-content {
        padding: 16px;
        max-height: calc(90vh - 200px); /* 限制内容区域高度 */
        overflow-y: auto; /* 启用垂直滚动 */
        -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
        scroll-behavior: smooth; /* 平滑滚动 */
    }

    /* 移动端优化滚动 */
    .tab-content::-webkit-scrollbar {
        width: 6px;
    }

    .tab-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

    .tab-content::-webkit-scrollbar-thumb {
        background: rgba(72, 187, 120, 0.6);
        border-radius: 3px;
    }

    .tab-content::-webkit-scrollbar-thumb:hover {
        background: rgba(72, 187, 120, 0.8);
    }
}

@media (max-width: 480px) {
    .parental-key-progress {
        top: 5px;
        right: 5px;
        padding: 6px 8px;
    }
    
    .progress-indicator {
        gap: 8px;
    }
    
    .progress-dots {
        gap: 3px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .progress-text {
        font-size: 11px;
        min-width: 30px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body p {
        font-size: 13px;
    }
    
    .password-input {
        font-size: 14px;
        padding: 10px 35px 10px 12px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer button {
        width: 100%;
        padding: 12px;
    }
    
    .config-group input,
    .config-group select {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* ===== 增强动画效果 ===== */

/* 按键进度动画增强 */
.parental-key-progress {
    animation: slideInRight 0.3s ease-out, pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.15),
            0 4px 16px rgba(0, 0, 0, 0.1),
            0 0 0 2px rgba(72, 187, 120, 0.4);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(72, 187, 120, 0.2),
            0 6px 20px rgba(72, 187, 120, 0.1),
            0 0 0 3px rgba(72, 187, 120, 0.6);
    }
}

.dot {
    position: relative;
    overflow: hidden;
}

.dot.active {
    animation: dot-pulse 0.6s ease-out;
}

.dot.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(72, 187, 120, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: dot-ripple 1s ease-out;
}

@keyframes dot-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.2);
    }
}

@keyframes dot-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 30px;
        height: 30px;
        opacity: 0;
    }
}

/* 密码输入框增强 */
.password-input {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-input:focus {
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 3px rgba(72, 187, 120, 0.1),
        0 8px 25px rgba(72, 187, 120, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.password-input.error {
    animation: input-shake 0.6s ease-in-out;
    border-color: #E53E3E;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* 按钮增强动画 */
.confirm-btn, .save-btn {
    position: relative;
    overflow: hidden;
}

.confirm-btn::before, .save-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.6s ease;
}

.confirm-btn:hover::before, .save-btn:hover::before {
    left: 100%;
}

/* 配置面板动画 */
.config-modal {
    animation: modalSlideIn 0.4s cubic-bezier(0.21, 0.61, 0.35, 1),
               modal-float 3s ease-in-out infinite;
}

@keyframes modal-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.002);
    }
}

/* 标签切换动画 */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    color: #2D3748;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    animation: tabFadeIn 0.3s ease-out;
}

/* 配置组样式 */
.config-group {
    opacity: 1;
    transform: translateY(0);
}

/* 开关动画增强 */
.switch input:checked + .slider {
    animation: switch-activate 0.3s ease-out;
}

@keyframes switch-activate {
    0% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(72, 187, 120, 0.6);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.4);
    }
}

/* 加载状态动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* 成功/错误反馈 */
.success-feedback {
    animation: success-pulse 0.6s ease-out;
}

@keyframes success-pulse {
    0% {
        background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #68D391 0%, #48BB78 100%);
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(72, 187, 120, 0.6);
    }
    100% {
        background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
        transform: scale(1);
    }
}

.error-feedback {
    animation: error-shake 0.6s ease-in-out;
}

/* 悬浮提示 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

/* 进度条动画 */
.progress-bar-animated {
    position: relative;
    overflow: hidden;
}

.progress-bar-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 呼吸效果 */
.breathing {
    animation: breathing 2s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* 脉冲效果 */
.pulse-on-hover:hover {
    animation: pulse-hover 1s ease-in-out infinite;
}

@keyframes pulse-hover {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* 滑入效果 */
.slide-in-from-top {
    animation: slideInTop 0.5s ease-out;
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滑入效果 - 从底部 */
.slide-in-from-bottom {
    animation: slideInBottom 0.5s ease-out;
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 缩放效果 */
.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 旋转效果 */
.rotate-in {
    animation: rotateIn 0.5s ease-out;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .parental-key-progress,
    .password-modal,
    .config-modal {
        background: linear-gradient(135deg, 
            rgba(45, 55, 72, 0.95) 0%, 
            rgba(26, 32, 44, 0.98) 100%
        );
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .modal-header h3,
    .config-group label {
        color: #E2E8F0;
    }
    
    .modal-body p {
        color: #CBD5E0;
    }
    
    .password-input,
    .config-group input,
    .config-group select {
        background: rgba(74, 85, 104, 0.3);
        border-color: #4A5568;
        color: #E2E8F0;
    }
    
    .password-input:focus,
    .config-group input:focus,
    .config-group select:focus {
        border-color: #48BB78;
    }
    
    .close-btn {
        color: #A0AEC0;
    }
    
    .close-btn:hover {
        background: rgba(74, 85, 104, 0.6);
        color: #E2E8F0;
    }
    
    .cancel-btn {
        background: #2D3748;
        color: #E2E8F0;
        border-color: #4A5568;
    }
    
    .cancel-btn:hover {
        background: #1A202C;
        border-color: #718096;
    }
    
    .config-tabs {
        background: rgba(45, 55, 72, 0.8);
        border-bottom-color: rgba(74, 85, 104, 0.6);
    }
    
    .tab-btn {
        color: #A0AEC0;
    }
    
    .tab-btn:hover {
        color: #E2E8F0;
        background: rgba(74, 85, 104, 0.6);
    }
    
    .tab-btn.active {
        color: #68D391;
        background: rgba(72, 187, 120, 0.2);
    }
    
    .attempts-info {
        background: rgba(74, 85, 104, 0.4);
        color: #A0AEC0;
    }
    
    .slider {
        background-color: #4A5568;
    }
}

/* ===== 忘记密码功能 ===== */
.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password-link {
    color: #4299E1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #2B6CB0;
    text-decoration: underline;
}

/* ===== 密码恢复对话框 ===== */
.parental-recovery-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000010;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.recovery-modal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%
    );
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.recovery-modal .modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.recovery-modal .modal-header h3 {
    color: #2D3748;
    font-weight: 700;
}

.recovery-modal .modal-body {
    color: #4A5568;
}

.recovery-modal .modal-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.recovery-modal .close-btn {
    color: #718096;
}

.recovery-modal .close-btn:hover {
    color: #4A5568;
    background: rgba(226, 232, 240, 0.6);
}

.recovery-modal .cancel-btn {
    background: #F7FAFC;
    color: #4A5568;
    border: 2px solid #E2E8F0;
}

.recovery-modal .cancel-btn:hover {
    background: #EDF2F7;
    border-color: #CBD5E0;
}

.recovery-modal .confirm-btn {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.recovery-modal .confirm-btn:hover {
    background: linear-gradient(135deg, #4FD1C5 0%, #319795 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

.question-box {
    background: rgba(247, 250, 252, 0.8);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.recovery-question {
    font-size: 18px;
    font-weight: bold;
    color: #2D3748;
    margin-bottom: 15px;
    line-height: 1.5;
}

.answer-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #2D3748;
}

.answer-input:focus {
    outline: none;
    border-color: #4299E1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.answer-input.error {
    border-color: #E53E3E;
    animation: shake 0.5s ease-out;
}

.recovery-info {
    text-align: center;
    color: #718096;
    font-size: 14px;
    margin-top: 10px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== 强制文字颜色显示 ===== */
.parental-config-panel .config-group label,
.parental-config-panel .tab-content label,
.parental-config-panel .tab-pane label {
    color: #2D3748 !important;
    opacity: 1;
}

.parental-config-panel .tab-btn {
    color: #718096 !important;
    opacity: 1;
}

.parental-config-panel .tab-btn.active {
    color: #2D5A27 !important;
    opacity: 1;
}

.parental-config-panel input[type="number"],
.parental-config-panel input[type="password"],
.parental-config-panel select {
    color: #2D3748 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    opacity: 1;
}

.parental-config-panel .tab-content,
.parental-config-panel .tab-pane,
.parental-config-panel .config-group {
    color: #2D3748 !important;
    opacity: 1;
}

.parental-config-panel .modal-body {
    color: #4A5568 !important;
    opacity: 1;
}

.parental-config-panel .modal-header h3 {
    color: #2D3748 !important;
    opacity: 1;
}

.parental-config-panel .cancel-btn.tooltip.pulse-on-hover,
.parental-config-panel .save-btn.tooltip.pulse-on-hover,
.parental-config-panel .close-btn.tooltip.pulse-on-hover,
.parental-config-panel .reset-btn.tooltip.pulse-on-hover {
    color: #2D3748 !important;
    opacity: 1;
}

/* ===== 移动端触摸反馈样式 ===== */
.parental-touch-feedback {
    position: fixed;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 1000000;
}

.touch-indicator {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(72, 187, 120, 0.2);
    border: 3px solid rgba(72, 187, 120, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: touch-feedback-pulse 1s ease-in-out infinite;
}

.touch-progress {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: conic-gradient(
        rgba(72, 187, 120, 0.8) 0deg,
        rgba(72, 187, 120, 0.8) var(--progress),
        transparent var(--progress)
    );
    mask: radial-gradient(circle at center, transparent 60%, black 60%);
    -webkit-mask: radial-gradient(circle at center, transparent 60%, black 60%);
}

@keyframes touch-feedback-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* CSS变量定义 */
:root {
    --progress: 0deg;
}

/* 触摸反馈元素样式 */
.parental-touch-feedback {
    position: fixed;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 1000000;
}

.touch-indicator {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(72, 187, 120, 0.2);
    border: 3px solid rgba(72, 187, 120, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: touch-feedback-pulse 1s ease-in-out infinite;
}

.touch-progress {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: conic-gradient(
        rgba(72, 187, 120, 0.8) 0deg,
        rgba(72, 187, 120, 0.8) var(--progress, 0deg),
        transparent var(--progress, 0deg)
    );
    mask: radial-gradient(circle at center, transparent 60%, black 60%);
    -webkit-mask: radial-gradient(circle at center, transparent 60%, black 60%);
}

@keyframes touch-feedback-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes touch-progress {
    0% {
        --progress: 0deg;
    }
    100% {
        --progress: 360deg;
    }
}

/* 移动端设置组样式 */
.mobile-settings {
    background: rgba(72, 187, 120, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #48BB78;
    margin: 15px 0;
}

/* 设备设置区域样式 */
.device-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.device-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.desktop-section {
    background: rgba(66, 153, 225, 0.05);
    border-left: 4px solid #4299E1;
}

.desktop-section h4 {
    color: #2B6CB0;
}

.mobile-section {
    background: rgba(72, 187, 120, 0.05);
    border-left: 4px solid #48BB78;
}

.mobile-section h4 {
    color: #2F855A;
}

.section-description {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
    font-style: italic;
}

/* 移动端滚动优化 */
@media (max-width: 768px) {
    .device-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .device-section h4 {
        font-size: 16px;
    }

    .section-description {
        font-size: 13px;
    }

    /* 内容区域滚动优化 */
    .tab-content {
        max-height: calc(85vh - 180px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 15px;
    }

    /* 自定义滚动条 */
    .tab-content::-webkit-scrollbar {
        width: 4px;
    }

    .tab-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }

    .tab-content::-webkit-scrollbar-thumb {
        background: rgba(72, 187, 120, 0.5);
        border-radius: 2px;
    }

    .tab-content::-webkit-scrollbar-thumb:hover {
        background: rgba(72, 187, 120, 0.7);
    }

    /* 防止水平溢出 */
    .config-group {
        word-wrap: break-word;
    }

    .config-group input,
    .config-group select {
        max-width: 100%;
    }
}

.mobile-settings label {
    color: #2D3748;
    font-weight: 600;
}

.mobile-settings::before {
    content: '📱';
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 20px;
    opacity: 0.6;
}

/* 设备类型指示器 */
.device-type-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(45, 55, 72, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.device-type-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.device-type-indicator.mobile {
    background: rgba(72, 187, 120, 0.9);
}

.device-type-indicator.desktop {
    background: rgba(66, 153, 225, 0.9);
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .mobile-settings {
        padding: 12px;
        margin: 10px 0;
    }

    .mobile-settings::before {
        right: 12px;
        top: 12px;
        font-size: 18px;
    }

    .parental-touch-feedback {
        width: 40px;
        height: 40px;
    }

    .touch-indicator {
        border-width: 2px;
    }

    /* 移动端密码恢复样式 */
    .mobile-recovery-instructions {
        background: rgba(66, 153, 225, 0.05);
        border-radius: 8px;
        padding: 15px;
        margin: 15px 0;
    }

    .instruction-step {
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
        padding: 10px;
        background: white;
        border-radius: 6px;
        border-left: 3px solid #4299E1;
    }

    .instruction-step:last-child {
        margin-bottom: 0;
    }

    .step-number {
        background: #4299E1;
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 14px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .step-content {
        flex: 1;
        font-size: 14px;
        line-height: 1.4;
    }

    .step-content strong {
        color: #2B6CB0;
        display: block;
        margin-bottom: 4px;
    }

    .recovery-status {
        text-align: center;
        padding: 12px;
        margin-top: 15px;
        border-radius: 6px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .recovery-status.waiting {
        background: rgba(113, 128, 150, 0.1);
        color: #718096;
    }

    .recovery-status.active {
        background: rgba(66, 153, 225, 0.1);
        color: #2B6CB0;
    }

    .recovery-status.success {
        background: rgba(72, 187, 120, 0.1);
        color: #2F855A;
    }

    .recovery-status.error {
        background: rgba(245, 101, 101, 0.1);
        color: #C53030;
    }

    .start-recovery-btn {
        background: linear-gradient(135deg, #4299E1 0%, #3182CE 100%);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    }

    .start-recovery-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #63B3ED 0%, #2B6CB0 100%);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
    }

    .start-recovery-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
}

@media (max-width: 480px) {
    .mobile-settings {
        padding: 10px;
        margin: 8px 0;
    }

    .mobile-settings::before {
        right: 10px;
        top: 10px;
        font-size: 16px;
    }

    .parental-touch-feedback {
        width: 35px;
        height: 35px;
    }
}