/* WebData UI Frontend Styles */
.webdata-ui-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.webdata-ui-layout-table .webdata-ui-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.webdata-ui-layout-table .webdata-ui-table th,
.webdata-ui-layout-table .webdata-ui-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.webdata-ui-layout-table .webdata-ui-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.webdata-ui-layout-table .webdata-ui-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.webdata-ui-layout-table .webdata-ui-table tbody tr:hover {
    background: #e9ecef;
}

.webdata-ui-pagination {
    margin: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.webdata-ui-pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    background: #fff;
    transition: all 0.2s ease;
}

.webdata-ui-pagination a:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.webdata-ui-pagination a.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
    font-weight: 600;
}

.webdata-ui-error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
}

.webdata-ui-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.webdata-ui-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: webdata-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes webdata-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .webdata-ui-container {
        margin: 15px 0;
    }

    .webdata-ui-layout-table .webdata-ui-table {
        font-size: 14px;
    }

    .webdata-ui-layout-table .webdata-ui-table th,
    .webdata-ui-layout-table .webdata-ui-table td {
        padding: 8px 10px;
    }

    .webdata-ui-pagination {
        flex-wrap: wrap;
        gap: 3px;
    }

    .webdata-ui-pagination a {
        padding: 6px 10px;
        font-size: 14px;
    }
}
