.password-container {
    max-width: 600px;
    margin: auto;
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.password-container:hover {
    transform: translateY(-5px);
}

.password-display {
    position: relative;
    margin-bottom: 1.5rem;
}

.password-display input {
    font-size: 1.25rem;
    padding-right: 110px;
    letter-spacing: 0.1em;
    height: 60px;
    font-family: 'Courier New', monospace;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.password-display input:focus {
    border-color: var(--ut-color-primary-500);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    background-color: white;
}

.password-actions {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 45px;
    height: 45px;
    border: none;
    background-color: #f1f5f9;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.btn-action:hover {
    background-color: #e2e8f0;
    color: var(--ut-color-primary-500);
    transform: scale(1.05);
}

.btn-action:active {
    transform: scale(0.95);
}

.form-check {
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.form-check:hover {
    transform: translateX(5px);
}

.form-check-input:checked {
    background-color: var(--ut-color-primary-500);
    border-color: var(--ut-color-primary-500);
}

.strength-meter {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-meter div {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.strength-tips {
    font-size: 0.85rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    display: inline-block;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-generate {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.length-control {
    margin-bottom: 1.5rem;
}

.length-value {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ut-color-primary-500);
}

.length-presets {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-preset {
    flex: 1;
    min-width: 60px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: white;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-preset:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.badge-count {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.symbol-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* 密码历史 */
.password-history {
    margin-bottom: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.history-header h6 {
    margin: 0;
    font-weight: 600;
    color: #334155;
}

.btn-clear-history {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
}

.btn-clear-history:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: white;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: var(--ut-color-primary-500);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.history-password {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #334155;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-actions {
    display: flex;
    gap: 0.25rem;
}

.history-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
}

.history-btn:hover {
    background-color: #f1f5f9;
    color: var(--ut-color-primary-500);
}

.history-empty {
    text-align: center;
    color: #94a3b8;
    padding: 1rem;
    font-size: 0.9rem;
}

/* 高级选项 */
.advanced-options {
    margin-bottom: 1.5rem;
}

.btn-toggle-advanced {
    width: 100%;
    padding: 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #64748b;
}

.btn-toggle-advanced:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.btn-toggle-advanced.active .toggle-icon {
    transform: rotate(180deg);
}

.advanced-content {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.hidden {
    display: none;
}

/* 响应式 */
@media (max-width: 576px) {
    .password-container {
        padding: 1.5rem;
    }

    .password-display input {
        font-size: 1.1rem;
        padding-right: 90px;
    }

    .btn-action {
        width: 40px;
        height: 40px;
    }

    .length-presets {
        flex-wrap: wrap;
    }

    .btn-preset {
        min-width: 50px;
        font-size: 0.9rem;
    }
}
