/* Frontend table styles */
.vtm-table-container {
    margin: 20px 0;
    width: 100%;
}

.vtm-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-size: 14px;
    line-height: 1.5;
}

.vtm-table th,
.vtm-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
}

.vtm-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.vtm-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.vtm-table tr:hover {
    background-color: #e9ecef;
}

/* Download link styles */
.vtm-download-link {
    display: inline-block;
    padding: 4px 12px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.vtm-download-link:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Auto-generated link styles */
.vtm-table a:not(.vtm-download-link) {
    color: #007cba;
    text-decoration: underline;
}

.vtm-table a:not(.vtm-download-link):hover {
    color: #005a87;
    text-decoration: none;
}

/* Responsive design */
.vtm-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .vtm-table {
        font-size: 12px;
    }
    
    .vtm-table th,
    .vtm-table td {
        padding: 8px 10px;
    }
    
    .vtm-download-link {
        padding: 3px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .vtm-table {
        font-size: 11px;
    }
    
    .vtm-table th,
    .vtm-table td {
        padding: 6px 8px;
    }
    
    /* Stack table on very small screens */
    .vtm-table-responsive .vtm-table {
        display: block;
    }
    
    .vtm-table-responsive .vtm-table thead {
        display: none;
    }
    
    .vtm-table-responsive .vtm-table tbody,
    .vtm-table-responsive .vtm-table tr,
    .vtm-table-responsive .vtm-table td {
        display: block;
        width: 100%;
    }
    
    .vtm-table-responsive .vtm-table tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }
    
    .vtm-table-responsive .vtm-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    
    .vtm-table-responsive .vtm-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        white-space: nowrap;
    }
}