/* Reset some basic elements for consistency */
body, h1, table {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* General body styling */
body {
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    padding: 20px;
}

/* Header styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #34495e;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
}

header button {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

header button:hover {
    background-color: #c0392b;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

table thead {
    background-color: #34495e;
    color: white;
    text-align: left;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
}

table th {
    font-size: 14px;
    font-weight: bold;
}

table tbody tr {
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.3s;
}

table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

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

/* Responsive table */
@media (max-width: 768px) {
    table, table thead, table tbody, table th, table td, table tr {
        display: block;
    }

    table thead {
        display: none;
    }

    table tr {
        margin-bottom: 15px;
    }

    table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }
}
