#main_title {
    text-align: center;
    color: #00796b;
    padding: 20px;
    letter-spacing: 2px;
    font-weight: 500;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #00796b;
}

/* Flexbox for responsive layout */
.box1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.box1 h2 {
    flex: 1;
}

.box1 button {
    flex: 1;
    text-align: right;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.container {
    margin: 0 auto;
    padding: 10px;
    max-width: 1200px; /* Adjust as needed */
}

h6 {
    text-align: center;
    color: red;
}

a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: black;
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #cc0052;
    transform: scale(1.1);
}

/* Table styles */
table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

td, th {
    padding: 4px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 100px; /* Prevent cells from shrinking */
}

/* Expired and near-expiry styles */
tr.expired td {
    color: white;
    background-color: #ff0024;
    font-weight: bold;
}

tr.near-expiry td {
    color: black;
    background-color: yellow;
    font-weight: bold;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    #main_title {
        padding: 15px;
        font-size: 18px;
    }

    .box1 {
        flex-direction: column;
        text-align: center;
    }

    .box1 h2,
    .box1 button {
        flex: none;
        width: 100%;
        margin: 10px 0;
    }

    .container {
        margin-top: 10px;
        padding: 5px;
    }

    a {
        font-size: 16px;
        padding: 8px 15px;
        margin: 5px 0;
    }

    table {
        font-size: 14px;
    }

    td, th {
        padding: 6px 4px;
    }
}

/* Prevent horizontal overflow */
html, body {
    width: 100%;
    overflow-x: hidden;
}