html,
body {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    scrollbar-gutter: stable both-edges;
    box-sizing: border-box;
}

:root {
    --font-size-base: 1em;
    --color-white: #fff;
    --color-main: #2c2d30;
    --color-main-fade: #2c2d3000;
    --color-secondary: #171717;
    --color-secondary-fade: #17171700;
    --color-button-hover: #242629;
    --color-button-hover-fade: #24262900;
    --color-user-icon: #003366;
    --color-groupings: #9ca6b5;
    --color-gpt-icon: #cc9933;
    --color-black: #1e1e1f;
    --color-user-menu-hover: #383b42;
    --color-text: #f5f9ff;
    --color-secondary-p: #c9ccd1;
    --color-logo: #848484;
    --color-model-name: #ffffff;
    --color-assistant-bg: #3f4042;
    --color-assistant-text: #e1e6ed;
    --color-disclaimer: #d0d2e1;
    --color-border1: #484a4e;
    --color-user-menu-border: #34373a;
    --color-user-menu-selected-border: #4a5562;
    --color-border2: #292d32;
    --color-user-message-border: #2f353d;
    --color-navbar: #2c2d30;
    --color-title: #f5f9ff;
    /* Light mode */
    --color-light-main: #ffffff;
    /* White background */
    --color-light-secondary: #ffffff;
    /* White secondary elements */
    --color-light-button-hover: #e0e0e0;
    --color-light-text: #333333;
    /* Dark text */
    --color-light-assistant-bg: #ffffff;
    --color-light-assistant-text: #333333;
    --color-light-disclaimer: #777777;
    --color-light-border1: #cccccc;
    --color-light-user-menu-border: #bbbbbb;
    --color-light-user-menu-selected-border: #aaaaaa;
    --color-light-shadow: rgba(0, 0, 0, 0.1);
    --light-mode-message-wrapper-background: #f9f9f9;
    --light-mode-message-wrapper-border: #e0e0e0;
    /* Shadow for light mode */
    --color-title-light: #000000;
    --color-light-button-hover-greyer: #d0d0d0;
}

/* ----- Lottie Animation ----- */
#lottie {
    background-color: transparent;
    width: 80%;
    max-width: 600px;
    height: auto;
    display: block;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    text-align: center;
    opacity: 1;
    margin: auto;
    object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {

    html,
    body {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {

    html,
    body {
        font-size: 0.95rem;
        line-height: 1.4;
        overflow-x: hidden;
       
    }
}

/* Responsive Adjustments */
@media (max-width: 660px) {
    #lottie {
        width: 85%;
        margin-top: -200px;
           
        }
}

@media (max-width: 550px) {
    #lottie {
        width: 90%;
        margin-top: -250px;
    }
}

@media (max-width: 500px) {
    #lottie {
        width: 95%;
        margin-top: -270px;
    }
}

/* ----- Navbar ----- */
.navbar {
    background-color: var(--color-navbar);
    font-family: var(--font-family), sans-serif;
    border-bottom: 1px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px;
    transition: background-color 0.3s ease-in-out;
}

.navbar.light-mode {
    background-color: var(--color-light-main);
    border-bottom: 1px solid var(--color-navbar);
}

/* ----- Light Mode Adjustments ----- */
.light-mode {
    background-color: var(--color-light-main);
    color: var(--color-light-text);
}

body.light-mode {
    background-color: var(--color-light-main);
    color: var(--color-light-text);
}

.navbar.light-mode {
    background-color: var(--color-light-main);
}

.light-mode-shadow {
    background-color: var(--color-light-main);
}

.modal.light-mode .modal-content {
    background-color: white;
    box-shadow: 0 4px 6px var(--color-light-shadow);
    color: black;
    border: none;
}

.dropdown-content.light-mode {
    background-color: #ffffff;
}


.welcome-container.light-mode {
    background-color: #ffffff;
    color: black;
}


.document-container.light-mode {
    background-color: #ffffff;
    color: black;
}

/* ----- General Page Styling ----- */
body {
    background: var(--color-main);
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-family: system-ui, sans-serif;
    overflow-x: hidden;
}

