.sql-formatter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Arial', sans-serif;
}

.formatter-header {
    text-align: center;
    margin-bottom: 30px;
}

.formatter-header h2 {
    color: #2a3b4c;
    font-size: 28px;
    margin-bottom: 15px;
}

.formatter-header p {
    color: #5a6a7a;
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.formatter-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .formatter-body {
        flex-direction: row;
    }
}

.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.editor-header {
    background-color: #f0f3f7;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-title {
    font-weight: 600;
    color: #2a3b4c;
    font-size: 16px;
}

.editor-controls {
    display: flex;
    gap: 10px;
}

.editor-textarea {
    flex: 1;
    min-height: 300px;
    padding: 15px;
    /* font-family: 'Consolas', monospace; */
    /* font-size: 14px; */
    line-height: 1.5;
    border: none;
    resize: none;
    outline: none;
    background-color: #f9fafc;
}

.output-textarea {
    background-color: #f5f8ff;
}

.formatter-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: #f0f3f7;
    border-radius: 8px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

@media (min-width: 992px) {
    .formatter-controls {
        width: 250px;
    }
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-weight: 600;
    color: #2a3b4c;
    font-size: 14px;
}

.control-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 14px;
}

.control-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-button {
    margin-top: 15px;
    padding: 12px;
    background-color: #4a7bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.format-button:hover {
    background-color: #3a6ae8;
}

.action-button {
    padding: 6px 12px;
    background-color: #f0f3f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #2a3b4c;
    transition: all 0.2s;
}

.action-button:hover {
    background-color: #e0e3e7;
}

.copy-button {
    position: relative;
    padding: 6px 12px;
    background-color: #f0f3f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #2a3b4c;
    transition: all 0.2s;
}

.copy-button:hover {
    background-color: #e0e3e7;
}

.copy-button .icon {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #4caf50;
}

.copy-button.copied .icon {
    display: inline;
}

copy-button.copied .text {
    display: none;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.features-section {
    margin-top: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background-color: #f9fafc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 24px;
    color: #4a7bff;
    margin-bottom: 15px;
}

.feature-title {
    font-weight: 600;
    font-size: 18px;
    color: #2a3b4c;
    margin-bottom: 10px;
}

.feature-description {
    color: #5a6a7a;
    font-size: 14px;
    line-height: 1.5;
}

/* Added toast notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4a7bff;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    animation: slideIn 0.3s, fadeOut 0.5s 2s forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}