:root {
    --theme-mode: custom;
    --body-bg: #000000;
    --body-text-color: #ffffff;
    --header-gradient-from: #1e3a8a;
    --header-gradient-to: #492291;
    --bot-message-bg: #1e3a8a;
    --user-message-gradient-from: #723cd7;
    --user-message-gradient-to: #1e3a8a;
    --input-bg: #1e3a8a;
    --input-text: #ffffff;
    --input-border: #5e1dd7;
    --button-border: #ffffff;
    --button-text: #ffffff;
    --button-hover-bg: #ffffff;
    --button-hover-text: #000000;
    --chat-bg: #0a1622;
    --blockquote-border-left: 4px solid #1A5F7A;
    --blockquote-text-color: #a0aec0;
    --scrollbar-thumb-background: #000000;
    --scrollbar-thumb-border-radius: 10px;
    --body-font-family: 'Raleway', sans-serif;

}

body{
    font-family: 'Raleway', sans-serif;
    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-color: var(--body-bg);
    color: var(--body-text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    --body-font-family: 'Raleway', sans-serif;

}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(100, 1000, 100, 100.6);
    z-index: -1;
    --body-font-family: 'Raleway', sans-serif;

}
.main-container {
    background-color: rgba(0,0,0);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    --body-font-family: 'Raleway', sans-serif;

}
.header {
    padding: 0.35rem;
    background-image: linear-gradient(to right, var(--header-gradient-from), var(--header-gradient-to));
    color: var(--button-text);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    --body-font-family: 'Raleway', sans-serif;

}
.header .title {
    font-size: 1.25rem;
    font-weight: bold;
    --body-font-family: 'Raleway', sans-serif;

}
.sparkle-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: sparkle-shimmer 3s infinite linear;
    --body-font-family: 'Raleway', sans-serif;

}
@keyframes sparkle-shimmer {
    0% { left: -100%;
    --body-font-family: 'Raleway', sans-serif;
 }
    100% { left: 100%;
    --body-font-family: 'Raleway', sans-serif;
 }
    --body-font-family: 'Raleway', sans-serif;

}
.voice-toggle-button, .css-editor-toggle-button {
    background-color: transparent;
    border: 1px solid var(--button-border);
    color: var(--button-text);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
    cursor: pointer;
    margin-left: 0.5rem;
    --body-font-family: 'Raleway', sans-serif;

}
.voice-toggle-button:hover, .css-editor-toggle-button:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
    --body-font-family: 'Raleway', sans-serif;

}
.voice-toggle-button-enabled {
    background-color: #2563EB;
    border-color: #2563EB;
    --body-font-family: 'Raleway', sans-serif;

}
.voice-toggle-button-enabled:hover {
    background-color: #1D4ED8;
    border-color: #1D4ED8;
    --body-font-family: 'Raleway', sans-serif;

}
.voice-toggle-button-disabled {
    background-color: transparent;
    border-color: var(--button-border);
    --body-font-family: 'Raleway', sans-serif;

}
.chat-history {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 5rem;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-history::-webkit-scrollbar {
    width: 8px;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-history::-webkit-scrollbar-track {
    background: var(--chat-bg);
    border-radius: 10px;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-history::-webkit-scrollbar-thumb{
    background: #000000;
    border-radius: 10px;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-history::-webkit-scrollbar-thumb:hover {
    background: #124B60;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-container {
    display: flex;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-container.justify-start {
    justify-content: flex-start;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-container.justify-end {
    justify-content: flex-end;
    --body-font-family: 'Raleway', sans-serif;

}
.bot-message {
    background-color: var(--bot-message-bg);
    color: var(--body-text-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 70%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --body-font-family: 'Raleway', sans-serif;

}
.user-message {
    background-image: linear-gradient(to right, var(--user-message-gradient-from), var(--user-message-gradient-to));
    color: var(--body-text-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 70%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --body-font-family: 'Raleway', sans-serif;

}
.chat-input-area {
    padding: 0.75rem;
    border-top: 1px solid var(--input-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: fixed;
    bottom: 0;
    width: 100vw;
    left: 0;
    background-color: rgba(10, 22, 34, 0.95);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-sizing: border-box;
    z-index: 10;
    --body-font-family: 'Raleway', sans-serif;

}
.input-and-buttons-row {
    display: flex;
    width: 100%;
    gap: 0.75rem;
    --body-font-family: 'Raleway', sans-serif;

}
.user-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--input-border);
    border-radius: 0.5rem;
    outline: none;
    background-color: var(--input-bg);
    color: var(--input-text);
    --body-font-family: 'Raleway', sans-serif;

}
.user-input:focus {
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.5);
    --body-font-family: 'Raleway', sans-serif;

}
.icon-button {
    background-color: transparent;
    border: 1px solid var(--button-border);
    color: var(--button-text);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    --body-font-family: 'Raleway', sans-serif;

}
.icon-button:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
    --body-font-family: 'Raleway', sans-serif;

}
.icon {
    width: 1.25rem;
    height: 1.25rem;
    --body-font-family: 'Raleway', sans-serif;

}
.mic-button.recording {
    box-shadow: 0 0 0 0.25rem rgba(0, 51, 51, 0.5);
    border: 2px solid #ef4444;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
    --body-font-family: 'Raleway', sans-serif;

}
.action-buttons-row {
    display: flex;
    width: 100%;
    gap: 0.75rem;
    justify-content: center;
    --body-font-family: 'Raleway', sans-serif;

}
.action-button {
    background-color: transparent;
    border: 1px solid var(--button-border);
    color: var(--button-text);
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    cursor: pointer;
    --body-font-family: 'Raleway', sans-serif;

}
.action-button:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
    --body-font-family: 'Raleway', sans-serif;

}
.loading-spinner {
    animation: spin 1s linear infinite;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--button-text);
    --body-font-family: 'Raleway', sans-serif;

}
@keyframes spin {
    from { transform: rotate(0deg);
    --body-font-family: 'Raleway', sans-serif;
 }
    to { transform: rotate(360deg);
    --body-font-family: 'Raleway', sans-serif;
 }
    --body-font-family: 'Raleway', sans-serif;

}
.message-box-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    --body-font-family: 'Raleway', sans-serif;

}
.message-box-content {
    background-color: var(--bot-message-bg);
    color: var(--body-text-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    --body-font-family: 'Raleway', sans-serif;

}
.message-box-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    --body-font-family: 'Raleway', sans-serif;

}
.message-box-text {
    margin-bottom: 1.5rem;
    --body-font-family: 'Raleway', sans-serif;

}
.message-box-button {
    background-color: #2563EB;
    color: var(--button-text);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 300ms ease-in-out;
    --body-font-family: 'Raleway', sans-serif;

}
.message-box-button:hover {
    background-color: #1D4ED8;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content h1, .chat-message-content h2, .chat-message-content h3, .chat-message-content h4, .chat-message-content h5, .chat-message-content h6 {
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: var(--body-text-color);
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content h1 { font-size: 1.5em;
    --body-font-family: 'Raleway', sans-serif;
 }
.chat-message-content h2 { font-size: 1.3em;
    --body-font-family: 'Raleway', sans-serif;
 }
.chat-message-content h3 { font-size: 1.1em;
    --body-font-family: 'Raleway', sans-serif;
 }
.chat-message-content ul, .chat-message-content ol {
    list-style-position: outside;
    margin-left: 1.5em;
    margin-bottom: 0.5em;
    padding-left: 0;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content ul li {
    list-style-type: disc;
    margin-bottom: 0.25em;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.25em;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content p {
    margin-bottom: 0.75em;
    line-height: 1.5;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.75em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    white-space: pre-wrap;
    word-wrap: break-word;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content code {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    color: #A0AEC0;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content blockquote{
    border-left: 4px solid #1A5F7A;
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
    color: #a0aec0;
    margin-bottom: 0.75em;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content hr {
    border: none;
    border-top: 1px solid #1A5F7A;
    margin: 1em 0;
    --body-font-family: 'Raleway', sans-serif;

}
.chat-message-content del {
    text-decoration: line-through;
    --body-font-family: 'Raleway', sans-serif;

}
@media (max-width: 768px) {
    .main-container {
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
        width: 100%;
    --body-font-family: 'Raleway', sans-serif;

    }
    .header { border-radius: 0;
    --body-font-family: 'Raleway', sans-serif;
 }
    .chat-history { padding-bottom: 5rem;
    --body-font-family: 'Raleway', sans-serif;
 }
    .chat-input-area {
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 0;
        max-width: 100%;
        left: 0;
        transform: translateX(0);
        position: fixed;
        flex-direction: column;
    --body-font-family: 'Raleway', sans-serif;

    }
    .input-and-buttons-row {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    --body-font-family: 'Raleway', sans-serif;

    }
    .user-input { width: auto;
    --body-font-family: 'Raleway', sans-serif;
 }
    .icon-button {
        width: auto;
        padding: 0.5rem;
    --body-font-family: 'Raleway', sans-serif;

    }
    .chat-message-container { max-width: 90%;
    --body-font-family: 'Raleway', sans-serif;
 }
    --body-font-family: 'Raleway', sans-serif;

}
@media (max-width: 480px) {
    .chat-history { padding-bottom: 5rem;
    --body-font-family: 'Raleway', sans-serif;
 }
    --body-font-family: 'Raleway', sans-serif;

}