/* Links */
a {
    color: #cc9933;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ----- Title Styling ----- */
.title {
    flex-grow: 1;
    text-align: center;
    color: var(--color-title);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

/* Responsive Title Adjustments */
@media (max-width: 768px) {
    .title {
            font-size: 1rem;
        }
}

@media (max-width: 500px) {
    .title {
        font-size: 0.9rem;
    }
}

/* ----- Document List Styles ----- */
li div {
    margin-left: 20px;
}

li p {
    margin: 5px 0;
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 768px) {

    html,
    body {
        font-size: 12px;
        line-height: 1.2;
        overflow-x: hidden;
    }

    .navbar {
        padding: 8px;
    }
}

@media (max-width: 500px) {

    html,
    body {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 1.2rem;
    }
}

.title.light-mode {
    color: var(--color-title-light);
}


button {
    display: flex;
    margin-top: 7.5px;
    justify-content: center;
    font-size: 12px;
    background: inherit;
    color: var(--color-white);
    padding: 0.85rem 1.2rem;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 3;
    border: none;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
    background: var(--color-button-hover-fade);
    transform: scale(1.05);
}

button.light-mode {
    background-color: transparent;
    color: var(--color-light-text);
}

button.light-mode:hover {
    background: var(--color-light-button-hover);
}

@media (max-width: 768px) {
    button {
        font-size: 10px;
        padding: 0.7rem 1rem;
    }

    button:active {
        transform: scale(1);
    }
}

/* ----- Conversations List ----- */
.conversations {
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 5px;
}

.conversations,
.conversations li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.conversations li {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid var(--color-border1);
    transition: background 0.2s ease-in-out;
}

/* List Hover Effect */
.conversations li:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Icons Inside List Items */
.conversations li .fa {
    margin-right: 7px;
}

/* Buttons Inside List */
.conversations li>button {
    width: 100%;
    border: none;
    font-size: 1rem;
    white-space: normal;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active List Item */
.conversations li.active>button {
    background: var(--color-main);
    font-weight: bold;
}

/* Edit Buttons */
.edit-buttons {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.conversations li:hover .edit-buttons {
    display: flex;
}

/* Fade Effect for Active Items */
.fade {
    position: absolute;
    right: 0;
    top: 0;
    background: var(--color-user-icon);
    width: 40px;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--color-secondary-fade) 0%, var(--color-secondary) 50%);
}

.conversations li.active .fade {
    background: linear-gradient(90deg, var(--color-main-fade) 0%, var(--color-main) 50%);
}

.conversations li:hover .fade {
    width: 60px;
    background: linear-gradient(90deg, var(--color-button-hover-fade) 0%, var(--color-button-hover) 30%);
}

.edit-buttons button {
    border: none;
    padding: 0;
    margin: 10px 2px;
    opacity: 0.7;
}

.edit-buttons button:hover {
    background: none;
    opacity: 1;
}

.conversations li.grouping {
    color: var(--color-groupings);
    font-size: 0.85rem;
    font-weight: bold;
    padding-left: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .conversations {
        font-size: 0.95rem;
        padding: 5px;
    }

    .conversations li {
        padding: 8px;
    }

    .conversations li>button {
        font-size: 0.9rem;
    }

    .edit-buttons {
        right: 5px;
    }

    .fade {
        width: 30px;
    }

    .conversations li:hover .fade {
        width: 50px;
    }
}

@media (max-width: 500px) {
    .conversations li {
        padding: 6px;
    }

    .conversations li>button {
        font-size: 0.85rem;
    }
}

/* ----- User Menu ----- */
.user-menu {
    position: relative;
    border-top: 1px solid var(--color-border1);
}

/* User Menu Buttons */
.user-menu button {
    width: 100%;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    text-align: left;
    background: transparent;
    transition: background 0.2s ease-in-out;
}

/* Dots Icon */
.user-menu .dots {
    position: relative;
    top: 12px;
    float: right;
    opacity: 0.7;
}

/* List & Items */
.user-menu>ul,
.user-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Dropdown Menu */
.user-menu>ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    background: var(--color-black);
    border-radius: 10px;
    width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.2s ease;
    transform: translateY(-10px);
    z-index: 999;
}

/* Show Animation */
.user-menu>ul.show-animate {
    display: block;
}

.user-menu>ul.show {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Buttons */
.user-menu li button {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--color-white);
    transition: background 0.2s ease-in-out;
}

/* Hover Effects */
.user-menu li button:hover {
    background: var(--color-user-menu-hover);
}

/* First & Last Button Rounded Corners */
.user-menu li:first-child button {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.user-menu li:last-child button {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top: 1px solid var(--color-user-menu-border);
}

/* ----- Scrollbar Customization ----- */
::-webkit-scrollbar {
    width: 8px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-radius: 5px;
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 5px;
}

/* Scrollbar Thumb */
::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: background 0.3s ease;
}

/* Scrollbar Thumb Hover */
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Hide Scrollbar on Mobile */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
}

/* ----- Main Layout ----- */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
}

/* Ensuring views stack properly */
main .view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 30px;
}

/* ----- Navbar Styling ----- */
.navbar {
    z-index: 100;
    color: var(--color-logo);
    text-align: center;
    font-size: 2em;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--color-navbar);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    transition: background-color 0.3s ease-in-out;
}

