*, *::before, *::after {
    box-sizing: border-box;
}

.dashboard {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    background-color: white;
    overflow-x: hidden;
}

.BCAIcon {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}

.dashboard footer {
    color: white;
    background-color: #2C2B2B;
    text-align: left;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    z-index: 999;
    width: 100%;
}

.dashboard footer a {
    color: white;
    text-decoration: none;
}

.dashboard footer .links {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    text-transform: uppercase;
    font-size: 18px;
}

.dashboard footer .copyright {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    row-gap: 15px;
    flex-wrap: wrap;
}

.dashboard footer .copyright p {
    margin: 15px 0 0;
}

.dashboard footer .copyright .socials {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.dashboard footer .upper {
    display: flex;
    flex-direction: row;
    column-gap: 50px;
    row-gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.dashboard footer .upper .links,
.dashboard footer .upper .contact {
    width: 300px;
    max-width: 100%;
    flex: 1 1 240px;
}

.dashboard footer .upper .contact p {
    word-break: break-word;
}

.dashContainer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.tabs {
    position: relative;
    height: auto;
    min-height: 90vh;
    width: 100%;
}

.Nav {
    position: relative;
    width: 100%;
    height: 75px;
    background-color: white;
    border-bottom: 1px solid #D5D5D5;
    z-index: 10003;
    align-items: center;
    display: flex;
    padding-inline: clamp(16px, 3vw, 40px);
}

.sideBtns {
    width: 85%;
    height: 100%;
    text-align: left;
    display: flex;
    column-gap: 50px;
    flex-direction: row;
    padding-block: 8px;
    padding-inline: clamp(16px, 3vw, 40px);
    transition: transform 0.3s ease;
    align-items: center;
}

.sideBtns h2 {
    font-size: clamp(16px, 2.2vw, 24px);
    color: black;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.sideBtns button,
.sideBtns .navLink {
    height: 60px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    color: black;
    cursor: pointer;
    text-align: left;
    display: grid;
    align-items: center;
    padding-block: 10px;
    white-space: nowrap;
}

.logoutBtn {
    grid-template-columns: 35px auto;
    position: relative;
    margin-inline-start: auto;
    color: black;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.divider {
    border-bottom: 1px solid #7C7C7C;
    margin-block: 40px;
    width: 80%;
}

.sideBtns button.active {
    font-weight: bold;
    background-color: #F5F5F5;
}

.hamburger {
    display: none;
    position: absolute;
    top: 22px;
    right: 16px;
    background: transparent;
    border: none;
    z-index: 10002;
    font-size: 26px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    color: #222;
    line-height: 1;
}

.menuBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.menuBackdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Chatbot Styles */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #D6482C;
    color: white;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.chatbot-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-width: calc(100vw - 40px);
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    height: 400px;
}

.chatbot-popup button[type="submit"] {
    font-size: 14px;
    padding: 10px 20px;
    margin-right: 10px;
}

.chatbot-header {
    background: #D6482C;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    max-height: 300px;
}

.chatbot-input {
    display: flex;
    border-top: 1px solid #ccc;
}

.chatbot-input input {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
    width: 100%;
}

.chatbot-input button {
    padding: 8px 12px;
    border: none;
    background: #D6482C;
    color: white;
    cursor: pointer;
}

.message {
    margin-bottom: 10px;
}

.message.user {
    text-align: right;
}

.message.assistant {
    text-align: left;
}


/* ================= RESPONSIVE MEDIA QUERIES ================= */

@media screen and (max-width: 1100px) {
    .sideBtns {
        column-gap: 24px;
        padding-inline: clamp(12px, 2.5vw, 24px);
        padding-block: 6px;
    }

    .logoutBtn {
        margin-inline-start: auto;
    }
.sideBtns button, .sideBtns .navLink {
    height: 60px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    color: black;
    cursor: pointer;
    text-align: left;
    display: grid;
    align-items: center;
    padding-block: 10px;
    white-space: nowrap;
}
    .sideBtns .hor-flex {
        column-gap: 16px;
    }
}

@media screen and (max-width: 800px) {
    .Nav {
        position: sticky;
        top: 0;
        left: 0;
        height: 64px;
        width: 100%;
        padding-inline: 12px;
        padding-block: 0;
    }

    .sideBtns {
        background-color: #fff;
        height: 100vh;
        transform: translateX(-100%);
        display: flex;
        flex-direction: column;
        top: 0;
        left: 0;
        position: fixed;
        justify-content: flex-start;
        width: min(88vw, 340px);
        max-width: 340px;
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.18);
        overflow-y: auto;
        padding-inline: 18px;
        padding-block: 12px;
        z-index: 10001;
        transition: transform 0.28s ease;
        border-right: 1px solid #e5e5e5;
    }

    .sideBtns.open {
        transform: translateX(0);
    }

    .sideBtns .hor-flex {
        flex-direction: column;
        row-gap: 6px;
        width: 100%;
        align-items: stretch;
    }

    .sideBtns .navLink {
        width: 100%;
        padding-inline: 0;
        padding-block: 14px;
        border-radius: 8px;
    }

    .logoutBtn {
        position: relative;
        right: auto;
        width: 100%;
        padding-inline: 0;
        padding-block: 14px;
        border-radius: 8px;
        margin-top: 6px;
    }

    .sideBtns h2 {
        margin-top: 8px;
        margin-bottom: 10px;
        padding-inline: 0;
    }

    .divider {
        margin-block: 16px;
        width: 100%;
        border-bottom: 1px solid #d5d5d5;
    }

    .hamburger {
        display: block;
        top: 18px;
    }

    .createItemBtn {
        visibility: hidden;
    }

    .dashboard footer {
        padding: 24px 16px;
    }

    .dashboard footer .upper {
        flex-direction: column;
        gap: 20px;
    }

    .dashboard footer .upper .links,
    .dashboard footer .upper .contact {
        width: 100%;
        flex: 1 1 auto;
    }

    .dashboard footer .links {
        font-size: 15px;
    }

    .dashboard footer .copyright {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .dashboard footer .copyright .socials {
        margin-top: 10px;
    }
}

/* Extra small mobile screens (iPhone SE, small Androids etc.) */
@media screen and (max-width: 480px) {
    .chatbot-popup {
        width: 100vw;
        max-width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        bottom: 75px;
        height: 360px;
    }

    .chatbot-button {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
