/* JSON List Table Styling for Manipulation Templates */
.json-list-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.9em;
    min-width: 400px;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.json-list-table thead tr {
    background-color: #79aec8;
    color: #ffffff;
    text-align: left;
}

.json-list-table th,
.json-list-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
}

.json-list-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.json-list-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.json-list-table tbody tr:last-of-type {
    border-bottom: 2px solid #79aec8;
}

.json-list-table tbody tr:hover {
    background-color: #e6f3ff;
}

.json-list-table .item-number {
    font-weight: bold;
    text-align: center;
    background-color: rgba(121, 174, 200, 0.1);
    width: 50px;
}

/* Empty state styling */
.empty-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    margin: 1em 0;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.json-fields__wrapper:empty::after {
    content: "No data available";
    display: block;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .json-list-table {
        font-size: 0.8em;
    }
    
    .json-list-table th,
    .json-list-table td {
        padding: 8px 10px;
    }
    
    .json-list-table .item-number {
        width: 30px;
    }
}

/* Handle long text in table cells */
.json-list-table td {
    word-wrap: break-word;
    max-width: 200px;
}

/* Boolean value styling */
.json-list-table td:contains("true"),
.json-list-table td:contains("false") {
    text-transform: capitalize;
    font-weight: 500;
}

/* Null/empty value styling */
.json-list-table td:contains("—") {
    color: #999;
    font-style: italic;
}
