/* Container */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.table-container h2 {
    font-size: 1rem;
    padding: 10px 0px;
    font-weight: 500;
    color: var(--text);
}

/* Table */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Header */
.modern-table thead {
    background: var(--primary-grad-100);
    color: var(--text-2);
}

.modern-table th {
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

/* Body */
.modern-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    color: var(--primary);
    ;
}

/* Zebra striping */
.modern-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Hover */
.modern-table tbody tr:hover {
    background: var(--text-color-4);
}

/* Links */
.modern-table a {
    color: var(--primary);
    ;
    text-decoration: none;
}

.modern-table a:hover {
    text-decoration: underline;
}

/* Responsive (Mobile View) */
@media (max-width: 768px) {
    .modern-table thead {
        display: none;
    }

    .modern-table,
    .modern-table tbody,
    .modern-table tr,
    .modern-table td {
        display: block;
        width: 100%;
        background: transparent;
    }

    .modern-table tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }

    .modern-table td {
        text-align: right;
        padding-left: 50%;
        padding: 10px 8px;
        position: relative;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .modern-table td:last-child {
        border-bottom: none;
    }

    .modern-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: 500;
        color: #333;
        text-align: left;
    }
}