* {
    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: 700px;
    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;
}

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

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

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

#minify-btn {
    background-color: #ff9800;
    color: white;
}

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

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

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

#format-btn:hover {
    background-color: #2563eb;
}

#minify-btn:hover {
    background-color: #e68900;
}

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

#copy-btn:hover {
    background-color: #1976d2;
}

#clear-btn:hover {
    background-color: #d32f2f;
}

.editor {
    margin-bottom: 15px;
}

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

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

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

#error-message {
    margin-top: 10px;
    font-size: 14px;
}

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

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

.dark-mode .editor textarea {
    background: #222;
    border-color: #444;
    color: #e0e0e0;
}

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