* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI', sans-serif;
}

#tool-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0 0 20px;
    color: #333;
    font-size: 20px;
}

.input-section {
    margin-bottom: 15px;
}

.input-section label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.input-section textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.options {
    margin-bottom: 15px;
}

.options label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.options select {
    width: 200px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-group label {
    margin: 0 15px;
    font-size: 14px;
}

.actions {
    margin-bottom: 15px;
}

.actions button {
    margin: 0 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#generate-btn {
    background-color: #3b82f6;
    color: white;
}

#format-json-btn {
    background-color: #f57c00;
    color: white;
}

#minify-json-btn {
    background-color: #7b4397;
    color: white;
}

#validate-btn {
    background-color: #4caf50;
    color: white;
}

#copy-btn {
    background-color: #2196f3;
    color: white;
}

#download-btn {
    background-color: #9e9e9e;
    color: white;
}

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

.result {
    margin-bottom: 15px;
}

.result label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.result textarea {
    width: 100%;
    height: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.copy-actions {
    text-align: center;
    margin-bottom: 15px;
}

.copy-actions button {
    margin: 0 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #f5f5f5;
    font-size: 14px;
}

.dark-mode #tool-wrapper {
    background: #1a1a1a;
}

.dark-mode h1,
.dark-mode label,
.dark-mode p {
    color: #f0f0f0;
}

.dark-mode .input-section textarea,
.dark-mode .result textarea {
    background: #222;
    border-color: #444;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    #tool-wrapper {
        margin: 20px;
    }
}
