/* Password Generator Main Styles */
.pw-generator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.pw-generator-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pw-generator-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pw-generator-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Tool Container Styles */
.pw-generator-tool {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.pw-controls-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pw-length-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pw-length-control label {
    font-weight: 600;
    color: #444;
}

#pw-length {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 4px;
    outline: none;
    margin: 1rem 0;
}

#pw-length::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #6e8efb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

#pw-length::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #5a7df4;
}

#length-value {
    font-weight: 700;
    color: #6e8efb;
    font-size: 1.1rem;
}

.pw-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
}

.pw-option-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pw-option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.pw-option-label:hover {
    background: #f5f7ff;
}

.pw-option-label input {
    width: 18px;
    height: 18px;
    accent-color: #6e8efb;
}

.pw-advanced-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.pw-generate-btn {
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(106, 142, 251, 0.3);
}

.pw-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(106, 142, 251, 0.4);
}

.pw-generate-btn:active {
    transform: translateY(0);
}

/* Output Container Styles - Fixed Version */
.pw-output-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pw-result-box {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.pw-result-box:focus-within {
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

#password-result {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    border: none;
    outline: none;
    background: #f9f9f9;
    font-family: 'Courier New', monospace;
}

.pw-copy-btn {
    background: #f0f0f0;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
}

.pw-copy-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.pw-copy-icon {
    font-size: 1.2rem;
}

/* Fixed Password Strength Meter */
.pw-strength-meter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pw-strength-bar-container {
    height: 8px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.pw-strength-bar {
    height: 100%;
    width: 0;
    background: #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pw-strength-text {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#strength-value {
    font-weight: 600;
}

/* Info Boxes Styles */
.pw-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pw-info-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-top: 4px solid transparent;
}

.pw-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pw-box-1 {
    border-top-color: #6e8efb;
}

.pw-box-2 {
    border-top-color: #a777e3;
}

.pw-box-3 {
    border-top-color: #4fd1c5;
}

.pw-info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pw-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #444;
}

.pw-info-box p {
    color: #666;
    line-height: 1.6;
}

/* Fixed Content Section Styles */
.pw-content-section {
    margin-bottom: 3rem;
    position: relative;
}

.pw-content-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 2rem;
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 14px;
}

.pw-content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    border-radius: 2px;
}

.pw-content-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.pw-feature-highlight {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #6e8efb;
}

.pw-feature-highlight h3 {
    color: #444;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.pw-feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.pw-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #555;
    line-height: 1.6;
}

.pw-feature-bullet {
    font-size: 1.2rem;
}

.pw-related-tool {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.pw-related-tool h3 {
    color: #444;
    margin-bottom: 0.5rem;
}

.pw-related-link {
    color: #6e8efb;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.pw-related-link:hover {
    color: #4d6fd8;
    text-decoration: underline;
}

/* FAQ Section Styles */
.pw-faq-section {
    margin-bottom: 2rem;
}

.pw-faq-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pw-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.pw-faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pw-faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.pw-faq-question:hover {
    background: #f8f9ff;
}

.pw-faq-icon {
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.pw-faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.pw-faq-answer p {
    padding: 1rem 0;
    color: #555;
    line-height: 1.7;
}

.pw-faq-item.active .pw-faq-question {
    background: #f8f9ff;
}

.pw-faq-item.active .pw-faq-icon {
    transform: rotate(45deg);
}

.pw-faq-item.active .pw-faq-answer {
    max-height: 500px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .pw-generator-hero {
        padding: 1.5rem;
    }
    
    .pw-generator-title {
        font-size: 2rem;
    }
    
    .pw-generator-subtitle {
        font-size: 1rem;
    }
    
    .pw-generator-tool {
        padding: 1.5rem;
    }
    
    .pw-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .pw-feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pw-generator-container {
        padding: 1.5rem 1rem;
    }
    
    .pw-options-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pw-result-box {
        flex-direction: column;
    }
    
    .pw-copy-btn {
        justify-content: center;
        padding: 0.8rem;
    }
}