/* Password Generator specific styles */

.password-generator {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.settings-section, .output-section {
    background-color: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 1.5rem;
}

.settings-section h3, .output-section h3 {
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid #4a5568;
    padding-bottom: 0.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#lengthValue {
    color: #63b3ed;
    font-weight: 600;
}

#passwordLength {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #4a5568;
    outline: none;
    -webkit-appearance: none;
}

#passwordLength::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3182ce;
    cursor: pointer;
    border: 2px solid #e2e8f0;
}

#passwordLength::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3182ce;
    cursor: pointer;
    border: 2px solid #e2e8f0;
}

.character-options, .advanced-options {
    margin-bottom: 1.5rem;
}

.character-options h4, .advanced-options h4 {
    color: #a0aec0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    padding-left: 2rem;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-label:hover .checkmark {
    border-color: #63b3ed;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #3182ce;
    border-color: #3182ce;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c5aa0, #2a4d8d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn-copy {
    background-color: #38a169;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 12px;
}

.btn-copy:hover {
    background-color: #2f855a;
}

.btn-copy:disabled {
    background-color: #68d391;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background-color: #4a5568;
    color: #e2e8f0;
    font-size: 12px;
    padding: 0.5rem 1rem;
}

.btn-secondary:hover {
    background-color: #2d3748;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.password-display {
    margin-bottom: 2rem;
}

.password-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#generatedPassword {
    flex: 1;
    background-color: #2d3748;
    color: #e2e8f0;
    border: 2px solid #4a5568;
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

#generatedPassword:focus {
    border-color: #63b3ed;
}

.strength-meter {
    margin-bottom: 2rem;
}

.strength-meter h4 {
    color: #a0aec0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background-color: #2d3748;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-text {
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
}

.password-history h4 {
    color: #a0aec0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 1px solid #4a5568;
    border-radius: 6px;
    padding: 0.5rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background-color: #2d3748;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.history-password {
    color: #e2e8f0;
    flex: 1;
    margin-right: 0.5rem;
    word-break: break-all;
}

.history-copy {
    background: none;
    border: none;
    color: #63b3ed;
    cursor: pointer;
    font-size: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.history-copy:hover {
    background-color: #4a5568;
}

.no-history {
    color: #a0aec0;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

/* Strength level colors */
.strength-very-weak { background-color: #e53e3e; }
.strength-weak { background-color: #dd6b20; }
.strength-fair { background-color: #d69e2e; }
.strength-good { background-color: #38a169; }
.strength-strong { background-color: #3182ce; }

/* Responsive design */
@media (max-width: 768px) {
    .password-generator {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .settings-section, .output-section {
        padding: 1rem;
    }
    
    .password-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-copy {
        margin-top: 0.5rem;
    }
}