* {
    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: 600px;
    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: #333;
    font-weight: 500;
}

.input-section input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    height: auto;
}

.actions {
    margin-bottom: 15px;
}

.actions button {
    margin: 0 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    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;
}

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

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

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

#remove-all-btn {
    background-color: #6c757d;
    color: white;
}

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

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

#copy-btn:hover {
    background-color: #388e3c;
}

#remove-all-btn:hover {
    background-color: #5b6a7b;
}

.result {
    margin-bottom: 15px;
}

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

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

#params-container {
    margin-top: 10px;
    margin-bottom: 15px;
}

#status-message {
    margin-left: 10px;
    font-size: 14px;
}

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

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

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

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

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