.password-generator-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.password-generator-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    color: #fff;
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-title i {
    font-size: 2.8rem;
}

.calculator-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.calculator-badge {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.generator-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.input-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.password-display {
    position: relative;
    margin-bottom: 25px;
}

.password-output {
    width: 100%;
    padding: 16px 60px 16px 16px;
    border: 2px dashed #e8e8e8;
    border-radius: 8px;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    background: #f8f9fa;
    color: #333;
    box-sizing: border-box;
}

.password-output:focus {
    outline: none;
    border-color: #667eea;
}

.copy-btn, .refresh-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #667eea;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn {
    right: 55px;
    background: #6c757d;
}

.copy-btn:hover, .refresh-btn:hover {
    opacity: 0.9;
}

.copy-btn.copied, .refresh-btn.copied {
    background: #52c41a;
}

.settings-section {
    margin-bottom: 25px;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.length-value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.length-slider {
    width: 100%;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
}

.length-presets {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.preset-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.generate-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.result-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-title i {
    color: #667eea;
}

.strength-display {
    min-height: 100px;
    margin-bottom: 25px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    font-size: 0.95rem;
}

.strength-meter {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.strength-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.strength-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.password-length {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.strength-bars {
    display: flex;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.password-history {
    margin-top: 25px;
}

.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.empty-history {
    color: #999;
    text-align: center;
    padding: 20px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-password {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
    letter-spacing: 1px;
}

.history-time {
    font-size: 0.8rem;
    color: #999;
}

.history-copy {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-copy:hover {
    background: #667eea;
    color: #fff;
    border-color: transparent;
}

.history-copy.copied {
    background: #52c41a;
    color: #fff;
}

.quick-presets {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.presets-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.preset-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-card:hover {
    background: linear-gradient(135deg, #f0f0ff 0%, #f5e6ff 100%);
    border-color: #667eea;
    transform: translateY(-3px);
}

.preset-card i {
    font-size: 1.5rem;
    color: #667eea;
}

.preset-card span {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.preset-card small {
    font-size: 0.8rem;
    color: #666;
}

.calculator-guide {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.guide-item {
    text-align: center;
}

.guide-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    color: #fff;
}

.guide-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.guide-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .calculator-title {
        font-size: 1.8rem;
    }

    .generator-main {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .presets-grid {
        grid-template-columns: 1fr;
    }
}