* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 100%;
    background: #F1F1F1;
    min-height: 100vh;
}

/* Utility class to visually disable interaction */
.pointer-events-none {
    pointer-events: none;
}

*, html {
    --primaryGradient: linear-gradient(93.12deg, #162db1 0.52%, #1d20e7 100%);
    --secondaryGradient: linear-gradient(268.91deg, #22099d -2.14%, #1d82e7 99.69%);
    --primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    --secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, 0.1);
    --primary: #321b98;
}

/* CHATBOX
=============== */
.chatbox {
    position: fixed;
    bottom: 30px;
    right: 30px;
}

/* CONTENT IS CLOSE */
.chatbox__support {
    display: flex;
    flex-direction: column;
    background: #eee;
    width: 500px;
    height: 350px;
    z-index: -123456;
    opacity: 0;
    transition: all .5s ease-in-out;
}

/* CONTENT ISOPEN */
.chatbox--active {
    transform: translateY(-40px);
    z-index: 123456;
    opacity: 1;
}

.chatbox--thinking {
    transform: translateY(-40px);
    z-index: 123456;
    opacity: 0.7;
}

/* BUTTON */
.chatbox__button {
    text-align: right;
}

.send__button {
    padding: 6px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}


/* HEADER */
.chatbox__header {
    position: sticky;
    top: 0;
    background: orange;
}

/* MESSAGES */
.chatbox__messages {
    margin-top: auto;
    display: flex;
    overflow-y: scroll;
    flex-direction: column-reverse;
}

.messages__item {
    background: orange;
    max-width: 60.6%;
    width: fit-content;
}

.messages__item--operator {
    margin-left: auto;
}

.messages__item--visitor {
    margin-right: auto;
}

/* FOOTER */
.chatbox__footer {
    position: sticky;
    bottom: 0;
}

.chatbox__support {
    background: #f9f9f9;
    height: 450px;
    width: 500px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* HEADER */
.chatbox__header {
    background: var(--primaryGradient);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: var(--primaryBoxShadow);
}

.chatbox__image--header {
    margin-right: 10px;
}

.chatbox__heading--header {
    font-size: 1.2rem;
    color: white;
}

.chatbox__description--header {
    font-size: .9rem;
    color: white;
}

/* Messages */
.chatbox__messages {
    padding: 0 20px;
}

.messages__item {
    margin-top: 10px;
    background: #E0E0E0;
    padding: 8px 12px;
    max-width: 70%;
}

.messages__item--visitor,
.messages__item--typing {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.messages__item--operator {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background: var(--primary);
    color: white;
}

/* FOOTER */
.chatbox__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    background: var(--secondaryGradient);
    box-shadow: var(--secondaryBoxShadow);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-top: 20px;
}

.chatbox__footer input {
    width: 80%;
    border: none;
    padding: 10px 10px;
    border-radius: 30px;
    text-align: left;
}

.chatbox__send--footer {
    color: white;
}

.chatbox__button button,
.chatbox__button button:focus,
.chatbox__button button:visited {
    padding: 10px;
    background: white;
    border: none;
    outline: none;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
/* DROPBOX
=============== */
.file_input_zone {
    opacity: 1;
}

.file_received {
    display: none;
}

/* markdown_style.css */

.report {
    display: none;
}

.charts {
    display: none;
}

.state {
    display: none;
}

.on {
    display:flex;
}

.report__area {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 2em auto;
    padding: 1em 2em;
    background-color: #e8e8e8; /* Light gray background, similar to your MD preview */
    border: 1px solid #ddd;
    border-radius: 5px;
}

.report__area h1, h2, h3, h4, h5, h6 {
    color: #0056b3; /* A nice blue for headings */
    margin-top: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eee; /* Underline headings */
}

.report__area h1 {
    background-color: #e6ffe6; /* Light green background for H1, similar to your MD preview */
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid #4CAF50; /* Green border for H1 */
    color: #2e7d32; /* Darker green text for H1 */
}

.report__area strong {
    font-weight: bold;
    color: #000; /* Black for strong text */
}

.report__area ul {
    list-style-type: disc;
    margin-left: 20px;
}

.report__area li {
    margin-bottom: 0.5em;
}

/* Optional: to mimic the bold red text of your H3 in the MD preview */
.report__area h3 {
    color: #cc0000; /* Red color for H3 */
}

/*STATE AREA -----------------------------*/

.state__area ul, #myUL {
    list-style-type: none;
    padding-left: 40px;
}
.state__area li {
    padding-top: 5px;padding-bottom: 5px;
}
.state__area #myUL {
    margin: 0;
    padding: 0;
}
.state__area .caret {
    cursor: pointer;
    user-select: none;
    font-family: 'Inconsolata', monospace;
}
.state__area .caret::before {
    content: " \25B6";
    display: inline-block;
    margin-right: 6px;
}
.state__area .caret-down::before {
    transform: rotate(90deg); 
}
.state__area .nested {
    display: none;
}
.state__area .active {
    display: block;
}
.state__area .header {
    text-align: left;
    background: #f1f1f1;
}
.state__area .text-c {
    color:green;
    font-family:'Inconsolata',monospace;
}
.state__area .text-h {
    font-family:'Inconsolata',monospace;
}

/* CHARTS */

.charts h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.charts .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.charts .gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.charts .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.charts .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.charts .gallery-item .description {
    padding: 15px;
    color: #666;
    font-size: 14px;
}

.charts .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.charts .modal.active {
    display: flex;
}

.charts .modal-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
}

.charts .modal-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

.charts .modal-description {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
}

.charts .close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    transition: color 0.2s;
}

.charts .close-btn:hover {
    color: #ccc;
}