/* 
 * Style for the Visa Appointment Table
 */

.visa-table-container {
    width: 100%;
    margin: 20px 0;
    overflow-x: auto; /* Ensures table is scrollable on small screens if needed */
    padding: 0 20px;
    box-sizing: border-box;
}

.visa-appointment-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #ffffff;
}

.visa-appointment-table th,
.visa-appointment-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.visa-appointment-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-top: 2px solid #0073aa;
}

.visa-appointment-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.visa-appointment-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
    .visa-appointment-table thead {
        display: none; /* Hide table headers on mobile */
    }

    .visa-appointment-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 3px rgba(0,0,0,0.05);
    }
    
    .visa-appointment-table td {
        display: block;
        text-align: right; /* Align cell content to the right */
        border-bottom: 1px dotted #ccc;
        position: relative;
        padding-left: 50%; /* Create space for the label */
    }

    .visa-appointment-table td:last-child {
        border-bottom: none;
    }

    /* Use data-label attribute for pseudo-element labels */
    .visa-appointment-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
    }
}
