@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@font-face {
    font-family: 'ccmeanwhile';
    src: url('ccmeanwhile-regular.ttf') format('truetype');
}
html {
    height: 100%;
}

body {
    /* display: block; */
    font-family: 'Poppins', sans-serif;
    background-image: url('bg1.png'), linear-gradient(to right, #290029, #fff2d6);
    background-blend-mode: multiply;
    background-size: cover, cover; /* First value is for the image, second is for the gradient */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-position: center center;
    background-attachment: fixed;
    text-align: center;
    margin: 5px;
}

h1 {
    color: white;
}

/* Style the main content */
main {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px; 
}


form {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.1);
    width: 40%;
    box-sizing: border-box;
}

label, select, textarea, input[type="text"], input[type="submit"] {
    display: block;
    margin-bottom: 20px;
    width: 100%;
}

input[type="text"], textarea, select {
    padding: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(50, 50, 93, 0.11);
    font-size: 16px;
    transition: all 0.3s;
}

input[type="text"]:focus, textarea:focus, select:focus {
    border-color: #a1c4fd;
    box-shadow: 0 0 0 0.2rem rgba(161,196,253,.25);
}

input[type="submit"] {
    background-color: #a1c4fd;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #798bcb;
}

img {
    display: block;
    width: 100%;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
}

.character-dropdown {
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 50px; /* space for the thumbnail */
}

.character-dropdown option {
    background-repeat: no-repeat;
    padding-left: 30px; /* space for the thumbnail */
}

.custom-button {
    background-color: #4CAF50; /* Green background */
    border: none;              /* No border */
    color: white;              /* White text */
    padding: 12px 24px;        /* Padding */
    text-align: center;        /* Centered text */
    text-decoration: none;     /* No underline */
    display: inline-block;     /* Inline-block */
    font-size: 16px;           /* Font size */
    margin: 4px 2px;           /* Margin */
    cursor: pointer;           /* Hand cursor on hover */
    border-radius: 8px;        /* Rounded corners */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

.custom-button:hover {
    background-color: #45a049; /* Darker green on hover */
}

#thumbnail_display {
    display: none;
    margin-top: -20px;
    width: 50%;
}

/* ------------------ NAV ------------------- */


/* Navbar styles */
nav {
    position: fixed; /* Fixed position to stay in view */
    top: 0; /* Start at the top of the page */
    left: 0; /* Align to the left side of the page */
    width: 250px; /* Width of the navbar */
    height: 100%; /* Full height to cover the entire viewport height */
    background-color: #290029; /* A more professional shade of blue */
    overflow-x: hidden; /* Hide horizontal scrollbar */
    overflow-y: auto; /* Allow vertical scrolling if content overflows */
    z-index: 1000; /* Ensures navbar is above other content */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow to lift the navbar off the page */
    transition: width 0.5s; /* Smooth transition for responsive adjustments */
    font-weight: 700; /* Regular font weight for the nav text */
}

/* Navbar link styles */
nav a {
    padding: 15px 20px; /* Ample padding for easy clickability */
    text-decoration: none; /* Remove underline from links */
    font-size: 1rem; /* Standard font size for readability */
    color: #ed8805; /* Text color for readability */
    display: block; /* Display as block to take up full width of navbar */
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out; /* Transition for hover effects */
}

/* Hover effect for navbar links */
nav a:hover {
    background-color: rgb(31, 0, 41); /* Slightly darker shade on hover */
    color: #ed6d05; /* Light grey color for text to indicate hover state */
}

/* Active link style */
nav a.active {
    background-color: rgb(31, 0, 41); /* Even darker shade for active link */
    color: #ed6d05; /* Very light text for high contrast on active link */
}


.navbar-logo img {
    max-width: 100%; /* Ensure the logo is responsive and fits within the navbar */
    height: auto; /* Maintain aspect ratio */
    border: 0px;
}

.navbar-logo {
    display: flex;
    justify-content: center; /* Center the logo */
    padding: 20px; /* Add some padding around the logo */
    border-bottom: 4px solid #ed8805; /* A subtle line to separate the logo from the nav links */
}


.nav-toggle {
    display: none; /* Hidden by default */
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ed8805;
    z-index: 1010; /* Above the navbar */
    width: 100px;
    height: 100px;
}

/* Navbar login button styles */
nav .nav-login {
    position: absolute; /* Position the button independently from other elements */
    bottom: 0; /* Place at the bottom of the navbar */
    left: 0; /* Align to the left edge of the navbar */
    width: 100%; /* Full width within the navbar */
    background-color: #ed6d05; /* A distinct color for the login button */
    color: white; /* Text color for the button */
    text-align: center; /* Center the text */
    padding: 15px 20px; /* Padding for better touch area */
    font-weight: 700; /* Bold text */
    border-top: 4px solid #290029; /* A border top to separate from other links */
    display: block; /* Ensure the link takes up the full width for centering */
    box-sizing: border-box; /* Include padding and borders in the element's width */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}

