.tool-container {
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.result-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#passwordOutput {
    flex: 1;
    border: none;
    background: transparent;
    font-family: monospace;
    font-size: 1.5rem;
    color: #1f2937;
    padding: 0.5rem;
    text-align: center;
    letter-spacing: 1px;
}

#passwordOutput:focus {
    outline: none;
}

.btn-icon {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #2563eb;
    border-color: #2563eb;
}

.strength-meter {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

#strengthFill {
    height: 100%;
    background: #e5e7eb;
    transition: width 0.3s, background-color 0.3s;
}

#strengthText {
    font-size: 0.85rem;
    color: #6b7280;
    min-width: 60px;
    text-align: right;
}

.config-panel {
    margin-bottom: 2rem;
}

.config-group {
    margin-bottom: 1.5rem;
}

.config-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #1d4ed8;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.checkbox-card:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.checkbox-card input {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.label-text {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.example {
    font-size: 0.8rem;
    color: #9ca3af;
}

.action-area {
    text-align: center;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.8rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
}

@media (max-width: 640px) {
    .tool-container {
        padding: 1rem;
    }
    
    #passwordOutput {
        font-size: 1.1rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}