/* CSS Table Builder Frontend Styles */

.css-table-builder-table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.css-table-builder-table th,
.css-table-builder-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.css-table-builder-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.css-table-builder-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.css-table-builder-table tr:hover {
    background-color: #e9ecef;
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.table-responsive .css-table-builder-table {
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .css-table-builder-table {
        font-size: 12px;
    }
    
    .css-table-builder-table th,
    .css-table-builder-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .css-table-builder-table {
        font-size: 11px;
    }
    
    .css-table-builder-table th,
    .css-table-builder-table td {
        padding: 6px;
    }
}

/* Print styles */
@media print {
    .css-table-builder-table {
        border: 1px solid #000 !important;
    }
    
    .css-table-builder-table th,
    .css-table-builder-table td {
        border: 1px solid #000 !important;
        background: transparent !important;
        color: #000 !important;
    }
    
    .css-table-builder-table th {
        background: #f0f0f0 !important;
    }
}