nav .nav-login:hover {
    background-color: #bf5a00; /* Darker shade on hover */
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        width: 100%; /* Full width */
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease-in-out;
    }
    main {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-left: 0; /* Remove left padding for main content on smaller screens */
    }
    /* Transition the navbar links to a vertical layout */
    nav a {
        text-align: center; /* Center align the text */
        padding: 12px; /* Adjust padding for a tighter layout */
        font-weight: 700; /* Make the nav link text bold */
        font-size: 1rem; /* Keep the font size to 1rem for readability */
    }
}


/* Adjust form and other content for mobile */
@media (max-width: 768px) {
    
    .navbar-logo {
        display: none;
    }
    .nav-toggle {
        display: block;
        right: 0px;
    }
    /* When nav is visible */
    .nav-visible {
        transform: translateX(0); /* Move into view */
    }

    form {
        width: 90%; /* Fit screen width with a little margin */
        margin: 0 auto; /* Center the form */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }

    main {
        /* Stack the elements in a column */
        margin-left: 0px;
        flex-direction: column;
        align-items: flex-start; /* Align items to the start of the flex container */
        gap: 10px; /* Reduced gap */
    }
}

/* ------------------ NAV ------------------- */

/* ------------------ CARDS ------------------- */

.canvas-container {
    width: 100%; /* Make the container full width */
    padding-right: 10px;
    background-color: #ffffff; /* Just an example background color */
    display: flex;
    justify-content: center; /* Center the canvas horizontally */
}

canvas {
    max-width: 100%; /* Ensure the canvas is not larger than its container */
    height: auto; /* Maintain aspect ratio */
    border: 1px solid #000; /* Just an example border */
    border-radius: 10px;
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

#card_color {
    border: 4px solid #ccc; /* Subtle border */
    border-radius: 4px; /* Rounded corners */
    height: 60px; /* Optimal height for interaction */
    width: 250px; /* Square appearance */
    cursor: pointer; /* Cursor indicates clickable area */
    background-color: #fff; /* White background */
    transition: border-color 0.2s ease-in-out; /* Smooth transition for interactions */
    outline: none; /* Removes the default focus outline */
}

#card_color:hover {
    border-color: #88aaff; /* Changes border color on hover */
}

#card_color:focus {
    box-shadow: 0 0 0 3px rgba(136, 170, 255, 0.5); /* Adds a glow effect when focused */
}

/* ------------------ CARDS ------------------- */

#compositeCanvas {
    display: block; /* Remove any default margin/padding */
    max-width: 100%; /* Ensure canvas doesn't overflow the page width */
    overflow: hidden; /* Hide any overflow content */
    width: 1006px; /* Original width */
    max-height: 1022px; /* Original height */
    height: auto; /* Maintain aspect ratio */
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-selected {
    border: 5px solid #00b900; /* Highlight the selected thumbnail with a green border */
}

/* Add any necessary styles for the thumbnails */
.thumbnail {
    cursor: pointer;
    width: 100px; /* Set a fixed width for your thumbnails */
    height: auto; /* Set height to auto to maintain the aspect ratio */
    margin: 5px;
}

/* .tab-container {
    border-bottom: 2px solid #ccc;
} */

.tab-button {
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid #ccc;
    margin-right: 2px; /* Small space between tabs */
    background-color: #ffffff;
    color: #333;
    font-weight: bold;
    border-radius: 10px; /* Larger radius for the top corners */
    position: relative; /* Position relative to allow absolute positioning inside */
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-bottom: 5px; /* Overlap the border of the content area */
}

