/* SQL Beautifier Styles */
.sql-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f4f8fb;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.sql-options label {
    font-weight: 600;
    color: #34764c;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.sql-options select {
    padding: 0.5rem 0.8rem;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    background: white;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
    min-height: 36px;
}

.sql-options select:focus {
    border-color: #3d8a59;
    outline: none;
    box-shadow: 0 0 0 2px rgba(61, 138, 89, 0.1);
}

section textarea {
    width: 100%;
    min-height: 300px;
    margin-bottom: 1.5rem;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    resize: vertical;
    background: #f9fafb;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    line-height: 1.5;
}

section textarea:focus {
    border: 2px solid #3d8a59;
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 138, 89, 0.1);
}

.sql-buttons {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sql-buttons button {
    background: #3d8a59;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 2px 6px rgba(61, 138, 89, 0.2);
}

.sql-buttons button:hover {
    background: #347a4d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 138, 89, 0.3);
}

.sql-buttons button.secondary {
    background: #6c757d;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2);
}

.sql-buttons button.secondary:hover {
    background: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#sqlResult {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-x: auto;
    min-height: 200px;
    color: #2d3748;
    margin-bottom: 2rem;
}

#sqlResult.error {
    background: #fef2f2;
    border-color: #f87171;
    color: #dc2626;
}

#sqlResult.success {
    background: #f0f9ff;
    border-color: #60a5fa;
}

.sql-info {
    background: #f8fffe;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.sql-info h3 {
    color: #065f46;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.sql-info h4 {
    color: #047857;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.sql-info p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sql-info ul {
    color: #374151;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.sql-info ul li {
    margin-bottom: 0.5rem;
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.copy-notification.show {
    transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sql-options {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .sql-options label {
        margin-right: 0;
        margin-bottom: 0.3rem;
    }
    
    .sql-buttons {
        flex-direction: column;
    }
    
    .sql-buttons button {
        min-width: 100%;
        flex: none;
    }
    
    section textarea {
        min-height: 250px;
        font-size: 0.95rem;
    }
    
    #sqlResult {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    .sql-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .sql-options {
        padding: 0.8rem;
    }
    
    section textarea {
        min-height: 200px;
        padding: 0.8rem;
    }
    
    .sql-buttons button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    #sqlResult {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}
