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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

h2 {
    color: #3498db;
    margin: 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.file-upload {
    margin-bottom: 15px;
    display: inline-block;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a89dc;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-upload label:hover {
    background-color: #3b7dd8;
}

.url-input {
    display: inline-block;
    margin-left: 10px;
    margin-bottom: 15px;
}

.url-input input[type="text"] {
    padding: 9px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

.btn-url {
    padding: 10px 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-url:hover {
    background-color: #4cae4c;
}

.file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.config-content {
    margin-top: 20px;
}

.listeners-list {
    margin-bottom: 20px;
}

.listener-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
}

.listener-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.listener-header h3 {
    margin: 0;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.listener-actions {
    margin: 20px 0;
    text-align: center;
}

.btn-add {
    padding: 8px 16px;
    background-color: #5bc0de;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-add:hover {
    background-color: #46b8da;
}

.btn-save, .btn-load, .btn-export, .btn-import {
    padding: 8px 16px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 5px;
}

.btn-save {
    background-color: #f0ad4e;
}

.btn-save:hover {
    background-color: #eea236;
}

.btn-load {
    background-color: #5cb85c;
}

.btn-load:hover {
    background-color: #4cae4c;
}

.btn-export {
    background-color: #337ab7;
}

.btn-export:hover {
    background-color: #286090;
}

.btn-import {
    background-color: #d9534f;
}

.btn-import:hover {
    background-color: #c9302c;
}

.btn-remove {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-remove:hover {
    background-color: #c0392b;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-download {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: #8e44ad;
}

.btn-download:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-download {
        width: 100%;
        margin-bottom: 10px;
    }
}