.tab-button:hover, .tab-button:focus {
    background-color: #e9e9e9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-button:active {
    background-color: #d9d9d9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Active tab styling */
.tab-button.active {
    background-color: #fff; /* Active tab has a white background to match content area */
    color: #333;
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow to lift the tab off the page */
    z-index: 1; /* Ensure the active tab overlaps the inactive ones */
}

.tab-content {
    display: flex;
    flex-wrap: wrap; /* Allows thumbnails to wrap onto the next line */
    justify-content: center;
    align-items: center;    
    gap: 10px; /* Optional: adds space between thumbnails */
}

.bg-display {
    display: none;
}
.bubble-display {
    display: none;
}

.index-iframe {
    width: 100%;
    height: 400px;
    border-radius: 15px; /* Rounded corners */
}

@media (max-width: 768px) {
    .index-iframe {
        width: 100%;
        margin: 0 auto;
}
}

/* LOGIN  */

.login-container {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100%;
    margin: 0 30%;
    align-items: center;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.login-form {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
}

.login-form h2 {
    text-align: center;
}

.login-form input[type="username"],
.login-form input[type="password"] {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #ed8805;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #bd7210;
}

.error-message {
    color: rgb(255, 94, 0);
    background-color: #ffd2c0;
    border: 1px solid rgb(218, 82, 3);
    padding: 10px;
    margin-top: 10px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .login-container {
        margin: 0 30px;
}
}

/* Global container with full height */
.global-container-full-height {
    width: calc(100%); /* Remaining width */
    height: 100vh; /* Full viewport height */
}

/* Global container without a set height */
.global-container {
    width: calc(100%); /* Remaining width */
}

/* Row class */
.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.col .item-specific {
    align-self: flex-start; /* Align this specific item to the top */
}

/* Column classes with margin */
.col-1 { width: 8.33%; box-sizing: border-box; padding: 1rem; }
.col-2 { width: 16.66%; box-sizing: border-box; padding: 1rem; }
.col-3 { width: 25%; box-sizing: border-box; padding: 1rem; }
.col-4 { width: 33.33%; box-sizing: border-box; padding: 1rem; }
.col-5 { width: 41.66%; box-sizing: border-box; padding: 1rem; }
.col-6 { width: 50%; box-sizing: border-box; padding: 1rem; }
.col-7 { width: 58.33%; box-sizing: border-box; padding: 1rem; }
.col-8 { width: 66.66%; box-sizing: border-box; padding: 1rem; }
.col-9 { width: 75%; box-sizing: border-box; padding: 1rem; }
.col-10 { width: 83.33%; box-sizing: border-box; padding: 1rem; }
.col-11 { width: 91.66%; box-sizing: border-box; padding: 1rem; }
.col-12 { width: 100%; box-sizing: border-box; padding: 1rem; }

/* Content box styles */
.box {
    background-color: rgb(31, 0, 41); /* Background color similar to nav hover state */
    color: #ed8805; /* Text color similar to nav link color */
    padding: 20px; /* Ample padding for content separation */
    border-radius: 10px; /* Rounded corners for a smoother look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s ease-in-out; /* Transition for hover effect */
    height: 100%;
}

/* Hover effect for content boxes */
.box:hover {
    transform: translateY(-5px); /* Slight raise effect on hover */
}

/* Box title styles */
.box .box-title {
    font-size: 1.2rem; /* Slightly larger font for titles */
    font-weight: bold; /* Bold font for emphasis */
    margin-bottom: 20px; /* Spacing below the title */
    color: #ed6d05; /* Title color similar to active nav link */
}

/* Box text styles */
.box .box-text {
    margin: 0 30px;
    text-align: left;
    font-size: 0.83rem; /* Standard font size */
    line-height: 1.5; /* Good line height for readability */
    color: #fff4ec
}

@media (max-width: 768px) {
    .global-container {
        margin-left: 0px; /* Offset for the nav */
        width: calc(100%); /* Remaining width */
    }
    
    .col-6 {
        width: 100%; /* Full width on smaller screens */
    }
}

/* ------------------ CHATBOT ------------------- */

:root {
    --ct-link-color: #71b6f9;
    --ct-link-hover-color: #609bd4;
    --ct-border-color: #dee2e6;
    --ct-box-shadow: 0px 0px 35px 0px rgba(154, 161, 171, 0.15);
    --ct-box-shadow-sm: 0 .75rem 6rem rgba(56, 65, 74, 0.03);
    --ct-box-shadow-lg: 0 0 45px 0 rgba(0, 0, 0, 0.12);
    --ct-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    --ct-component-active-color: #fff;
    --ct-component-active-bg: #71b6f9;
    --ct-text-muted: #98a6ad;
    --ct-blockquote-footer-color: #98a6ad;
    --ct-hr-color: #dddddd;
    --ct-mark-bg: #fcf8e3;
    --ct-table-color: #6c757d;
    --ct-table-bg: transparent;
    --ct-table-accent-bg: transparent;
    --ct-table-striped-color: var(--ct-table-color);
    --ct-table-striped-bg: rgba(222, 226, 230, 0.3);
    --ct-table-active-color: var(--ct-table-color);
    --ct-table-active-bg: #dee2e6;
    --ct-table-hover-color: var(--ct-table-color);
    --ct-table-hover-bg: #f8f9fa;
    --ct-table-border-color: var(--ct-border-color);
    --ct-table-group-separator-color: var(--ct-border-color);
    --ct-table-caption-color: var(--ct-text-muted);
    --ct-input-btn-focus-color: rgba(113, 182, 249, 0.85);
    --ct-btn-active-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --ct-btn-link-color: var(--ct-link-color);
    --ct-btn-link-hover-color: var(--ct-link-hover-color);
    --ct-btn-link-disabled-color: #adb5bd;
    --ct-form-text-color: var(--ct-text-muted);
    --ct-input-bg: #fff;
    --ct-input-disabled-bg: #fff;
    --ct-input-color: #6c757d;
    --ct-input-border-color: #ced4da;
    --ct-input-box-shadow: var(--ct-box-shadow-inset);
    --ct-input-focus-bg: var(--ct-input-bg);
    --ct-input-focus-border-color: #b9bfc4;
    --ct-input-focus-color: var(--ct-input-color);
    --ct-input-placeholder-color: #adb5bd;
    --ct-input-plaintext-color: #6c757d;
    --ct-form-check-input-bg: var(--ct-input-bg);
    --ct-form-check-input-border: 1px solid rgba(0, 0, 0, 0.25);
    --ct-form-check-input-checked-color: var(--ct-component-active-color);
    --ct-form-check-input-checked-bg-color: var(--ct-component-active-bg);
    --ct-form-check-input-checked-border-color: var(--ct-form-check-input-checked-bg-color);
    --ct-form-check-input-indeterminate-color: var(--ct-component-active-color);
    --ct-form-check-input-indeterminate-bg-color: var(--ct-component-active-bg);
    --ct-form-check-input-indeterminate-border-color: var(--ct-component-active-bg);
    --ct-form-switch-color: rgba(0, 0, 0, 0.25);
    --ct-input-group-addon-color: var(--ct-input-color);
    --ct-input-group-addon-bg: #f7f7f7;
    --ct-input-group-addon-border-color: var(--ct-input-border-color);
    --ct-form-select-color: var(--ct-input-color);
    --ct-form-select-bg: var(--ct-input-bg);
    --ct-form-select-disabled-color: #98a6ad;
    --ct-form-select-disabled-bg: #f7f7f7;
    --ct-form-select-indicator-color: #343a40;
    --ct-form-range-track-bg: #dee2e6;
    --ct-form-range-track-box-shadow: inset 0 .25rem .25rem rgba(0, 0, 0, 0.1);
    --ct-form-range-thumb-box-shadow: 0 .1rem .25rem rgba(0, 0, 0, 0.1);
    --ct-form-range-thumb-active-bg: #d4e9fd;
    --ct-form-range-thumb-disabled-bg: #adb5bd;
    --ct-form-file-button-color: var(--ct-input-color);
    --ct-form-file-button-bg: #f7f7f7;
    --ct-form-file-button-hover-bg: #ebebeb;
    --ct-nav-link-disabled-color: #98a6ad;
    --ct-nav-tabs-border-color: #dee2e6;
    --ct-nav-tabs-link-hover-border-color: #f7f7f7 #f7f7f7 var(--ct-nav-tabs-border-color);
    --ct-nav-tabs-link-active-color: #6c757d;
    --ct-nav-tabs-link-active-bg: #fff;
    --ct-nav-tabs-link-active-border-color: #dee2e6 #dee2e6 var(--ct-nav-tabs-link-active-bg);
    --ct-navbar-dark-color: rgba(255, 255, 255, 0.55);
    --ct-navbar-dark-hover-color: rgba(255, 255, 255, 0.75);
    --ct-navbar-dark-active-color: #fff;
    --ct-navbar-dark-disabled-color: rgba(255, 255, 255, 0.25);
    --ct-navbar-dark-toggler-border-color: rgba(255, 255, 255, 0.1);
    --ct-navbar-light-color: rgba(0, 0, 0, 0.55);
    --ct-navbar-light-hover-color: rgba(255, 255, 255, 0.7);
    --ct-navbar-light-active-color: rgba(0, 0, 0, 0.9);
    --ct-navbar-light-disabled-color: rgba(0, 0, 0, 0.3);
    --ct-dropdown-color: #6c757d;
    --ct-dropdown-bg: #fff;
    --ct-dropdown-border-color: #f1f2f3;
    --ct-dropdown-divider-bg: #f1f2f3;
    --ct-dropdown-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.175);
    --ct-dropdown-link-color: #323a46;
    --ct-dropdown-link-hover-color: #2d343f;
    --ct-dropdown-link-hover-bg: #f8f9fa;
    --ct-dropdown-link-active-color: #323a46;
    --ct-dropdown-link-active-bg: #f7f7f7;
    --ct-dropdown-link-disabled-color: #98a6ad;
    --ct-dropdown-header-color: #98a6ad;
    --ct-dropdown-dark-color: #dee2e6;
    --ct-dropdown-dark-bg: #343a40;
    --ct-dropdown-dark-border-color: var(--ct-dropdown-border-color);
    --ct-dropdown-dark-divider-bg: var(--ct-dropdown-divider-bg);
    --ct-dropdown-dark-link-color: var(--ct-dropdown-dark-color);
    --ct-dropdown-dark-link-hover-color: #fff;
    --ct-dropdown-dark-link-hover-bg: rgba(255, 255, 255, 0.15);
    --ct-dropdown-dark-link-active-color: var(--ct-dropdown-link-active-color);
    --ct-dropdown-dark-link-active-bg: var(--ct-dropdown-link-active-bg);
    --ct-dropdown-dark-link-disabled-color: #adb5bd;
    --ct-dropdown-dark-header-color: #adb5bd;
    --ct-pagination-color: #323a46;
    --ct-pagination-bg: #fff;
    --ct-pagination-border-color: #dee2e6;
    --ct-pagination-focus-color: var(--ct-link-hover-color);
    --ct-pagination-focus-bg: #f7f7f7;
    --ct-pagination-focus-box-shadow: none;
    --ct-pagination-hover-color: #323a46;
    --ct-pagination-hover-bg: #dee2e6;
    --ct-pagination-hover-border-color: #dee2e6;
    --ct-pagination-disabled-color: #98a6ad;
    --ct-pagination-disabled-bg: #fff;
    --ct-pagination-disabled-border-color: #dee2e6;
    --ct-card-border-color: #f7f7f7;
    --ct-card-cap-bg: #f7f7f7;
    --ct-card-bg: #fffffe;
    --ct-accordion-color: #6c757d;
    --ct-accordion-border-color: rgba(0, 0, 0, 0.125);
    --ct-accordion-button-active-bg: #f1f8fe;
    --ct-accordion-button-active-color: #66a4e0;
    --ct-accordion-button-focus-border-color: var(--ct-input-focus-border-color);
    --ct-accordion-button-focus-box-shadow: none;
    --ct-tooltip-color: #fff;
    --ct-tooltip-bg: #000;
    --ct-popover-bg: #fff;
    --ct-popover-border-color: #dee2e6;
    --ct-popover-header-bg: #f8f9fa;
    --ct-popover-body-color: #6c757d;
    --ct-popover-arrow-color: #fff;
    --ct-popover-arrow-outer-color: #dee2e6;
    --ct-toast-background-color: rgba(255, 255, 255, 0.85);
    --ct-toast-border-color: rgba(0, 0, 0, 0.1);
    --ct-toast-header-color: #98a6ad;
    --ct-toast-header-background-color: rgba(255, 255, 255, 0.85);
    --ct-toast-header-border-color: rgba(0, 0, 0, 0.05);
    --ct-badge-color: #fff;
    --ct-modal-content-bg: #fff;
    --ct-modal-content-box-shadow-xs: 0 .25rem .5rem rgba(0, 0, 0, 0.5);
    --ct-modal-content-box-shadow-sm-up: 0 .5rem 1rem rgba(0, 0, 0, 0.5);
    --ct-modal-backdrop-bg: #323a46;
    --ct-modal-header-border-color: var(--ct-border-color);
    --ct-modal-footer-border-color: var(--ct-border-color);
    --ct-progress-bg: #dee2e6;
    --ct-progress-box-shadow: var(--ct-box-shadow-inset);
    --ct-progress-bar-color: #fff;
    --ct-progress-bar-bg: #71b6f9;
    --ct-list-group-bg: #fff;
    --ct-list-group-border-color: rgba(0, 0, 0, 0.125);
    --ct-list-group-hover-bg: #f8f9fa;
    --ct-list-group-disabled-color: #98a6ad;
    --ct-list-group-disabled-bg: #fff;
    --ct-list-group-action-color: #6c757d;
    --ct-list-group-action-active-color: #6c757d;
    --ct-list-group-action-active-bg: #f7f7f7;
    --ct-thumbnail-bg: #ebeff2;
    --ct-thumbnail-border-color: #dee2e6;
    --ct-thumbnail-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
    --ct-figure-caption-color: #98a6ad;
    --ct-breadcrumb-divider-color: #98a6ad;
    --ct-breadcrumb-active-color: #adb5bd;
    --ct-carousel-control-color: #fff;
    --ct-carousel-indicator-active-bg: #fff;
    --ct-carousel-caption-color: #fff;
    --ct-carousel-dark-indicator-active-bg: #000;
    --ct-carousel-dark-caption-color: #000;
    --ct-btn-close-color: #000;
    --ct-code-color: #ff8acc;
    --ct-kbd-color: #fff;
    --ct-kbd-bg: #323a46;
    --ct-bg-leftbar: #fff;
    --ct-bg-leftbar-dark: #343a40;
    --ct-bg-leftbar-brand: #4a81d4;
    --ct-bg-leftbar-gradient: #5b69bc;
    --ct-left-menu-user-box-border: #f5f5f5;
    --ct-left-menu-dark-user-box-border: rgba(255, 255, 255, 0.2);
    --ct-menu-item-color-dark: #9097a7;
    --ct-menu-item-hover-color-dark: #c8cddc;
    --ct-menu-item-active-color-dark: #fff;
    --ct-menu-item: #6e768e;
    --ct-menu-item-hover: #71b6f9;
    --ct-menu-item-active: #71b6f9;
    --ct-menu-sub-item-active: #71b6f9;
    --ct-hori-menu-item-color: #6e7488;
    --ct-rightbar-bg: #fff;
    --ct-bg-topbar-light: #fff;
    --ct-bg-topbar-dark: #38414a;
    --ct-box-shadow-condensed: 3px 5px 10px 0 rgba(154, 161, 171, .2);
    --ct-page-title-color: #f8f9fa;
    --ct-topbar-search-bg: #e2e6ea;
    --ct-topbar-search-bg-dark: #414b56;
    --ct-footer-bg: #e3e9ed;
    --ct-footer-color: #6c757d;
    --ct-footer-link-hover-color: #636b72;
    --ct-logo-box-background: #fff;
    --ct-auth-bg: #fff;
    --ct-auth-bg-alt: #6658dd;
    --ct-chat-primary-user-bg: #fef5e4;
    --ct-chat-secondary-user-bg: #f1f3fa;
    --ct-card-overlay-bg: rgba(255, 255, 255, 0.8);
    --ct-input-light-bg: #f3f7f9;
    --ct-email-msg-container-bg: white
}

.float-end {
    float: right !important
}

.float-begin {
    float: left !important
}

.d-flex {
    display: flex !important
}

.flex-grow-1 {
    flex-grow: 1 !important
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.mb-1 {
    margin-bottom: .375rem !important
}

.mt-0 {
    margin-top: 0 !important
}

.my-3 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important
}

.p-3 {
    padding: 1.5rem !important
}

.border-top {
    border-top: 1px solid var(--ct-border-color) !important
}

.border-top-0 {
    border-top: 0 !important
}

.width-md {
    min-width: 120px
}

.waves-effect {
    position: relative;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent
}

.waves-effect.waves-light .waves-ripple {
    background: rgba(255, 255, 255, .4);
    background: radial-gradient(rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .3) 40%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .5) 60%, rgba(255, 255, 255, 0) 70%)
}

