.tool-workspace {
    max-width: 700px;
    margin: 0 auto;
}

.generator-container {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.password-display {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.password-display input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--primary-color, #4f46e5);
    font-size: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    outline: none;
    letter-spacing: 2px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
}

.strength-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.strength-bar {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #ef4444; /* Default to weak */
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar.weak::after { width: 33%; background: #ef4444; }
.strength-bar.medium::after { width: 66%; background: #f59e0b; }
.strength-bar.strong::after { width: 100%; background: #10b981; }

.strength-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f59e0b; /* default */
    min-width: 80px;
    text-align: right;
}

.strength-text.weak { color: #ef4444; }
.strength-text.medium { color: #f59e0b; }
.strength-text.strong { color: #10b981; }

.settings-group {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.range-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.range-group label {
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.range-group input[type="range"] {
    width: 100%;
    accent-color: #4f46e5;
    cursor: pointer;
}

.toggles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.toggle-label input[type="checkbox"]:checked + .custom-checkbox {
    background: #4f46e5;
    border-color: #4f46e5;
}

.toggle-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
}

.generate-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .toggles-grid {
        grid-template-columns: 1fr;
    }
    .password-display input {
        font-size: 1.5rem;
    }
}
