/* JSON Formatter Plugin Styles */
.json-formatter-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.json-formatter-container h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Input and Output Sections */
.json-input-section,
.json-output-section {
    margin-bottom: 20px;
}

.json-input-section label,
.json-output-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

/* Textarea Styles */
.json-input,
.json-output {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.json-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.json-output {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #495057;
}

/* Format Button */
.format-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-bottom: 20px;
}

.format-button:hover {
    background-color: #005a87;
}

.format-button:active {
    transform: translateY(1px);
}

.format-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Error Message Styling */
.error-message {
    padding: 12px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.error-message.show {
    display: block;
}

/* Success state for output */
.json-output.valid {
    border-color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .json-formatter-container {
        margin: 10px;
        padding: 15px;
    }
    
    .json-formatter-container h3 {
        font-size: 20px;
    }
    
    .json-input,
    .json-output {
        font-size: 12px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .json-formatter-container {
        padding: 10px;
    }
    
    .format-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}