/* Responsive Navbar Font */
@media (max-width: 1024px) {
    .navbar {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .navbar {
        font-size: 1.6em;
        padding: 10px;
    }
}

/* ----- Button Container (Top Right) ----- */
.button-container {
    position: absolute;
    margin-right: 10px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
}

/* Dropdown (Top Left) */
.dropdown {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;

}

/* Adjusting Buttons on Smaller Screens */
@media (max-width: 1024px) {
    .button-container {
        gap: 8px;
    }

    .dropdown {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .button-container {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 5px;
        gap: 6px;
    }

    .dropdown {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 5px;
        gap: 6px;
    }
}

/* ----- New Chat Button ----- */
.new-chat .welcome-msg {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.new-chat i {
    margin-right: 8px;
}

/* Responsive Adjustments for New Chat */
@media (max-width: 768px) {
    .new-chat .welcome-msg {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}

@media (max-width: 500px) {
    .new-chat .welcome-msg {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}

/* ----- Dropdown Menu Styling ----- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-user-menu-hover);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 999;
    top: 100%;
    left: 0;
    font-size: 0.9rem;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show Dropdown with Animation */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    border-radius: 8px;
}

/* Scrollbar for Dropdown */
.dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #ddd8d8;
    border-radius: 5px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dropdown Links */
.dropdown-content a {
    color: var(--color-white);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background 0.2s ease-in-out;
}

/* Light Mode Dropdown */
.dropdown-content.light-mode a {
    color: #000000;
}

/* Hover Effects */
.dropdown-content a:hover {
    background-color: var(--color-main);
    border-radius: 5px;
}

.dropdown-content.light-mode a:hover {
    background-color: var(--color-light-button-hover-greyer);
}

/* Dropdown Arrow Rotation */
.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* ----- Modal Styling ----- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* ----- Modal Content - Warning ----- */
.modal-content-warning {
    margin: 10% auto;
    padding: 1.2rem;
    background-color: #fefefe;
    border: 1px solid #ddd;
    width: 75%;
    max-width: 500px;
    text-align: center;
    font-size: 1rem;
    color: #555;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

/* Responsive Warning Modal */
@media (max-width: 768px) {
    .modal-content-warning {
        width: 85%;
        font-size: 0.95rem;
    }
}

/* Light Mode Warning Modal */
.modal-content-warning.light-mode {
    background-color: #ffffff;
    color: #333;
    border-color: #ccc;
}

/* ----- Modal Content - Welcome ----- */
.modal-content-welcome {
    margin: 8% auto;
    padding: 1.2rem;
    background-color: #fefefe;
    border: 1px solid #ddd;
    width: 85%;
    max-width: 800px;
    max-height: 80vh;
    text-align: left;
    font-size: 1rem;
    color: #555;
    overflow-y: auto;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Light Mode for Welcome Modal */
.modal-content-welcome.light-mode {
    background-color: #fff;
    color: #333;
    border-color: #ccc;
}

/* ----- Close Button Styling ----- */
.close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.close:hover {
    color: #666;
}

/* ----- Modal Footer ----- */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 0 0;
}

/* ----- Responsive Modal Adjustments ----- */
@media (max-width: 768px) {

    .modal-content-warning,
    .modal-content-welcome {
        width: 90%;
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {

    .modal-content-warning,
    .modal-content-welcome {
        width: 95%;
        font-size: 0.9rem;
    }
}

/* ----- Button Styles - Friendly & Modern ----- */
.btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background-color: #e7e7e7;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
}

/* Button Hover Effects */
.btn:hover {
    background-color: #dcdcdc;
    transform: scale(1.02);
}

/* Back Button: Soft Grey with Friendly Text */
#backBtn {
    background-color: #f0f0f0;
    color: #555;
}

#backBtn:hover {
    background-color: #e0e0e0;
}

/* Continue Button: Gentle Blue Tone with White Text */
#continueBtn {
    background-color: #4a90e2;
    color: #ffffff;
}

#continueBtn:hover {
    background-color: #4078c0;
}

/* Responsive Buttons */
@media (max-width: 768px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ----- Views Container for Conversations & Documents ----- */
.views-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
    padding: 10px;
}

/* Ensuring active conversation views are scrollable */
.view.conversation-view.active {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Welcome Container - Better Spacing */
.welcome-container {
    text-align: left;
    color: white;
    background-color: var(--color-navbar);
    padding: 10px 100px;
    margin: 0 auto;
    max-width: 100%;
    display: block;
    border-radius: 10px;
}

/* Responsive Welcome Container */
@media (max-width: 1024px) {
    .welcome-container {
        padding: 20px 50px;
    }
}

@media (max-width: 768px) {
    .welcome-container {
        padding: 15px 30px;
    }
}

@media (max-width: 500px) {
    .welcome-container {
        padding: 10px 20px;
    }
}

/* ----- Scrollbar Styling for Conversation & Document Views ----- */
.view.conversation-view.active::-webkit-scrollbar,
.document-container::-webkit-scrollbar {
    width: 10px;
    border-radius: 5px;
}

/* Scrollbar Track */
.view.conversation-view.active::-webkit-scrollbar-track,
.document-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Scrollbar Thumb */
.view.conversation-view.active::-webkit-scrollbar-thumb,
.document-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
    transition: background 0.2s ease-in-out;
}

/* Hover Effect */
.view.conversation-view.active::-webkit-scrollbar-thumb:hover,
.document-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Hide Scrollbar on Mobile */
@media (max-width: 768px) {

    .view.conversation-view.active::-webkit-scrollbar,
    .document-container::-webkit-scrollbar {
        width: 6px;
    }
}

pre {
    position: relative;
    line-height: 1.5;
    border: 1px solid #3e4451;
    border-radius: 6px;
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace !important;
    padding: 16px;
    font-size: 14px;
    color: var(--color-text);
    background-color: #1e1e1e;
    overflow: auto !important;
    overflow-wrap: normal !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 20px auto;
}

/* Light Mode */
.light-mode pre {
    border: none;
    background-color: transparent;
}

/* Styling for Clipboard Icon */
.clipboard-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-gpt-icon);
    color: var(--color-white);
    line-height: 1.5;
    tab-size: 4;
    border: none !important;
    border-radius: 5px !important;
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    box-shadow: none !important;
    background-image: none !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    opacity: 0.4;
}

.clipboard-icon:hover {
    opacity: 1;
    background-color: var(--color-gpt-icon);
}

.light-mode .clipboard-icon {
    background-color: #002244 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    box-shadow: none !important;
    background-image: none !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    opacity: 0.4;
}

.light-mode .clipboard-icon:hover {
    opacity: 1;
}

