.trips-heading {
    color: var(--primary-heading-color);
    font-size: 32px;
    font-weight: 600;
}

table#tripsTable {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--primary-white);
}

table#tripsTable thead th {
    color: var(--primary-black);
    font-weight: bold;
    text-align: left;
    padding: 0.75rem;
}

table#tripsTable tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--primary-gray);
    vertical-align: middle;
    color: var(--primary-black);
}

table#tripsTable tbody tr:hover {
    background-color: #f1f1f1;
}

table#tripsTable a,
table#tripsTable button {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

table#tripsTable a:hover,
table#tripsTable button:hover {
    background-color: var(--primary-color-dark);
    color: var(--primary-white);
}

table#tripsTable td a:not(:last-child) {
    margin-right: 0.5rem;
}


/* Modal */


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    position: relative;
    z-index: 10000;
    background-color: var(--primary-color);
    color: var(--primary-white);
    width: 600px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-40px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-content form .input-grid {
    grid-template-columns: repeat(2, 1fr);
}

.modal.show .modal-overlay {
    opacity: 1;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal #closeModalBtn,
#closeEditModalBtn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background-color: var(--primary-white);
    color: var(--primary-color);
    font-size: 18px;
}

.modal h1 {
    text-align: center;
    font-weight: 500;
    font-size: 1.875rem;
    line-height: 2.25rem;
    padding: 22px 0;
}

.admin-form {
    max-height: 80vh;
    overflow-y: scroll;
    padding: 0 30px 30px 30px;
}

.admin-form>*+* {
    margin-top: 1.2rem;
}

.admin-form .grid-input {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form .input-cont {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.admin-form label {
    text-transform: uppercase;
    padding-left: 0.25rem;
}

.admin-form input,
.admin-form textarea {
    background-color: transparent;
    padding: .5rem;
    border: 2px solid rgba(255, 255, 255, 0.637);
    border-radius: .3rem;
    width: 100%;
    color: var(--primary-white);
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
}

.admin-form>button {
    width: 100%;
    background-color: var(--primary-white) !important;
    color: var(--primary-color);
    padding: .75rem 0;
    border-radius: .5rem;
    margin-top: 2rem;
    font-weight: 600 !important;
    font-size: 17px;
}

.admin-table {
    margin: 80px auto 0 auto;
    width: 92%;
}

.admin-table .btns-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.admin-table .openModalBtn {
    background-color: var(--primary-color);
    color: var(--primary-white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 18px;
}

@media (min-width: 768px) {
    .admin-table {
        margin-top: 44px;
        width: 86%;
    }
}

@media (min-width: 1530px) {
    .admin-table {
        width: 1500px;
    }
}


.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.table-scroll::-webkit-scrollbar {
    height: 6px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

#tripsTable {
    min-width: 800px;
}

@media (max-width: 500px) {

    #tripsTable thead th,
    #tripsTable tbody td {
        font-size: 14px;
        padding: 0.5rem;
    }
}

@media (min-width:641px) {
    #tripsTable {
        min-width: 800px;
    }
}


@media (max-width:640px) {

    #tripsTable {
        min-width: 100%;
    }

    .table-scroll {
        overflow-x: hidden;
    }

    #tripsTable thead {
        display: none;
    }

    #tripsTable tbody tr {
        display: block;
        background: #fff;
        margin: 0 0 1rem;
        border: 1px solid var(--primary-gray);
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
        padding: .75rem 1rem;
    }

    #tripsTable tbody td {
        display: flex;
        width: 100%;
        padding: .45rem 0;
        border: none;
        font-size: 14px;
    }

    #tripsTable tbody td::before {
        content: attr(data-label);
        flex: 0 0 120px;
        font-weight: 600;
        color: var(--primary-black);
    }

    #tripsTable tbody td[data-label="Actions"] {
        flex-wrap: wrap;
        gap: .5rem;
    }

    #tripsTable tbody {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
}