/* Code Beautifier Specific Styles */

/* Language Tabs */
.language-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Code Section */
.code-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

.copy-output-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/* Textareas */
#codeInput,
#codeOutput {
    width: 100%;
    min-height: 300px;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    background: #f8f9fa;
    color: #333;
    transition: border-color 0.3s ease;
}

#codeInput:focus,
#codeOutput:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

#codeOutput {
    background: #f0f4f8;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.beautify-btn,
.clear-btn {
    flex: 1;
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

.clear-btn {
    background: #f44336;
    color: white;
}

.clear-btn:hover {
    background: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 67, 54, 0.4);
}

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

/* Info Section */
.info-section {
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 2rem;
}

.info-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-section ol {
    margin-left: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.info-section ol li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .language-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    #codeInput,
    #codeOutput {
        min-height: 200px;
        font-size: 0.85rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}