.waves-effect.waves-classic.waves-light .waves-ripple {
    background: rgba(255, 255, 255, .4)
}

.d-none {
    display: none !important
}

.d-sm-inline-block {
    display: inline-block !important
}

.me-2 {
    margin-right: .75rem !important
}

.btn .mdi:before {
    margin-top: -1px
}

.col-auto {
    flex: 0 0 auto;
    width: auto
}

.chat-card-body {
    flex: 1 1 auto;
    padding: 1.5rem 1.5rem;
    width: 60vw;
}

.chat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--ct-card-bg);
    background-clip: border-box;
    border: 0 solid var(--ct-card-border-color);
    border-radius: .25rem
}

.chat-card {
    box-shadow: var(--ct-box-shadow-sm);
    margin-bottom: 1.5rem
}

.chat-card .chat-card-drop {
    color: #98a6ad;
    font-size: 20px;
    display: inline-block;
    line-height: 1px
}

.form-control {
    display: block;
    width: 100%;
    padding: .45rem .9rem;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ct-input-color);
    background-color: var(--ct-input-bg);
    background-clip: padding-box;
    border: 1px solid var(--ct-input-border-color);
    -webkit-appearance: none;
    appearance: none;
    border-radius: .2rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #6c757d;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .45rem .9rem;
    font-size: .9rem;
    border-radius: .15rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.btn-primary {
    color: #fff;
    background-color: #ed6d05;
    border-color: #ed6d05
}