.language-label {
    position: absolute;
    top: 10px;
    left: 14px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    background-color: var(--color-assistant-bg);
    padding: 0.3rem 0.5rem 0.2rem;
    border-radius: 1rem;
    font-size: 0.8em;
    line-height: 1;
    height: 1.25rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.light-mode .language-label {
    background-color: #2f363c;
    color: var(--color-text);
}

/* Default text color for plain code */
.light-mode .hljs {
    color: var(--color-black);
    background-color: transparent;
    /* Use a variable for consistency */
}

.light-mode .hljs-comment,
.light-mode .hljs-quote {
    color: #6a737d;
    /* Muted gray for comments and quotes */
    font-style: italic;
}

.light-mode .hljs-keyword,
.light-mode .hljs-selector-tag,
.light-mode .hljs-subst {
    color: #d73a49;
    /* Vibrant red for keywords and selectors */
    font-weight: bold;
}

.light-mode .hljs-title,
.light-mode .hljs-section,
.light-mode .hljs-attribute,
.light-mode .hljs-literal {
    color: var(--color-user-icon);
    /* Brighter blue for titles, sections, attributes, literals */
    font-weight: bold;
}

.light-mode .hljs-string,
.light-mode .hljs-bullet,
.light-mode .hljs-symbol,
.light-mode .hljs-addition {
    color: var(--color-black);
    /* Green for strings, bullets, symbols, additions */
}

.light-mode .hljs-number,
.light-mode .hljs-deletion {
    color: var(--color-user-icon);
    /* Blue for numbers and deletions */
}

.light-mode .hljs-type,
.light-mode .hljs-selector-class,
.light-mode .hljs-selector-id,
.light-mode .hljs-selector-attr,
.light-mode .hljs-selector-pseudo {
    color: #6f42c1;
}

.light-mode .hljs-built_in,
.light-mode .hljs-builtin-name,
.light-mode .hljs-variable,
.light-mode .hljs-template-variable {
    color: #e36209;
}

.light-mode .hljs-link {
    color: var(--color-user-icon);
    text-decoration: underline;

}

.light-mode .hljs-meta,
.light-mode .hljs-meta-string {
    color: var(--color-user-icon);
    /* Blue for meta and meta-strings */
}

.light-mode .hljs-strong {
    font-weight: bold;
    /* Bold for strong text */
}

.light-mode .hljs-emphasis {
    font-style: italic;
}

.hljs {
    color: var(--color-text);
}

/* Comments and Quotes */
.hljs-comment,
.hljs-quote {
    color: #5c6370;
    /* Grayish color for comments */
    font-style: italic;
}

/* Keywords, Selector Tags, and Substitutions */
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
    color: #c678dd;
    /* Purple for keywords and selectors */
}

/* Titles, Sections, Attributes, and Literals */
.hljs-title,
.hljs-section,
.hljs-attribute,
.hljs-literal {
    color: #e06c75;
    /* Red for titles and literals */
}

/* Strings, Bullets, Symbols, and Additions */
.hljs-string,
.hljs-bullet,
.hljs-symbol,
.hljs-addition {
    color: #98c379;
    /* Green for strings and additions */
}

/* Numbers and Deletions */
.hljs-number,
.hljs-deletion {
    color: #d19a66;
    /* Orange for numbers and deletions */
}

/* Types and Various Selectors */
.hljs-type,
.hljs-selector-class,
.hljs-selector-id,
.hljs-selector-attr,
.hljs-selector-pseudo {
    color: #e06c75;
    /* Red for types and selectors */
}

/* Built-in Elements, Attributes, Variables, and Template Variables */
.hljs-built_in,
.hljs-attr,
.hljs-variable,
.hljs-template-variable {
    color: #e5c07b;
    /* Yellow for built-ins and variables */
}

/* Links */
.hljs-link {
    color: #61afef;
    /* Blue for links */
    text-decoration: underline;
    /* Underlined links for clarity */
}

/* Emphasis */
.hljs-emphasis {
    font-style: italic;
    /* Italic emphasis */
}

/* Strong Emphasis */
.hljs-strong {
    font-weight: bold;
    /* Bold text for strong emphasis */
}

/* Checkmark Styling */
.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #2ea44f;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    pre {
        font-size: 13px;
        /* Adjust font size for smaller screens */
        padding: 12px;
        /* Reduce padding for compact layout */
    }

    .language-label {
        font-size: 11px;
        /* Adjust label size for smaller screens */
    }

    .clipboard-icon {
        font-size: 18px;
        /* Adjust icon size */
        padding: 6px;
        /* Adjust padding */
    }
}
/* ----- Conversation Starters (Suggestions) ----- */
.conversation-starters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    width:  100%;
    max-width: 950px;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 3;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
}

/* Individual Starter Buttons */
.starter {
    border-radius: 13px;
    border: 1px solid var(--color-border1);
    padding: 12px;
    color: var(--color-white);
    font-family: inherit;
    font-size: 0.9em;
    cursor: pointer;
    flex: 1;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.2) 0 0 20px;
    scroll-snap-align: start;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 300px;
}

.starter.light-mode {
    background-color: white;
    box-shadow: 0 4px 6px var(--color-light-shadow);
    color: black;
    border: none;
}

/* Hover Effects */
.starter:hover {
    background-color: var(--color-main);
}

.starter.light-mode:hover {
    background-color: var(--color-light-button-hover-greyer);
}

/* Responsive Adjustments for Conversation Starters */
@media (max-width: 768px) {
    .conversation-starters {
            display: flex;
            flex-wrap: nowrap;
            justify-content: flex-start;
            align-items: center;
            overflow-x: auto;
            white-space: nowrap;
            scroll-snap-type: x mandatory;
            padding: 0 10px;
        }

    .starter {
        font-size: 0.85em;
        padding: 10px;
        max-width: 250px;
    }
}

/* =========================
   MESSAGE INPUT FORM
   ========================= */
#message-form {
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    padding: 10px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#message-form.light-mode {
    background-color: var(--color-navbar);
}

/* =========================
   MESSAGE INPUT WRAPPER
   ========================= */
.message-wrapper {
    position: relative;
    width: 100%;
    max-height: 40px;
    background-color: var(--color-assistant-bg);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 15px;
    overflow-y: auto;
}

