/* ==========================================
   Password Generator Specific Styles
   ========================================== */

.page-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.page-header .lead-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================
   Generator Container
   ========================================== */

.generator-section {
    padding: 40px 0;
}

.generator-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* ==========================================
   Password Display
   ========================================== */

.password-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.password-output {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
    word-break: break-all;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.password-output .placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 400;
}

.btn-copy {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

.btn-copy.copied {
    background: var(--accent-color);
}

/* ==========================================
   Strength Indicator
   ========================================== */

.strength-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.strength-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.strength-bars {
    display: flex;
    gap: 6px;
    flex: 1;
}

.strength-bar {
    height: 8px;
    flex: 1;
    background: #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.strength-bar.active {
    background: #6c757d;
}

.strength-bar.active[data-level="1"] {
    background: #e74c3c;
}

.strength-bar.active[data-level="2"] {
    background: #f39c12;
}

.strength-bar.active[data-level="3"] {
    background: #3498db;
}

.strength-bar.active[data-level="4"] {
    background: #27ae60;
}

.strength-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 70px;
    text-align: right;
}

/* ==========================================
   Settings Container
   ========================================== */

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.form-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-text {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   Radio Buttons
   ========================================== */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.radio-label:hover {
    background: rgba(74, 144, 226, 0.05);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.radio-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================
   Slider
   ========================================== */

.slider-container {
    padding: 10px 0;
}

#length-slider {
    width: 100%;
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 15px;
}

#length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

#length-slider::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

#length-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

#length-slider::-moz-range-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#length-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================
   Signature Input
   ========================================== */

.signature-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signature-input-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.signature-input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* ==========================================
   Checkbox
   ========================================== */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(74, 144, 226, 0.05);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================
   Generate Button
   ========================================== */

.btn-generate {
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 16px;
}

/* ==========================================
   Multiple Generation
   ========================================== */

.multiple-generation {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
}

.multiple-generation h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.multi-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.multi-controls input {
    width: 2cm;
    flex: 0 0 2cm;
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
}

.multi-controls input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.multi-controls .btn-secondary {
    flex: 1;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.multi-controls .btn-secondary:hover {
    background: var(--secondary-color);
}

.multi-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.multi-password-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 0.95rem;
}

.multi-password-item button {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.multi-password-item button:hover {
    background: var(--secondary-color);
}

/* ==========================================
   Guide Section
   ========================================== */

.guide-section {
    margin-top: 50px;
    padding: 40px 20px;
}

.guide-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.guide-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.guide-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.guide-card p {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.guide-card strong {
    color: var(--primary-color);
}

.tips-box {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(80, 200, 120, 0.05));
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    margin-bottom: 40px;
}

.tips-box h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.tips-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-box ul li {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.tips-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.tips-box ul li:last-child {
    margin-bottom: 0;
}

/* ==========================================
   Strength Guide
   ========================================== */

.strength-guide {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.strength-guide h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.strength-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.strength-example {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid;
}

.strength-example.weak {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.strength-example.fair {
    background: rgba(243, 156, 18, 0.1);
    border-color: #f39c12;
}

.strength-example.good {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

.strength-example.strong {
    background: rgba(39, 174, 96, 0.1);
    border-color: #27ae60;
}

.example-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.strength-example.weak .example-label {
    color: #e74c3c;
}

.strength-example.fair .example-label {
    color: #f39c12;
}

.strength-example.good .example-label {
    color: #3498db;
}

.strength-example.strong .example-label {
    color: #27ae60;
}

.example-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .generator-container {
        padding: 20px;
    }

    .password-output {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .strength-indicator {
        flex-wrap: wrap;
    }

    .strength-bars {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .strength-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 15px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .password-display {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
    }

    .form-section {
        padding: 20px;
    }

    .guide-section h2 {
        font-size: 1.6rem;
    }
}