/* style.css */
/* Styling for the search form */
form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Styling for the domain output table */
.table-wrapper {
    overflow-x: auto;
}

.domain-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    table-layout: fixed;
}

.domain-table th, .domain-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.domain-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.pagination a {
    padding: 6px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a.current {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

/* CSV download styles */
.csv-download {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.csv-download label {
    margin-right: 10px;
}

.csv-download input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
    margin-right: 10px;
}

.csv-download .button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    form {
        flex-direction: column;
    }

    input[type="text"] {
        max-width: none;
        width: 100%;
        margin-bottom: 10px;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .domain-table {
        width: 100%;
        table-layout: auto;
    }

    .domain-table th, .domain-table td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
