body {
    background-color: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
    }
}

/* LOADER */
.loader {
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(255, 255, 255, 0.8);
}

.spinner {
    width: 40px;
    height: 40px;
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    margin: auto auto;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #333;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: sk-bounce 2s infinite ease-in-out;
    animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

@-webkit-keyframes sk-bounce {
    0%, 100% {
        -webkit-transform: scale(0);
    }
    50% {
        -webkit-transform: scale(1);
    }
}

@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0);
        -webkit-transform: scale(0);
    }
    50% {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}


.table_loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.table_loader span {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #fa6900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.check_list_loader {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #fa6900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.button_loader {
    display: inline-block;
    width: 13px; /* Adjust size */
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.73);
    border-top-color: #fa6900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.users_list td {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.check_list_container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Adds spacing between elements */
    width: 100%; /* Ensure it spans full width */
    padding-top: 50px;
}

.z2.no_chrome_card h1 {
    text-align: center;
}

.check_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: start;
}

.check_list ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 50vw;
    gap: 8px;
}

.check_list li {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    gap: 8px;
}

.check_list li span {
    flex-shrink: 0;
}


@media screen and (max-width: 500px) {
    .check_list_container {
        min-height: 200px;
    }

    .check_list {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .check_list ul {
        max-width: 100%;
    }
}


.actions {
    display: flex;
    gap: 0.8rem;

}

.show_more_button {
    all: unset;
    font-size: 16px;
    cursor: pointer;

    display: inline-block;
    transition: color 0.2s ease-in-out;
}

.show_more_button:hover {

    text-decoration: underline;
}

.show_more_button:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

a[role="button"].z2 {
    cursor: pointer;
    background-color: transparent;
    text-decoration: none;
    border: 2px solid;
    min-width: 40px;
}

button.z2.primary {
    min-width: 62px;
    cursor: pointer;

}

.remove_button {
    all: unset;
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s ease-in-out;
    font-size: 17px;
}

.remove_button:hover {
    color: #fa6900;
}

th {
    text-align: left;
}

form {
    display: flex;
    gap: 1rem;
}


form input[type="email"],
form input[type="text"],
form select {
    border: none;
    border-bottom: 2px solid #505050; /* Light grey underline */
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #505050;
    padding: 5px 0;
    min-width: 200px;
    width: 100%;

}

form input[type="email"].input_error,
form input[type="text"].input_error,
form select.input_error {
    border-bottom: 2px solid #e61a18 !important;

}

.input_error:focus {
    border-bottom: 2px solid #e61a18 !important;
}


form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 2px solid #505050;
    font-size: 16px;
    color: #505050;
    padding: 5px 30px 5px 0;
    min-width: 200px;
    width: 100%;
    position: relative;

}

form input[type="email"]:disabled,
form input[type="text"]:disabled,
form select:disabled {
    color: #8c8c8c;
    border-bottom: 2px solid #959595; /* Light grey underline */
}

/* Wrapper for select to add arrow */
.select-container {
    position: relative;
    display: inline-block;
    width: 100%;
}


.select-container::after {
    font-family: "icomoon";
    content: "\e914";
    font-size: 18px;
    color: #6c6c6c;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Change arrow color when select is focused */
form select:focus + .select-container::after {
    color: #fa6900; /* Change arrow color on focus */
}

/* Style placeholder text */
form input::placeholder {
    color: #919191; /* Light grey placeholder */
}

/* Add underline effect on focus */
form input:focus,
form select:focus {
    border-bottom: 2px solid #fa6900; /* Orange underline on focus */
}

/* Style the button as a simple text link */


.card_content.logo {
    display: flex;
    align-items: center;
    min-width: 100px;

}


.file_upload {
    margin-top: 1rem;
    text-align: center;
    border: 2px dashed #ccc;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file_upload:hover {
    border-color: #fa6900;
}

.file_upload_label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.file_upload_label input[type="file"] {
    display: none; /* Hide the native file input */
}

.add_member_form {
    display: flex;
}

@media screen and (max-width: 1000px) {
    .add_member_form {
        display: grid;
        grid-template-columns: 1fr;
    }

    /*form {*/
    /*    display: grid;*/
    /*    grid-template-columns: 1fr 1fr; !* Two equal columns *!*/
    /*    gap: 15px; !* Space between inputs *!*/
    /*    align-items: center;*/
    /*    justify-content: center;*/
    /*}*/
    input, select, button {
        width: 100%;
    }
}

.logo_zooza {
    width: 250px;
    margin-bottom: 50px;

}


.z2 .checkbox_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--main_padding) * 4);
    margin: 0 auto;
}


@media screen and (max-width: 500px) {

    td {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 20vw
    }

    form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    form input[type="email"],
    form input[type="text"] {
        width: 95%;
    }

    form select {
        width: 100%;
    }

    .select-container {
        width: 95%;
    }

    .select-container::after {
        right: 10px;
    }

}


.error-message {
    color: #a94442;
}


form a {
    background: none;
    border: none;
    color: #fa6900;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 16px;
}

.submit {
    background: none;
    border: none;
    color: #fa6900; /* Orange text */
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 16px;
    margin-top: 15px;
}