.btn-primary {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075) rgba(113, 182, 249, .5)
}

.conversation-list li .message-list::after {
    display: block;
    clear: both;
    content: ""
}

#main .message-list {
    display: block;
    padding-left: 0
}

#main .message-list li {
    position: relative;
    display: block;
    height: 50px;
    line-height: 50px;
    cursor: default;
    transition-duration: .3s;
    color: #6c757d
}

#main .message-list li:hover {
    background: #f8f9fa;
    transition-duration: 50ms
}

#main .message-list li .mail-col {
    float: left;
    position: relative
}

#main .message-list li .mail-col-1 {
    width: 400px
}

#main .message-list li .mail-col-1 .checkbox-wrapper-mail,
#main .message-list li .mail-col-1 .dot,
#main .message-list li .mail-col-1 .star-toggle {
    display: block;
    float: left
}

#main .message-list li .mail-col-1 .dot {
    border: 4px solid transparent;
    border-radius: 100px;
    margin: 22px 26px 0;
    height: 0;
    width: 0;
    line-height: 0;
    font-size: 0
}

#main .message-list li .mail-col-1 .checkbox-wrapper-mail {
    margin-top: 15px;
    margin-right: 10px
}

#main .message-list li .mail-col-1 .star-toggle {
    margin-top: 18px;
    font-size: 14px;
    margin-left: 5px
}

