/* BUTTONS */
.btn {
    background-color: var(--cb-green);
    color: var(--cb-black);
    font-family: 'Roboto Slab';
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: none;
    padding: 0.5rem 1rem;
}

.btn:hover {
    cursor: pointer;
    background-color: hsl(158, 55%, 82%);
}

.btn:active {
    background-color: hsl(158, 55%, 86%);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2em var(--cb-blue);
}

.back-btn::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    padding-right: 10px;
    display: inline-block;
    padding-right: 10px;
    /* Required for transform */
    transition: transform 0.2s ease-in-out;
    /* Smooth animation */
}

.back-btn:hover::before {
    transform: translateX(-3px);
}

.forward-btn::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: inline-block;
    padding-left: 10px;
    /* Required for transform */
    transition: transform 0.2s ease-in-out;
    /* Smooth animation */
}

.forward-btn:hover::after {
    transform: translateX(3px);
}

/* CARDS */
.card {
    background-color: rgb(255, 255, 255, 0.5);
    border-radius: 1rem;
    margin: 0 0.75rem 1.5rem;
    box-shadow: var(--shadow);
}

.sm {
    min-height: 250px;
    min-width: 300px;
    flex: 1 1 300px;
}

.md {
    min-height: 250px;
    min-width: 300px;
    flex: 1 1 400px;
}

.lg {
    min-height: 250px;
    min-width: 300px;
    flex: 1 1 500px;
}

.card img {
    width: 100px;
}

.card-header {
    background-color: rgb(255, 255, 255, 0.6);
    margin: 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    text-align: center;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.card-body {
    display: flex;
    flex-wrap: wrap;
    margin: 10px;
    justify-content: center;
    align-items: center;
    height: 200px;
    text-align: center;
    padding: 0.5rem;
}

/* TABLE */
.table-wrapper {
    overflow-x: auto;
    /* max-width: 300px; */
    max-width: 90vw;
    width: 100%;
    border-radius: 1rem;
}

/* SM: portrait phones, less than 576.98px */
@media (max-width: 576.98px) {
    .table-wrapper {
        /* max-width: 90vw; */
    }
}

/* LG: tablets, greater then 767.99 and less than 991.98px */
@media screen and (min-width: 767.99px) and (max-width: 991.98px) {
    .table-wrapper {
        /* max-width: 800px; */
    }
}


table {
    border-collapse: collapse;
    width: 100%;
    min-width: 100%;
    table-layout: auto;
}

/* border-radius voor tabel */
thead th:first-child {
    border-top-left-radius: 1rem;
}

thead th:last-child {
    border-top-right-radius: 1rem;
}

tbody tr:last-child td:first-child {
    border-bottom-left-radius: 1rem;
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: 1rem;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* .table-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
} */

th,
td {
    border-bottom: 3px solid rgba(255, 255, 255, 0.60);
    border-top: 3px solid rgba(255, 255, 255, 0.60);
    padding: 0.5rem;
    text-align: center;
    /* width: auto; */
    height: 1rem;
    background: rgba(255, 255, 255, 0.50);
    white-space: nowrap;
    /* word-break: break-word; */


}

tr:hover {
    background: rgba(255, 255, 255, 1);
}

tr.clickable:hover {
    cursor: pointer;
}

th {
    background: var(--cb-offwhite);
    border: none;
    font-family: 'Roboto Slab', Arial, Helvetica, sans-serif;
    /* position: sticky; */
    /* top: 0; */
    /* z-index: 1; */
}


/* ACCORDION */
.accordion {
    width: 100%;
    border: none;
    border-radius: 1rem;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion button {
    width: 100%;
    background: var(--cb-offwhite);
    border: none;
    padding: 1rem;
    text-align: left;
    font-family: var(--ff-bold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-radius: 1rem; */
}

.accordion button:hover {
    background: var(--cb-white);
}

.accordion button .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
    transform: rotate(90deg);
}

.accordion button[aria-expanded="true"] .arrow {
    transform: rotate(30deg);
}

.accordion-content {
    max-height: 0;
    /* opacity: 0; */
    transform: translateY(-5px);
    overflow: hidden;
    transition: max-height 0.3s ease,
    padding 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
    background: var(--cb-white);
    padding: 0 2rem;
    display: flex;
    justify-content: start;
    align-items: center;
    font-family: var(--ff-normal);
    /* border-radius: 1rem; */
}

.accordion-content p {
    margin: 1rem 0;
    font-size: 1em;
    line-height: 1.5;
}

.accordion-content.open {
    /* opacity: 1;  */
    transform: translateY(0);
    padding: 2rem;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    width: 100%;
}

form div * {
    margin: 0.5rem 0;
}

form label, div label {
    font-size: var(--fs-h5);
    font-family: 'Roboto Slab', Arial, Helvetica, sans-serif;
    font-weight: bold;
}

form div,
form textarea,
form input {
    border: 0;
    border-radius: 1rem;
    padding: 0.5rem;
    width: 100%;
}

select {
    border: 0;
    border-radius: 1rem;
    padding: 0.5rem;
    width: 100%;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 0.2em var(--cb-blue);
}

#checkbox-fieldset {
    border: 0;
    border-radius: 1rem;
    padding: 1rem;
    background-color: var(--cb-white);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#checkbox-fieldset legend {
    font-family: var(--ff-bold);
    font-size: var(--fs-h5);
    margin-bottom: 1rem;
    background-color: var(--cb-pink);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

#checkbox-fieldset div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem;
    font-family: var(--ff-normal);
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}