@import "variables.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.table-container {
    padding: 0 10%;
    margin: 40px auto 0;
}

.heading1 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: rgb(var(--color-sabre) / var(--tw-bg-opacity));
    margin-bottom: 10px;
}

.heading2 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: rgb(var(--color-gray-700) / var(--tw-text-opacity));
    margin-bottom: 10px;
}

.table {
    background-color: rgb(var(--color-sabre) / var(--tw-bg-opacity));
}

.table thead tr th {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.35px;
    color: rgb(var(--color-white) / var(--tw-text-opacity));
    opacity: 1;
    padding: 12px;
    vertical-align: top;
    border: 1px solid rgb(var(--color-border-light) / 0.52);
}

.table tbody tr td {
    font-size: 14px;
    letter-spacing: 0.35px;
    font-weight: normal;
    color: rgb(var(--color-gray-100) / var(--tw-text-opacity));
    background-color: rgb(var(--color-muted) / var(--tw-bg-opacity));
    padding: 8px;
    border: 1px solid rgb(var(--color-border-light) / 0.52);
}

.table .text_open {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.35px;
    color: rgb(var(--color-sabre) / var(--tw-bg-opacity));
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgb(var(--color-backtotop-start) / var(--tw-bg-opacity)), rgb(var(--color-sabre) / var(--tw-bg-opacity)));
    color: white;
    border: none;
    outline: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgb(var(--color-black) / 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgb(var(--color-backtotop-start) / var(--tw-bg-opacity)), rgb(var(--color-sabre) / var(--tw-bg-opacity)));
}

@media (max-width: 768px) {
    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 15px;
    }

    .table tbody tr 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: 600;
        font-size: 14px;
        text-align: left;
    }
}