#main .message-list li .mail-col-1 .title {
    position: absolute;
    top: 0;
    left: 140px;
    right: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap
}

#main .message-list li .mail-col-2 {
    position: absolute;
    top: 0;
    left: 400px;
    right: 0;
    bottom: 0
}

#main .message-list li .mail-col-2 .date,
#main .message-list li .mail-col-2 .subject {
    position: absolute;
    top: 0
}

#main .message-list li .mail-col-2 .subject {
    left: 0;
    right: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap
}

#main .message-list li .mail-col-2 .date {
    right: 0;
    width: 200px;
    padding-left: 80px
}

#main .message-list li.active,
#main .message-list li.selected {
    background: #f8f9fa;
    transition-duration: 50ms
}

#main .message-list li.active,
#main .message-list li.active:hover {
    box-shadow: inset 3px 0 0 #71b6f9
}

#main .message-list li.unread {
    font-weight: 500;
    color: #343a40
}

#main .message-list li.blue-dot .mail-col-1 .dot {
    border-color: #71b6f9
}

#main .message-list li.orange-dot .mail-col-1 .dot {
    border-color: #f9c851
}

#main .message-list li.green-dot .mail-col-1 .dot {
    border-color: #10c469
}

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

.conversation-list {
    list-style: none;
    padding: 0 15px
}

