/* =========================================
   GLOBAL LAYOUT
   ========================================= */

/* Center main content column and control max width */
#welcome-screen {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1rem;
}


/* =========================================
   LOGO
   ========================================= */
#welcome-screen img.logo {
   width: 300px;
}


.logo {
    width: 300px;          /* <-- change this freely */
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
}


/* =========================================
   MESSAGE COMPOSER (input box area)
   ========================================= */

#message-composer {
    border-radius: 20px;
    padding: 1rem;
}

/* textarea */
#chat-input {
    font-size: 16px;
    min-height: 40px;
}


/* =========================================
   STARTER BUTTONS
   ========================================= */

#starters {
    margin-top: 1rem;
    gap: 0.75rem;
}

/* individual starter button */
#starters button {
    border-radius: 999px;
    padding: 0.6rem 1rem;
}


/* =========================================
   OPTIONAL LAYOUT TWEAKS
   ========================================= */

/* tighten vertical spacing of welcome area */
.welcome-screen {
    gap: 1rem;
}

/* smooth fade-in (optional aesthetic) */
.welcome-screen {
    transition: opacity 0.3s ease;
}


/* =========================================
   MOBILE ADJUSTMENTS
   ========================================= */

@media (max-width: 640px) {

    .logo {
        width: 300px;
    }

    #welcome-screen {
        padding: 0.5rem;
    }
}

#readme-button {
  display: none !important;
}

html,
body,
#root {
    background-color: #FAF9F5 !important;
}

.MuiBox-root,
.MuiPaper-root {
    background-color: #FAF9F5 !important;
}


#chat-submit {
    background-color: #FAF9F5 !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
}

#new-chat-button {
    display: none !important;
}

button {
    background-color: #FAF9F5 !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

button:hover,
#chat-submit:hover {
    background-color: #f3f1ea !important;
    border-color: rgba(15, 23, 42, 0.22) !important;
}

table {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

th,
td {
    background-color: #ffffff !important;
}

.js-plotly-plot,
.plotly,
.plot-container,
.svg-container {
    border-radius: 20px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
}

.prose a,
.markdown a,
[data-step-type="assistant_message"] a,
[class*="message"] a {
    color: #1B81C4 !important;
}

.prose a:hover,
.markdown a:hover,
[data-step-type="assistant_message"] a:hover,
[class*="message"] a:hover {
    color: #166da6 !important;
}

#energy-atlas-signin-link.energy-atlas-signin-link {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
}

#energy-atlas-signin-link.energy-atlas-signin-link:hover {
    text-decoration: underline;
}

/* Hide Chainlit's built-in copy button on assistant messages */
[id^="copy-message"],
button[aria-label*="Copy"],
button[title*="Copy"],
button:has(svg.lucide-copy) {
    display: none !important;
}

@media (max-width: 640px) {
    #energy-atlas-signin-link.energy-atlas-signin-link {
        left: 0.75rem;
        font-size: 0.9rem;
    }
}