form button {
    background: none;
    border: none;
    color: #fa6900; /* Orange text */
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 16px;
}

.file_upload {
    margin-top: 1rem;
    text-align: center;
    border: 2px dashed #ccc;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.file_upload.dragging {
    border-color: #fa6900;
    background-color: rgba(250, 105, 0, 0.1);
}

.file_upload_label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.file_upload_label input[type="file"] {
    display: none;
}

.z2 .checkbox_grid label span {
    min-height: 86px;
    align-content: center;
}

.z2 .app_page_layout .actions {
    justify-content: center;
}

.z2 .app_page_layout .card_content .logo_zooza {
    display: flex;
    justify-content: center;
}

.z2 .app_page_layout .card_content {
    justify-content: center;
}

a[role="link"] {
    background: none;
    border: none;
    color: #fa6900;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 16px;
}

.icon-tick {
    color: white; /* Make icon white */
    font-weight: bold;
    background-color: #00ac00; /* Green background */
    border-radius: 50%; /* Circular shape */
    display: inline-flex; /* Ensure proper spacing */
    justify-content: center;
    align-items: center;
    width: 24px; /* Adjust size */
    height: 24px; /* Adjust size */
    font-size: 11px; /* Adjust icon size */
    margin-bottom: 1px;
}

.icon-clock {
    width: 24px; /* Adjust size */
    height: 24px; /* Adjust size */
    font-size: 21px;
}

.text_lead {
    color: #393939;
}

.divider {
    width: 100%;
    height: 3px; /* Thickness of the line */
    border: none;
    background-image: radial-gradient(circle, #b3b3b3 20%, transparent 20%);
    background-size: 8px 4px; /* (dot spacing width, dot size height) */
    background-repeat: repeat-x; /* Repeat dots horizontally */
}
.row{
    height: 20px;
}
.desktop_th{
    color: #494949;
    font-size: 1.1rem;
}

body.z2 {
    text-align: center;
}

.redirect {
    justify-content: right;
    align-items: start;
}

.start_actions {
    display: flex;
    justify-content: start;
}

.svg_coffee {
    max-width: 150px;

}


table {
    text-align: start;
}


th.actions > form {
    align-self: end;
}


td.remove_button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;

}

.z2 .no_chrome_card .span_4 {
    width: 100%
}

.card_content {


}

th.actions {
    text-align: right;
    display: table-cell;
    width: 130px;
}

th.actions form {
    display: inline-block;
}

.logo img {
    max-height: 350px;
}

@media screen and (max-width: 700px) {
    .logo_zooza {
        display: flex;
        justify-content: center;

    }

    .logo_zooza a {
        min-width: 180px;
    }

    th.actions {
        width: 100%;
    }

    .logo img {
        max-width: 70%;
    }


}

@media screen and (max-width: 700px) {
    .z2 .checkbox_grid {
        display: grid;
        gap: calc(var(--main_padding) * 4);
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    /* Fix card headings and text */
    .z2.no_chrome_card h1,
    .z2.no_chrome_card h2,
    .z2.no_chrome_card h3 {
        color: #ffffff !important;
    }

    .z2.no_chrome_card .text_lead,
    .z2.no_chrome_card .card_header p,
    .z2.no_chrome_card .card_content p,
    .z2.no_chrome_card .card_content h3 {
        color: #d0d0d0 !important;
    }

    /* Fix checklist items */
    .check_list li,
    .check_list ul li {
        color: #e0e0e0 !important;
    }

    /* Loader overlay */
    .loader {
        background-color: rgba(26, 26, 26, 0.9);
    }

    /* Table elements */
    table, th, td {
        color: #e0e0e0 !important;
    }

    td {
        border-color: #404040;
    }

    /* Buttons */
    button.z2.primary {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #e0e0e0;
    }

    button.z2.primary:hover {
        background-color: #3a3a3a;
    }

    /* Links */
    a[role="link"], form a, .submit, form button {
        color: #ff8533 !important;
    }

    /* Remove button */
    .remove_button {
        color: #e0e0e0;
    }

    .remove_button:hover {
        color: #ff8533;
    }

    /* Show more button */
    .show_more_button {
        color: #ff8533;
    }

    .show_more_button:disabled {
        color: #666;
    }

    /* Select dropdown arrow */
    .select-container::after {
        color: #b0b0b0;
    }

    form select:focus + .select-container::after {
        color: #ff8533;
    }

    /* Error message */
    .error-message {
        color: #ff6666;
    }

    /* Checkboxes and labels */
    .z2 .checkbox_grid label {
        color: #e0e0e0 !important;
        border-color: #505050 !important;
    }

    .z2 .checkbox_grid label:hover {
        background-color: #3a3a3a !important;
    }

    .z2 .checkbox_grid label span {
        color: #e0e0e0 !important;
    }

    /* Loaders in dark mode */
    .table_loader span {
        border-color: rgba(255, 255, 255, 0.1);
        border-top-color: #ff8533;
    }

    .check_list_loader {
        border-color: rgba(255, 255, 255, 0.1);
        border-top-color: #ff8533;
    }
}

