body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding: 10px 40px;
}

h1 {
    color: #2c3e50;
}
h2 {
    color: #007bff;
}

p {
    font-size: 1.1rem;
}
label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

textarea, input[type="text"] {
    width: 100%;
    max-width: 800px;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}
.hidden {
    display: none;
}
.original-text {
    border: 2px solid #007bff;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 30px;
    white-space: pre-wrap;
}
.url-meta {
    background-color: #fff;
    border-left: 5px solid #007bff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.tables-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.table-block {
    flex: 1 1 300px;
    min-width: 300px;
    max-width: 100%;
}
table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
th, td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* a, input[type="submit"] {
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
} */

a, input[type="submit"] {
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

a:hover, input[type="submit"]:hover {
    background-color: #5a6268;
}

@media (max-width: 768px) {
    .tables-container {
        flex-direction: column;
    }
}
#spinner {
    display: none;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #007bff;
}
#spinner:not(.hidden) {
    display: block;
}
#toggleContent {
    vertical-align: middle;
    margin-right: 6px;
}