/* Tool Page Specific Styles */

.tool-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 0 auto;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h2 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Password Display Section */
.password-display-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.password-display {
    flex: 1;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #333;
    word-break: break-all;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.password-display.generated {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: #4caf50;
}

/* Options Section */
.options-section {
    margin-bottom: 2rem;
}

.options-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

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

.option-group label {
    display: block;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Range Slider */
input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #5568d3;
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

#lengthValue {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #f8f9fa;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.8rem;
    cursor: pointer;
    accent-color: #667eea;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
    transform: translateY(-1px);
}

/* Strength Indicator */
.strength-section {
    text-align: center;
}

.strength-section p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

#strengthText {
    font-weight: 700;
    font-size: 1.1rem;
}

.strength-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

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

.strength-fill.weak {
    width: 33%;
    background: #f44336;
}

.strength-fill.medium {
    width: 66%;
    background: #ff9800;
}

.strength-fill.strong {
    width: 100%;
    background: #4caf50;
}

/* Back Link */
.back-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container {
        padding: 2rem 1.5rem;
    }
    
    .tool-header h2 {
        font-size: 2rem;
    }
    
    .password-display-section {
        flex-direction: column;
    }
    
    .password-display {
        font-size: 1rem;
    }
}