.message-wrapper.light-mode {
    background-color: var(--light-mode-message-wrapper-background);
    border-radius: 25px;
    border: 1px solid var(--light-mode-message-wrapper-border);
    box-shadow: rgba(0, 0, 0, 0.05);
}

/* =========================
   MESSAGE INPUT FIELD
   ========================= */
#message {
    flex-grow: 1;
    width: 95%;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    font-size: 12px;
    color: var(--color-light-main);
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 10px;
}

#message.light-mode {
    color: var(--color-black);
}

#message::placeholder {
    color: var(--color-light-main);
    font-size: 14px;
}

#message.light-mode::placeholder {
    color: var(--color-light-disclaimer);
}

/* =========================
   SEND BUTTON
   ========================= */
.send-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--color-white);
    background-color: var(--color-navbar);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.send-button:hover {
    color: var(--color-tilburgai-yellow);
    transform: scale(1.1);
    background-color: var(--color-button-hover-fade);
}

.send-button.light-mode {
    background-color: lightgray;
    color: var(--color-white);
}

.disclaimer {
    font-size: 12px;
    color: var(--color-light-disclaimer);
    text-align: center;
    margin-top: 10px;
}

.assistant.message {
    background: transparent;
    color: var(--color-assistant-text);
    margin-right: 15%;
    margin-left: 10%;
    font: 13px
}

.assistant.message.light-mode {
    background-color: transparent;
    color: var(--color-black);
}

.assistant p {
    margin: 0.5em 0 0.5em 0;
}

/* === Text User === */
.user.message {
    color: var(--color-light-main);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
    padding: 10px 15px;
    margin-right: 15%;
    margin-left: 15%;
    font-size: 13px;
    background-color: transparent;
    line-height: 1.5rem;
}

.user.message .content {
    background-color: var(--color-assistant-bg);
    border-radius: 10px;
    margin-left: 20%;
    margin-top: 30px;
    padding-bottom: .625rem;
    padding-top: .625rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}


.user.message.light-mode {
    background-color: transparent;
    color: #0d0d0d;
}

.user.message.light-mode .content {
    color: var(--color-black);
    background-color: hsla(0, 0%, 91%, .5);
}

.message {
    display: flex;
    gap: 15px;
    padding: 25px 60px 15px 20px;
    border-bottom: 1px solid var(--color-border2);
    font-size: 13px;
}

.message {
    border-bottom: none;
    line-height: 1.5;
}

.message .content {
    padding-top: 5px;
}

.text {
    text-align: left;
}


/* === Message Icons === */
i.user-icon {
    padding: 4px;
    color: var(--color-white);
    background: var(--color-user-icon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    margin-right: 8px;
    font-style: normal;
    width: 28px;
    height: 28px;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gpt.user-icon {
    background: var(--color-gpt-icon);
}

/* Popup Styling */
.pdf-popup {
    width: 50%;
    height: 80vh;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

/* Additional CSS for small screens */
@media (max-width: 768px) {

    .welcome-container,
    .document-container {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 10px;
    }
}

@media (max-width: 768px) {
    .conversation-starters {
        margin-left: 10px;
        width: 100%;
        max-width: 700px;
        display: flex;
        justify-content: flex-start;
        padding: 0px 45px;
        box-sizing: border-box;
        cursor: pointer;
        z-index: 3;
        overflow-x: auto;
        white-space: nowrap;
        flex-direction: row;
        scroll-snap-type: x mandatory;
    }

    .starter {

        border-radius: 13px;
        border: 1px solid var(--color-user-message-border);
        padding: 17px;
        color: var(--color-white);
        font-family: inherit;
        font-size: 0.8em;
        cursor: pointer;
        flex: 0 0 auto;
        text-align: center;
        margin: 0 5px;
        box-shadow: rgba(0, 0, 0, 0.2) 0 0 45px;
        scroll-snap-align: start;
        max-height: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        width: auto;
        max-width: 100%;
    }

    .starter.light-mode {
        background-color: white;
        box-shadow: 0 4px 6px var(--color-light-shadow);
        color: black;
        border: none;
    }

    /* Style the scrollbar track */
    .conversation-starters::-webkit-scrollbar {
        width: 0px;
        /* Set the width of the scrollbar */
        height: 0px;
        /* Set the height of the scrollbar */
    }

    /* Style the scrollbar thumb (the part that you drag) */
    .conversation-starters::-webkit-scrollbar-thumb {
        background-color: #888;
        /* Change the color of the thumb */
        border-radius: 10px;
        /* Add rounded corners to the thumb */
    }

    /* Style the scrollbar track (the background of the scrollbar) */
    .conversation-starters::-webkit-scrollbar-track {
        background: #f1f1f1;
        /* Change the background of the scrollbar track */
        border-radius: 10px;
        /* Add rounded corners to the track */
    }

    /* Change the color when hovering over the scrollbar thumb */
    .conversation-starters::-webkit-scrollbar-thumb:hover {
        background: #555;
        /* Change the thumb color on hover */
    }

}

@media (max-width: 768px) {
    #message-form {
        padding: 0px 0px 0px 0px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .message {
        padding: 15px 15px 15px 15px;
        gap: 10px;
    }
}

/* ----- Sidebar ----- */
#sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -275px;
    background: var(--color-secondary);
    width: 275px;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
}

.show-sidebar {
    left: 0;
}

.float-top {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
}

#sidebar.hidden {
    left: -275px;
    margin-right: -275px;
}

#sidebar.hidden .hide-sidebar {
    left: 60px;
    transform: translateX(-100%);
    padding: 15px 13px 11px 13px;
}

