/* Password Generator - Additional Styles */
/* Extends tools.css with specific password generator styling */

/* Password Display Area */
#passwordDisplay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

#passwordDisplay::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#generatedPassword {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    word-break: break-all;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

/* Copy Button */
#copyBtn {
    margin-top: 1.5rem;
    background: white;
    color: #667eea;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

#copyBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    background: #f7fafc;
}

#copyBtn:active {
    transform: translateY(0);
}

/* Strength Meter */
#strengthMeter {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

#strengthBar {
    height: 8px;
    border-radius: 10px;
    background: #28a745;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#strengthText {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Settings Panel */
.settings-panel {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.settings-panel h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-panel h3 i {
    color: #667eea;
}

/* Slider Styling */
.slider-container {
    margin-bottom: 2rem;
}

.slider-container label {
    display: block;
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
}

#lengthValue {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-item label {
    cursor: pointer;
    color: #2d3748;
    font-weight: 500;
    flex: 1;
    margin: 0;
}

/* Generate Button */
.btn-generate {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-generate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-generate:hover::before {
    left: 100%;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-generate:active {
    transform: translateY(0);
}

/* Tips Section */
.tips-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.tips-section h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-section h3 i {
    color: #667eea;
}

.tips-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-section li {
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    color: #4a5568;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tips-section li strong {
    color: #2d3748;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #2d3748;
}

/* Responsive Design */
@media (max-width: 768px) {
    #generatedPassword {
        font-size: 1.2rem;
        padding: 1.25rem;
        letter-spacing: 1px;
    }
    
    .settings-panel {
        padding: 1.5rem;
    }
    
    .tips-section {
        padding: 1.5rem;
    }
    
    #copyBtn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Hidden Class */
.hidden {
    display: none !important;
}