.conversation-list li {
    margin-bottom: 20px
}

.conversation-list li .conversation-actions {
    float: right;
    display: none
}

.conversation-list li:hover .conversation-actions {
    display: block
}

.conversation-list .chat-avatar {
    float: left;
    text-align: center;
    width: 42px
}

.conversation-list .chat-avatar img {
    border-radius: 100%;
    width: 100%
}

.conversation-list .chat-avatar i {
    font-size: 12px;
    font-style: normal
}

.conversation-list .ctext-wrap {
    background: var(--ct-chat-secondary-user-bg);
    border-radius: 3px;
    display: inline-block;
    padding: 12px;
    position: relative
}

.conversation-list .ctext-wrap i {
    display: block;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    position: relative
}

.conversation-list .ctext-wrap p {
    margin: 0;
    padding-top: 3px
}

.conversation-list .ctext-wrap:after {
    left: -10px;
    top: 0;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-top-color: var(--ct-chat-secondary-user-bg);
    border-width: 6px;
    margin-right: -1px;
    border-right-color: var(--ct-chat-secondary-user-bg)
}

.conversation-list .conversation-text {
    float: left;
    font-size: 15px;
    margin-left: 12px;
    width: 70%;
    text-align: left;
}

.conversation-list .odd .chat-avatar {
    float: right !important
}

.conversation-list .odd .conversation-text {
    float: right !important;
    margin-right: 12px;
    text-align: right;
    width: 70% !important
}

.conversation-list .odd .ctext-wrap {
    background-color: var(--ct-chat-primary-user-bg)
}

.conversation-list .odd .ctext-wrap:after {
    border-color: transparent;
    border-left-color: var(--ct-chat-primary-user-bg);
    border-top-color: var(--ct-chat-primary-user-bg);
    right: -10px !important;
    left: auto
}

.conversation-list .odd .conversation-actions {
    float: left
}

.loader {
    display: inline-block;  
}

.loader-dot {
    width: 8px;
    height: 8px;
    margin: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}


[data-simplebar] {
    position: relative;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start
}

.simplebar-wrapper {
    overflow: hidden;
    width: inherit;
    height: inherit;
    max-width: inherit;
    max-height: inherit
}

.simplebar-mask {
    direction: inherit;
    position: absolute;
    overflow: hidden;
    padding: 0;
    margin: 0;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: auto !important;
    height: auto !important;
    z-index: 0
}

.simplebar-offset {
    direction: inherit !important;
    box-sizing: inherit !important;
    resize: none !important;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 0;
    margin: 0;
    -webkit-overflow-scrolling: touch
}

.simplebar-content-wrapper {
    direction: inherit;
    box-sizing: border-box !important;
    position: relative;
    display: block;
    height: 100%;
    width: auto;
    visibility: visible;
    overflow: auto;
    max-width: 100%;
    max-height: 100%;
    scrollbar-width: none
}

.simplebar-content-wrapper::-webkit-scrollbar,
.simplebar-hide-scrollbar::-webkit-scrollbar {
    display: none
}

.simplebar-content:after,
.simplebar-content:before {
    content: " ";
    display: table
}

.simplebar-placeholder {
    max-height: 100%;
    max-width: 100%;
    width: 100%;
    pointer-events: none
}

.simplebar-height-auto-observer-wrapper {
    box-sizing: inherit !important;
    height: 100%;
    width: 100%;
    max-width: 1px;
    position: relative;
    float: left;
    max-height: 1px;
    overflow: hidden;
    z-index: -1;
    padding: 0;
    margin: 0;
    pointer-events: none;
    flex-grow: inherit;
    flex-shrink: 0;
    flex-basis: 0
}

.simplebar-height-auto-observer {
    box-sizing: inherit;
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 1000%;
    width: 1000%;
    min-height: 1px;
    min-width: 1px;
    overflow: hidden;
    pointer-events: none;
    z-index: -1
}

.simplebar-track {
    z-index: 1;
    position: absolute;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden
}

[data-simplebar].simplebar-dragging .simplebar-content {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none
}

[data-simplebar].simplebar-dragging .simplebar-track {
    pointer-events: all
}

.simplebar-scrollbar {
    position: absolute;
    right: 2px;
    width: 5px;
    min-height: 10px
}

.simplebar-scrollbar:before {
    position: absolute;
    content: "";
    background: var(--ct-menu-item-color-dark);
    border-radius: 7px;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity .2s linear
}

.simplebar-scrollbar.simplebar-visible:before {
    opacity: .5;
    transition: opacity 0s linear
}

.simplebar-track.simplebar-vertical {
    top: 0;
    width: 11px
}

.simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
    top: 2px;
    bottom: 2px
}