.sidebar {
    position: fixed;
    left: -275px;
    top: 0;
    bottom: 0;
    width: 275px;
    color: var(--color-text);
    background: var(--color-navbar);
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.sidebar.light-mode {
    color: var(--color-light-text);
    background: #808080;
}

.sidebar button {
    margin-bottom: 10px;
    cursor: pointer;
    justify-content: center;
    font-size: var(--font-size-base);
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    border: none;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    background: inherit;
    color: var(--white);
}

.sidebar.light-mode button {
    color: var(--black)
}

.sidebar button i {
    margin-right: 10px;
    font-size: medium;
    color: var(--white)
}

.sidebar.light-mode button i {
    color: var(--black)
}

.sidebar-close {
    position: absolute;
    font-size: 20px;
    top: 10px;
    right: 10px;
    color: var(--gray-600);
    cursor: pointer;
    margin: 15px;
}
.button-container-small {
    display: none;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    position: relative;
}

.show-sidebar {
    left: 0;
}

.sidebar-toggle {
    display: none;
    margin-left: 10px;
}

.sidebar-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.sidebar-controls button {
    padding: 12px 13px;
}

.hide-sidebar {
    position: relative;
    left: 0;
    top: 0;
    transition: all 0.2s ease-in-out;
    transform: rotate(0deg);
}

@media (max-width: 1230px) {
    .sidebar-toggle {
        display: block;
    }

    .button-container-small {
        display: block;
    }

    .button-container {
        display: none;
    }

    .download {
        margin-top: 40px;
    }

    .button-container-small {
        display: block;
    }
}

/* Accordion styles */
.custom-accordion {
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    max-width: 600px;
}

@media (max-width: 690px) {
    .custom-accordion {
        max-width: 100%;
    }
}

.accordion-item {
    border-bottom: 1px solid #ccc;
    max-width: 600px;
}

.accordion-header {
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    display: flex;
    justify-content: space-between;
    /* Puts the icon on the right */
    align-items: center;
    padding-top: 8px;
    padding-left: 10px;
}

.accordion-header.light-mode {
    background-color: #f1f1f1;
}

.accordion-header:hover {
    background-color: #565252;
}

.accordion-header.light-mode:hover {
    background-color: #ddd;
}

.accordion-content {
    max-height: 0;
    /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    /* No padding when hidden */
}

.accordion-body {
    padding: 10px;
}

.accordion-body video {
    display: block;
}

.accordion-body iframe {
    width: 100%;
    height: 500px;
    /* Set a fixed height */
}

.source-text {
    font-size: 0.8em;
    color: #a19f9f;
}

.source-text.light-mode {
    color: #777;
    background-color: transparent;
}

/* Chevron icon rotation */
.accordion-icon {
    transition: transform 0.3s ease;
    /* Add some space on the right */
    margin-right: 30px;
    margin-bottom: 10px;
}

.accordion-icon.rotate {
    transform: rotate(180deg);
    /* Rotate the icon when accordion is open */
}

/* ----- Centering Search Bar and Filters with Left-Aligned Text ----- */
.search-and-filters {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

/* ----- Search Bar Styling ----- */
#documentSearch {
    text-align: left;
    padding: 12px 15px;
    background-color: var(--color-black);
    border: 1px solid var(--color-white);
    font-size: 14px;
    color: var(--color-assistant-text);
    cursor: pointer;
    width: 80%;
    max-width: 800px;
    border-radius: 25px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Placeholder Color */
#documentSearch::placeholder {
    color: #888888;
}

/* Light Mode Search Bar */
body.light-mode #documentSearch {
    background-color: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

/* Hover and Focus Effects */
#documentSearch:hover,
#documentSearch:focus {
    border-color: var(--color-gpt-icon);
}

/* ----- Filters Section ----- */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Dropdown Styling */
.filters select {
    text-align: left;
    padding: 10px 14px;
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
    font-size: 14px;
    cursor: pointer;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Filter Labels */
.filters label {
    margin-right: 8px;
    color: var(--color-assistant-text);
    font-size: var(--font-size-small);
}

/* Light Mode Filters */
body.light-mode .filters label {
    padding: 8px 12px;
    background-color: transparent;
    font-size: var(--font-size-small);
    color: var(--color-black);
    cursor: pointer;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* Adjust the spacing between filters */
.filters .dropdown {
    margin-right: 12px;
}

/* Dropdown Hover & Focus */
.filters select:hover,
.filters select:focus {
    border-color: var(--color-gpt-icon);
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 1024px) {
    #documentSearch {
        width: 90%;
        font-size: 13px;
    }

    .filters {
        gap: 10px;
    }

    .filters select {
        font-size: 12px;
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    #documentSearch {
        width: 100%;
        font-size: 12px;
        padding: 10px;
    }

    .filters {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .filters select {
        width: 80%;
        text-align: center;
    }
}

@media (max-width: 500px) {
    #documentSearch {
        font-size: 12px;
        padding: 8px;
    }

    .filters select {
        width: 100%;
        padding: 8px 10px;
    }
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    padding: 0;
}

/* Dropdown Button */
.dropdown-toggle {
    padding: 8px 12px;
    background-color: var(--color-black);
    border: 1px solid var(--color-white);
    font-size: var(--font-size-small);
    color: var(--color-assistant-text);
    cursor: pointer;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    min-width: 200px;
    text-align: left;
}

/* Dropdown Arrow */
.dropdown-toggle::after {
    content: '\25BC';
    /* Down arrow */
    float: right;
    margin-left: 8px;
    font-size: 12px;
    color: var(--color-black);
}

/* Dropdown Hover and Focus */
.dropdown-toggle:hover {
    border-color: #AAAAAA;
}

.dropdown-toggle:focus {
    border-color: #888888;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--color-black);
    border: 1px solid var(--color-white);
    min-width: 200px;
    z-index: 1;
    list-style-type: none;
    padding: 0;
    margin: 2px 0 0 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Dropdown Menu Items */
.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: var(--font-size-small);
    color: var(--color-assistant-text);
    transition: background-color 0.2s;
}

.dropdown-menu li:hover,
.dropdown-menu li:focus {
    background-color: #333333;
    outline: none;
}

/* Show Dropdown Menu When Active */
.dropdown.show .dropdown-menu {
    display: block;
}

body.light-mode .dropdown-toggle {
    background-color: transparent;
    color: var(--color-black);
    border-color: var(--color-navbar);
}

body.light-mode .dropdown-toggle::after {
    color: var(--color-black);
}

body.light-mode .dropdown-menu {
    background-color: var(--color-white);
    border-color: var(--color-navbar-black);
}

body.light-mode .dropdown-menu li {
    color: var(--color-black);
}

body.light-mode .dropdown-menu li:hover,
body.light-mode .dropdown-menu li:focus {
    background-color: var(--color-text);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .filters {
        flex-direction: column;
    }

    .dropdown {
        width: 100%;
        margin-bottom: 10px;
    }

    .dropdown-toggle,
    .dropdown-menu {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        border: 1px solid var(--color-white);
    }
}

/* Optional: Adjust Dropdown Widths */
#typeFilterButton {
    min-width: 300px;
}

