/* CSV Table Creator - Frontend Styles */

.csv-table-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.csv-table-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.csv-table-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.csv-table-container {
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.csv-data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.csv-data-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.csv-data-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    user-select: none;
}

.csv-data-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.csv-data-table tbody tr:hover {
    background-color: #f9f9f9;
}

.csv-data-table tbody tr:last-child {
    border-bottom: none;
}

.csv-data-table td {
    padding: 12px 15px;
    color: #555;
    word-break: break-word;
}

/* Pagination */
.csv-table-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    display: flex;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #0073aa;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.page-item.active .page-link {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    cursor: default;
}

.page-item.disabled .page-link {
    color: #bbb;
    cursor: not-allowed;
}

/* Table Info */
.csv-table-info {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 15px;
}

.csv-table-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

/* Search form */
.csv-table-search {
    margin-bottom: 15px;
}

.csv-table-search input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
    max-width: 100%;
    margin-right: 8px;
}

.csv-table-search .button {
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .csv-table-title {
        font-size: 20px;
    }

    .csv-data-table th,
    .csv-data-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 3px;
    }

    .page-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .csv-table-wrapper {
        margin: 10px 0;
    }

    .csv-table-title {
        font-size: 18px;
        margin: 15px 0 8px 0;
    }

    .csv-data-table th,
    .csv-data-table td {
        padding: 8px 5px;
        font-size: 12px;
    }

    .csv-data-table {
        font-size: 11px;
    }
}