.simplebar-track.simplebar-horizontal {
    left: 0;
    height: 11px
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
    height: 100%;
    left: 2px;
    right: 2px
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
    right: auto;
    left: 0;
    top: 2px;
    height: 7px;
    min-height: 0;
    min-width: 10px;
    width: auto
}

[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical {
    right: auto;
    left: 0
}

.hs-dummy-scrollbar-size {
    direction: rtl;
    position: fixed;
    opacity: 0;
    visibility: hidden;
    height: 500px;
    width: 500px;
    overflow-y: hidden;
    overflow-x: scroll
}

.simplebar-hide-scrollbar {
    position: fixed;
    left: 0;
    visibility: hidden;
    overflow-y: scroll;
    scrollbar-width: none
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.chat-row {
    gap: 10px;
    --ct-gutter-x: 1.5rem;
    --ct-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--ct-gutter-y));
    margin-right: calc(-.5 * var(--ct-gutter-x));
    margin-left: calc(-.5 * var(--ct-gutter-x));
}
.chat-col {
    flex: 1 0 0%;
}

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

#main .message-list li .mail-col-1 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 120px;
    width: auto
}

#main .message-list li .mail-col-2 {
    right: 0;
    left: auto;
    width: 120px
}

#main .message-list li .mail-col-2 .date {
    padding-left: 0;
    position: static
}

#main .message-list li .mail-col-2 .subject {
    display: none
}

.chat-card-body {
    width: 100%;
}

}

.folder-button {
    display: inline-block;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-bottom: none; /* Remove border bottom to merge with content area */
    margin-right: 2px; /* Small space between folders */
    background-color: #ffffff;
    color: #333;
    font-weight: bold;
    border-top-left-radius: 5px; /* Larger radius for the top corners */
    border-top-right-radius: 5px;
    position: relative; /* Position relative to allow absolute positioning inside */
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-bottom: -1px; /* Overlap the border of the content area */
}

.folder-button:hover, .folder-button:focus {
    background-color: #e9e9e9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.folder-button:active {
    background-color: #d9d9d9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Active folder styling */
.folder-button.active {
    background-color: #fff; /* Active folder has a white background to match content area */
    color: #333;
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow to lift the folder off the page */
    z-index: 1; /* Ensure the active folder overlaps the inactive ones */
}

.row-2 {
    display: flex;
    align-items: center;
    gap: 10px; /* Adds spacing between elements */
    flex-direction: row;
    width: 100%;
    justify-content: center;
    /* flex-wrap: wrap; */
}

.form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

.form3 {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.1);
    width: 500px;
    box-sizing: border-box;
}

.upload-section {
    margin-top: 20px;
}

#back-btn {
    margin-bottom: 10px;
    padding: 5px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#backButton:hover {
    background-color: #0056b3;
}

.center {
    align-content: center;
    justify-content: center;
}

.thumbnail-image {
    width: 60px;
    height: 60px;
    background-color: #ccc;
    border-radius: 5px;
}
.thumbnail-label {
    margin-top: 10px;
}
.thumbnail-grid {
    display: flex;
    gap: 20px;
}

/* Slider Container */
.slider-container {
    position: relative;
    height: 150px;
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.slider-label {
    margin-bottom: 10px;
    font-size: 12px;
    color: #333;
    text-align: center;
}

.vertical-slider {
    -webkit-appearance: none;
    writing-mode: vertical-lr; /* Correct orientation for modern browsers */
    direction: rtl; /* Ensure the slider values work properly */
    width: 8px;
    height: 100%;
    background-color: #FF5100;
    background: #d4d4d4;
}

.vertical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #FF5100;
    border-radius: 50%;
    cursor: pointer;
}

.vertical-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #FF5100;
    border-radius: 50%;
    cursor: pointer;
}

.vertical-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    background-color: #FF5100;
    border-radius: 50%;
    cursor: pointer;
}

/* Horizontal Slider Container */
.slider-horizontal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

.slider-horizontal-label {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.horizontal-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.horizontal-slider:hover {
    background: #ccc;
}

.horizontal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #FF5100;
    border-radius: 50%;
    cursor: pointer;
}

.horizontal-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #FF5100;
    border-radius: 50%;
    cursor: pointer;
}

.horizontal-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    background-color: #FF5100;
    border-radius: 50%;
    cursor: pointer;
}

/* Joystick Container */
.joystick-container {
    position: relative;
    height: 200px;
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.joystick-label {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.joystick {
    position: relative;
    height: 100px;
    width: 100px;
    background-color: #ddd;
    border: 2px solid #aaa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.joystick-handle {
    position: absolute;
    height: 40px;
    width: 40px;
    background-color: #FF5100;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.1s ease;
}

/* Rotating Knob Styling */
.rotating-knob {
    position: relative;
    width: 100px;
    height: 100px;
    background-color: #ddd;
    border: 2px solid #aaa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.line-through {
    position: absolute;
    width: 80%;
    height: 3px;
    background-color: #FF5100;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: translateX(-50%) translateY(-50%);
}

.rotating-knob:hover {
    background-color: #ccc;
}