#subjectFilterButton {
    min-width: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-and-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters {
        width: 100%;
        justify-content: space-between;
    }
}

body.light-mode .floating-back-button {
    color: var(--color-black);
}

/* Adjustments for the Document Container Heading */
/* Document Container */
.document-container {
    margin: 40px auto;
    background-color: var(--color-background);
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.3;
    border-radius: 8px;
    text-align: left;
}

/* Heading */
.document-container h2 {
    text-align: center;
    /* Center the main title */
    font-size: 28px;
    /* Larger font size for the title */
    font-weight: bold;
    /* Emphasize the title */
    margin-bottom: 24px;
    /* Space below the title */
    color: var(--color-text-main);
}

/* Subheadings */
.document-container h3 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 32px;
    /* Space above subheadings */
    margin-bottom: 16px;
    /* Space below subheadings */
    color: var(--color-text-main);
}

/* Paragraphs */
.document-container p {
    color: var(--color-text);
}

/* Links */
.document-container a {
    color: var(--color-accent);
    /* Highlight links */
    text-decoration: underline;
    transition: color 0.3s;
    /* Smooth color change on hover */
}

.document-container a:hover {
    color: var(--color-accent-dark);
    /* Darker on hover */
    text-decoration: none;
    /* Remove underline on hover */
}

/* Lists */
.document-container ul,
.document-container ol {
    padding-left: 40px;
    /* Indent lists */
}


/* Responsive Design */
@media (max-width: 768px) {
    .document-container {
        padding: 20px;
        /* Reduce padding for smaller screens */
        font-size: 14px;
        /* Adjust font size for readability */
    }

    .document-container h2 {
        font-size: 24px;
        /* Reduce title size for smaller screens */
    }

    .document-container h3 {
        font-size: 20px;
        /* Adjust subheading size */
    }
}


/* Documents List */
.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Document Item */
.document-item {
    padding-left: 20px;
    text-indent: -20px;
    margin-bottom: 25px;
}

.document-item:last-child {
    margin-bottom: 0;
}

/* Document Title */
.document-item a {
    display: block;
    font-size: var(--font-size-base);
    color: var(--color-text-main);
    text-decoration: none;
    line-height: 1.6;
}

.document-item a:hover {
    text-decoration: none;
}

.document-item a span {
    margin-left: 5px;
    text-decoration: underline;
}

.document-item a:hover span {
    text-decoration: underline;
}

/* Author and Page Information */
.document-item .author,
.document-item .page {
    font-size: var(--font-size-small);
    color: var(--color-assistant-text);
    margin-left: 20px;
}

/* General Icon Styles */
.material-icons {
    font-size: 24px;
    vertical-align: middle;
    margin-right: var(--spacing-sm);
    text-decoration: none;
    /* Ensure icons are not underlined */
}

/* Icon Colors */
.icon-pdf {
    color: #D32F2F;
    /* Dark Red */
}

.icon-word {
    color: #1976D2;
    /* Dark Blue */
}

.icon-excel {
    color: #388E3C;
    /* Dark Green */
}

.icon-powerpoint {
    color: #E64A19;
    /* Dark Orange */
}

.icon-audio,
.icon-video {
    color: #616161;
    /* Gray */
}

.icon-txt,
.icon-default {
    color: #757575;
    /* Dark Gray */
}

/* Open Book Icon in Heading */
.open-book-icon {
    margin-left: var(--spacing-sm);
    font-size: 28px;
    color: var(--color-accent);
}

