/* Table-related styles */
.result-section {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    max-width: 100%;
}

.result-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.result-table th,
.result-table td {
    text-align: center;
    vertical-align: middle;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.result-table th {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    font-size: 0.95rem;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 2px solid #b02a37;
}

.result-table th:first-child {
    width: 20%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-bottom: 2px solid #004085;
}

.result-table td {
    background-color: #fff;
    color: #212529;
    font-weight: 900;
}

.result-table .status {
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    background-color: #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.result-table .status::before {
    content: '⏳';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #6c757d;
}

.result-table tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.result-table tbody tr:hover {
    background-color: #e2e6ea;
    transform: scale(1.02);
}

.result-table tbody tr td:first-child {
    font-weight: 900;
    color: #dc3545;
    background-color: #f1f3f5;
    border-right: 2px solid #dee2e6;
}

/* Responsive adjustments for table */
@media (max-width: 768px) {
    .result-table {
        font-size: 0.8rem;
    }
    .result-table th {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    .result-table td {
        padding: 0.4rem;
    }
    .result-table .status::before {
        font-size: 0.75rem;
        left: 0.3rem;
    }
}

@media (max-width: 576px) {
    .result-table th, .result-table td {
        font-size: 0.95rem;
        padding: 0.1rem;
    }
    .result-table th:first-child {
        width: 25%;
    }
    .result-table .status::before {
        font-size: 0.7rem;
        left: 0.2rem;
    }
}
