/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

h1 {
    text-align: center;
    color: #444;
    margin-bottom: 20px;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

input, select, textarea, button {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

#addProxyRule {
    margin-top: 10px;
    background-color: #28a745;
}

#addProxyRule:hover {
    background-color: #218838;
}

.proxyRule {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.proxyRule label {
    display: inline-block;
    width: auto;
    margin-bottom: 5px;
}

.proxyRule input {
    width: calc(50% - 10px);
    display: inline-block;
}

.removeRule {
    width: auto;
    background-color: #dc3545;
}

.removeRule:hover {
    background-color: #c82333;
}

/* Output Section Styling */
#configOutput {
    margin-top: 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
}

#downloadConfig {
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        width: 95%;
        padding: 10px;
    }

    input, select, textarea, button {
        font-size: 14px;
    }

    h1 {
        font-size: 24px;
    }
}