/* Base Styles */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 1rem;
    color: #333;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #222;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    overflow-x: auto;
    display: block;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background-color: #2c3e50;
    color: white;
}

/* Responsive Table for Small Screens */
@media (max-width: 768px) {
    table {
        border: 0;
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        display: block;
        border-bottom: 2px solid #ddd;
    }

    td {
        display: block;
        text-align: right;
        font-size: 0.9rem;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        padding-right: 1rem;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
}
