/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */

:root {
    --primary-color: #f15b23;
    --secondary-color: #524f26;
    --heading-color: white;
    --button-text-color: white;
    --plain-text-color: black;
    --element-text-color: white;
    --element-background-color: white;
}

body {
    margin: 0;
    min-width: 100vw;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

a {
    text-decoration: none;
    color: inherit;
}

/* Medium devices (desktops, 992px and up) */
@media (max-width: 1050px) {
    .index_page_container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        align-items: center;
        justify-content: flex-start;
        min-height: 100vh;

    }

    .header {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        min-width: 100vw;
        min-height: 10vh;
        background-color: black;
        align-items: center;
        justify-content: flex-start;

    }

    .index_body_container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: center;
        justify-content: center;
        min-width: 100vw;
        min-height: 90vh;
    }

    .index_body {
        display: flex;
        /* min-width: 100vw; */
        width: 100%;
        border: 0;
        min-height: 90vh;
    }
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width:1051px) {
    .dashboard-block {
        background: white;
        border-radius: 20px;
        box-shadow: 0 4px 20px var(--secondary-color);

        padding: 20px;
        margin: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .dashboard-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 15px;
        color: #333;
        text-align: center;
    }

    .chart-container {
        width: 100%;
        height: 100%;
    }

    .dashboard-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.95rem;
        color: #333;
    }

    .dashboard-table th {
        background: var(--primary-color);
        ;
        color: white;
        padding: 10px;
        text-align: left;
    }

    .dashboard-table td {
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    .dashboard-button {
        padding: 6px 12px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        text-decoration: none;
        transition: 0.3s;
    }

    .dashboard-button:hover {
        background-color: var(--primary-color);
    }

    .quick_bar_heading {
        width: 95%;
        height: auto;
        margin-left: -5%;
        margin-bottom: 0.5em;
        font-size: 0.9em;
        font-weight: bolder;
        border-radius: 0;
        background-color: var(--secondary-color);
        padding: 0.3em;
        color: var(--button-text-color);
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease-in-out;
        border-bottom-right-radius: 0.2em;

    }

    .popup_iframe {
        z-index: 9999;
        width: 60vw;
        height: 70vh;
        border: 0px;
        position: absolute;
        top: 4vh;
        max-height: 90vh;
        width: 80vw;
        min-height: 85vh;
        display: none;
        overflow-x: hidden;
    }

    .iframe_close {
        z-index: 99999;
        position: absolute;
        top: 0.5em;
        font-size: 2.5em;
        right: 1.7em;
        display: none;
        color: var(--primary-color);
    }

    .iframe_background {
        z-index: 9998;
        min-width: 91vw;
        position: absolute;
        justify-content: center;
        align-items: center;
        min-height: 99vh;
        background-color: rgba(0, 0, 0, 0.89);
    }

    .index_page_container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        align-items: center;
        justify-content: flex-start;
        min-height: 100vh;

    }

    .header {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        column-gap: 1em;
        border-bottom: 5.5px solid var(--secondary-color);
        min-width: 100vw;
        min-height: 10vh;
        background-color: black;
        align-items: center;
        justify-content: flex-start;
    }

    .index_body_container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: center;
        justify-content: center;
        min-width: 100vw;
        min-height: 88.9vh;
    }

    .index_body {
        display: flex;
        /* min-width: 100vw; */
        width: 100%;
        border: 0;
        min-height: 89vh;
    }

    .logo {
        width: 8em;
    }

    .logo_login {
        width: 15em;
    }


    .logo_container {
        display: flex;
        left: 0px;
        top: 0px;
        background-color: black;
        width: fit-content;
        padding-left: 2em;
        padding-right: 1em;
        height: 10vh;
        border-radius: 20%;
        align-content: center;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    button {
        background-color: var(--primary-color);
        color: white;
        width: 100px;
        height: 50px;
        border-radius: 0.3em;
        border: 0px;
        /* margin-left: 0.5em; */
        /* margin-right: 0.5em; */
        transition: background-color 0.3s;
    }

    button:hover {
        background-color: var(--secondary-color);
    }

    .app_body_container {
        display: flex;
        flex-direction: row;
        min-width: 100vw;
        min-height: 100vh;
        flex-wrap: nowrap;
        align-content: flex-start;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .app_quick_bar {
        display: flex;
        min-width: 7em;
        border-left: 5px solid var(--secondary-color);
        max-width: 7vw;
        background-color: black;
        min-height: 100vh;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
    }

    .app {
        display: flex;
        overflow: auto;
        padding: 0.3em;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
        /* min-width: 90vw; */
        width: 100%;
        overflow: auto;
        min-height: 98vh;
        max-height: 98vh;
    }

    .quick_bar_buttons {
        width: 90%;
        height: auto;
        margin-top: 0.5em;
        margin-bottom: 0.5em;
        font-size: 0.75em;
        background-color: var(--primary-color);
        padding: 0.5em;
        color: var(--button-text-color);
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease-in-out;
    }

    .quick_bar_buttons:hover {
        background-color: var(--primary-color);
    }

    input {
        font-size: 1.25em;
        background-color: var(--element-background-color);
        border: 0px;
        border-radius: 0.1em;
    }

    textarea {
        font-size: 1.25em;
        background-color: var(--element-background-color);
        border: 0px;
        border-radius: 0.1em;
    }

    select {
        font-size: 1.25em;
        background-color: var(--element-background-color);
        border: 0px;
        margin-bottom: 0.5em;
        border-radius: 0.3em;
    }

    label {
        color: var(--element-text-color);
        font-size: 1.5em;
        text-align: center;
        margin-bottom: 0.5em;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgb(0 0 0 / 98%);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .login-box {
        text-align: center;
        background: #fff;
        padding: 2rem;
        border-radius: 10px;
        width: 90%;
        max-width: 350px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        animation: fadeIn 0.4s ease;
    }

    h2 {
        color: var(--heading-color);
    }

    .login-box h2 {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .login-box input {
        width: 100%;
        padding: 10px;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1rem;
    }

    .login-box button {
        width: 100%;
        padding: 10px;
        background: var(--primary-color);
        border: none;
        color: var(--heading-color);
        font-size: 1rem;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .login-box button:hover {
        background: var(--secondary-color);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    table {
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        font-size: 1em;
        border-radius: 1em;
        font-family: Arial, sans-serif;
    }

    th,
    td {
        padding: 10px;
        background-color: #fff;
        border-bottom: 2px solid #ccc;
    }

    th {
        text-align: left;
        background-color: var(--primary-color);
        color: var(--heading-color);

    }

    tr:nth-child(even) {
        background-color: white;
    }


    th,
    td {
        transition: background-color 0.3s ease-in-out;
    }

    .table_container {
        width: 100%;
        overflow: auto;
        height: auto;
        display: flex;
    }

    .table_search_container {
        display: none;
        width: 98%;
        column-gap: 2em;
        height: fit-content;
        padding: 1em;
        background-color: rgb(0 0 0 / 0%);
        row-gap: 1em;
        align-content: center;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1em;
    }
}


/* LOADING OVERLAY */
.table_loading_bg {
    display: flex;
    z-index: 99999;
}

.loading_animation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading_animation_box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.loading_animation_box_item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin: 4px;
    animation: loading_animation 0.8s ease-in-out infinite;
}

/* Add staggered delays */
.loading_animation_box_item:nth-child(1) {
    animation-delay: 0s;
}

.loading_animation_box_item:nth-child(2) {
    animation-delay: 0.2s;
}

.loading_animation_box_item:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading_animation {
    0% {
        transform: scale(0);
        opacity: 0.3;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0.3;
    }
}

/* Defined styles */
form {
    display: block;
}

.column {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.font_size_0_5 {
    font-size: 0.5em;
}

.font_size_0_7 {
    font-size: 0.7em;
}

.font_size_0_8 {
    font-size: 0.8em;
}

.font_size_0_9 {
    font-size: 0.9em;
}

.font_size_1_0 {
    font-size: 1.0em;
}

.font_size_1_1 {
    font-size: 1.1em;
}

.font_size_1_2 {
    font-size: 1.2em;
}

.font_size_1_3 {
    font-size: 1.3em;
}

.font_size_1_4 {
    font-size: 1.4em;
}

.font_size_1_5 {
    font-size: 1.5em;
}

.font_size_1_6 {
    font-size: 1.6em;
}

.font_size_1_7 {
    font-size: 1.7em;
}

.font_size_1_8 {
    font-size: 1.8em;
}

.font_size_1_9 {
    font-size: 1.9em;
}

.font_size_2_0 {
    font-size: 2.0em;
}

.float_right {
    float: right;
}

.float_left {
    float: left;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
}

.overflow {
    flex-wrap: wrap;
}

.center_auto {
    align-items: center;
    align-content: center;
}

i {
    color: var(--element-text-color);
}

.width_100 {
    width: 100%;
}

.width_90 {
    width: 90%;
}

.width_80 {
    width: 80%;
}

.width_70 {
    width: 70%;
}

.width_60 {
    width: 60%;
}

.width_50 {
    width: 50%;
}

.width_40 {
    width: 40%;
}

.width_30 {
    width: 30%;
}

.width_20 {
    width: 20%;
}

.border {
    border: 1px solid var(--primary-color);
}

.qauter_width {
    width: 22%;
}

.half_width {
    width: 44%;
}

.full_width {
    width: 90%;
}

.width_10 {
    width: 10%;
}

.height_100 {
    height: 100%;
}

.height_90 {
    height: 90%;
}

.height_80 {
    height: 80%;
}

.height_70 {
    height: 70%;
}

.height_60 {
    height: 60%;
}

.height_50 {
    height: 50%;
}

.height_40 {
    height: 40%;
}

.height_30 {
    height: 30%;
}

.height_20 {
    height: 20%;
}

.height_10 {
    height: 10%;
}

.height_5 {
    height: 5%;
}

form {
    width: 100%;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;

}

h1 {
    color: #f78c42;
}

.background_1 {
    background-color: var(--secondary-color);
}

.background_2 {
    background-color: var(--primary-color);
}

.background_3 {
    background-color: white;
}

.background_4 {
    background-color: black;
}

.border_radius {
    border-radius: 0.3em;
}

.border_1 {
    border: 1px solid var(--secondary-color);
}

.border_2 {
    border: 1px solid var(--primary-color);
}

.border_3 {
    border: 1px solid black;
}

.border_4 {
    border: 1px solid white;
}

.padding_minmal {
    padding: 0.5em;
}

.padding {
    padding: 1em;
}

.margin_bottom {
    margin-bottom: 1em;
}

.row_gap_1 {
    row-gap: 1em;
}

.row_gap_2 {
    row-gap: 2em;
}

.row_gap_3 {
    row-gap: 3em;
}

.row_gap_4 {
    row-gap: 4em;
}

.column_gap_1 {
    column-gap: 1em;
}

.column_gap_2 {
    column-gap: 2em;
}

.column_gap_3 {
    column-gap: 3em;
}

.column_gap_4 {
    column-gap: 4em;
}

/* END OF DEFINED STYLES */