/* Light Mode Styles */
.document-container.light-mode {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.document-container.light-mode h2,
.document-container.light-mode .back-documents,
.document-container.light-mode .document-item a,
.document-container.light-mode .document-details p {
    color: var(--color-text-primary);
}

.document-container.light-mode h2 i {
    color: var(--color-text-primary);
}

/* Icon Colors (Light Mode) */
.document-container.light-mode .icon-pdf {
    color: var(--color-black);
}

.document-container.light-mode .icon-word {
    color: #1976D2;
}

.document-container.light-mode .icon-excel {
    color: #388E3C;
}

.document-container.light-mode .icon-powerpoint {
    color: #AF601A;
}

.document-container.light-mode .icon-audio,
.document-container.light-mode .icon-video {
    color: #616161;
}

.document-container.light-mode .icon-txt,
.document-container.light-mode .icon-default {
    color: #757575;
}

/* Responsive Design */
@media (max-width: 768px) {
    .document-container {
        margin: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .document-container h2 {
        font-size: 1.5em;
    }

    .document-item a {
        font-size: var(--font-size-base);
    }

    .back-documents {
        font-size: var(--font-size-base);
    }

    .floating-back-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
/* File Preview Container - Alignment and Spacing Fix */
#file-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: var(--fa-font-regular, 0.8em);
    background-color: transparent;
}

/* File Preview - Adjustments for Better Fit */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #dddddd;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Icon and Details Alignment */
.file-preview .file-icon {
    font-size: 20px;
    color: var(--color-gpt-icon);
    margin-right: 12px;
    /* Spacing between icon and text */
    display: flex;
    align-items: center;
}

.file-preview .file-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* File Name Styling */
.file-preview .file-name {
    font-weight: bold;
    justify-content: center;
    font-size: 1em;
    font-family: "Lato", sans-serif;
    color: var(--color-white);
    margin-bottom: 4px;
}


.file-preview .file-type {
    font-size: 0.85em;
    color: var(--color-white);

}

/* Accessibility and Responsiveness */
@media (max-width: 768px) {
    .file-preview {
        max-width: 90%;
        /* Adjusts width for smaller screens */
        padding: 10px;
        /* Reduces padding for compactness */
    }

    #file-preview-container {
        padding: 10px;
        /* Adjusts container padding for smaller screens */
    }
}

/* Light Mode Styling */
.file-preview.light-mode {
    background-color: #ffffff;
    color: #0c2e67;
    border: 1px solid #dddddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.file-preview.light-mode .file-icon {
    color: #0c2e67;
    /* Icon color in light mode */
}


.file-preview.light-mode .file-name {
    color: #0c2e67;
    /* File name color in light mode */
}

.file-preview.light-mode .file-type {
    color: #777777;
    /* File type color in light mode */
}

.file-preview.light-mode:hover {
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    /* Enhanced shadow in light mode */
    border: 1px solid #0c2e67;
    /* Blue border on hover in light mode */
}

/* Accessibility: Fallback and Responsiveness */
@media (max-width: 768px) {
    .file-preview {
        max-width: 90%;
        /* Adjusted width for smaller screens */
        padding: 10px;
        /* Reduced padding */
    }

    #file-preview-container {
        padding: 10px 30px;
        /* Adjusted container padding */
    }
}

/* Upload Icon in Message Bar */
.upload-icon {
    font-size: 0.8em;
    color: #0c2e67;
    cursor: pointer;
    transition: color 0.3s ease;
}

.upload-icon:hover {
    color: #c6a032;
}

/* Upload Container */
.message-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-cv-button  {
     display: block;
     background: inherit;
     border: 1px solid var(--color-border1);
     border-radius: 13px;
     font-size: 0.8em;
     color: var(--color-white);
     padding: 13px;
     text-align: center;
     cursor: pointer;
     z-index: 3;
 }

body.light-mode .upload-cv-button {
    background-color: white;
    box-shadow: 0 4px 6px var(--color-light-shadow);
    color: black;
    border: none;
 }

/* Tooltip container */
.button-container button {
    position: relative;
}

/* Tooltip styling (only for buttons with data-tooltip) */
.button-container button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -135%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    /* White text */
    border: none;
    /* Remove border */
    padding: 8px 12px;
    /* Add padding for better readability */
    border-radius: 8px;
    /* Smooth rounded corners */
    font-size: 0.9rem;
    /* Adjust font size for a cleaner look */
    opacity: 0;
    /* Hide by default */
    white-space: nowrap;
    /* Prevent line breaks */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* Add subtle shadow for a floating effect */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    /* Smooth fade-in/out */
    pointer-events: none;
    /* Prevent tooltip interaction */
    z-index: 1000;
    /* Ensure tooltip appears above other elements */
}

/* Tooltip visibility on hover */
.button-container button[data-tooltip]:hover::after {
    opacity: 1;
    /* Show tooltip on hover */
    transform: translateX(-50%) translateY(-5px);
    /* Slight lift for tooltip */
}

/* Ensure buttons without data-tooltip are unaffected */
.button-container button:not([data-tooltip])::after {
    display: none;
    /* No tooltip content for buttons without data-tooltip */
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    color: var(--color-text);
    border-top: 1px solid var(--color-text);
    padding: 10px 20px;
    text-align: center;
    z-index: 1000;
}

body.light-mode .fixed-footer {
    color: var(--color-black);
    border-top: 1px solid var(--color-navbar);
}
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo {
    height: 80px;
    margin-right: -40px;
   
}
.main-content {
    margin-bottom: 80px;
    padding: 10px;
}

/* =========================
   MEDIA QUERY FOR SMALLER SCREENS
   ========================= */
@media (max-width: 768px) {
    .fixed-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: transparent;
        color: var(--color-text);
        border-top: 1px solid var(--color-text);
        padding: 10px 20px;
        text-align: center;
        z-index: 1000;
    }

    body.light-mode .fixed-footer {
        color: var(--color-black);
        border-top: 1px solid var(--color-navbar);
    }

    .contact-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .footer-logo {
        height: 80px;
        margin-right: -40px;
    }

    .main-content {
        margin-bottom: 80px;
        padding: 10px;
    }
}