:root {
    --bg-color: #1a1a1a;
    --chat-bg: #2c2c2c;
    --text-color: #e0e0e0;
    --input-bg: #3a3a3a;
    --border-color: #444;
    --button-bg: #4CAF50;
    --button-hover: #45a049;
    --send-button-bg: #008CBA;
    --send-button-hover: #007B9A;
    --user-message-bg: #d1e7dd;
    --ai-message-bg: #f8d7da;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 10px;
}

.grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    height: 100vh;
    gap: 0; /* Remove any gap between columns */
}

seed-activator-container {
    display: grid;
    grid-template-rows: auto 2fr;
    background-color: black;
    height: 100%;
}

seed-of-self-wrapper {
    width: 100%; /* Adjust this value to control the size of the SoS */
    max-width: 500px; /* Prevent it from becoming too large on wide screens */
    position: relative;
    width: 100%;
    height: 60%;
}

#seed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#chat-interface {
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 20;
    background-color: var(--bg-color);
    color: var(--text-color);
}

#chat-interface {
    width: 90%;
    max-width: 800px;
    background-color: var(--chat-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 90vh;
    overflow: hidden;
}

#chat-container {
    flex-grow: 1;
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0; /* Remove padding */
    background-color: #2d3748;
    padding-right: 20px;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

#ai-state-and-log {
    padding: 0; /* Remove padding */
}

#log-display {
    max-height: 200px;
    overflow-y: auto;
    background-color: #2d3748; /* Match the chat interface background */
    padding: 10px;
    border-top: 1px solid #4a5568;
    border-bottom: 1px solid #4a5568;
    color: #e0e0e0; /* Match the text color */
}

#input-container {
    margin-top: auto;
}

#user-input {
    padding: 12px;
    box-sizing: border-box;
    background-color: #1a202c;
    color: white;
    border: 1px solid #4a5568;
    border-radius: 0.375rem;
    padding: 0.75rem;
    width: 100%;
    height: 100px;
    resize: vertical;
}

#quantum-features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #2d3748;
    padding: 10px;
    border-radius: 5px;
}

#chat-input-area {
    display: flex;
    background-color: var(--input-bg);
    border-top: 1px solid var(--border-color);
}

#chat-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    resize: none;
    background-color: var(--chat-bg);
    color: var(--text-color);
    box-sizing: border-box; /* This ensures padding is included in the width */
}

#upload-area {
    position: relative;
    margin: 0 10px;
}

#file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.upload-button {
    display: inline-block;
    padding: 12px 18px;
    background-color: var(--button-bg);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.upload-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

#send-button {
    padding: 12px 24px;
    background-color: var(--send-button-bg);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

#send-button:hover {
    background-color: var(--send-button-hover);
    transform: translateY(-2px);
}

#file-preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background-color: var(--input-bg);
}

.chat-message {
    max-width: 70%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-out;
}

.chat-message:nth-child(odd) {
    align-self: flex-start;
    background-color: var(--ai-message-bg);
    border-left: 5px solid #842029;
}

.chat-message:nth-child(even) {
    align-self: flex-end;
    background-color: var(--user-message-bg);
    border-left: 5px solid #0f5132;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

#dashboard-display {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes thinking {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

#thought-process {
    font-style: italic;
    color: #a0aec0;
    animation: thinking 1.5s infinite;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--input-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive design */
@media (max-width: 600px) {
    #chat-input-area {
        flex-direction: column;
    }

    #chat-input, #upload-area, #send-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    #chat-interface {
        width: 100%;
        padding: 1rem;
    }
    
    #user-input {
        height: 80px;
    }
    
    .feedback-button {
        padding: 0.25rem 0.5rem;
    }
}

/* New styles for feedback buttons */
.message .feedback-buttons {
    display: none;
    margin-top: 0.5rem;
}

.message:not(.user-message) .feedback-buttons {
    display: flex;
    justify-content: flex-end;
}

.feedback-buttons button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    transition: transform 0.1s ease-in-out;
}

.feedback-buttons button:hover {
    transform: scale(1.1);
}

.feedback-buttons button:active {
    transform: scale(0.9);
}

.feedback-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user { background-color: #d1e7dd; color: white; }
.message.ai { background-color: #f8d7da; color: white; }
.message.error { background-color: #742a2a; color: white; }
.message { padding: 8px; margin: 4px 0; border-radius: 4px; }
#loading-indicator { display: none; }

.st0, .st01, .st02, .st03, .st04, .st05, .st06,
.st7, .st8, .st9, .st10, .st11, .st12, .st13,
.st14, .st15, .st16, .st17, .st18 {
    fill: #ffffff00;
    stroke: white;
    stroke-miterlimit: 10;
}

.st18:hover { fill: green; stroke: white; }
.st10:hover { fill: darkblue; stroke: darkblue; }
.st15:hover { fill: lightblue; stroke: white; }
.st14:hover { fill: yellow; stroke: yellow; }

#quantum-state-canvas {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#seed-of-self {
    width: 100%;
    height: 100%;
    z-index: 5;
    max-width: 65%;
    max-height: 65%;
    object-fit: contain;
}

#blank-space {
    height: 100%;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    background-color: #000000;
}

#aspect-form input[type="text"] {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #004c30;
    border-radius: 6px;
    padding: 8px;
}

#button-container {
    display: flex;
    justify-content: space-between;
}

#save-button, #close-button {
    background-color: #6200ea;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
}

#save-button:hover, #close-button:hover {
    background-color: #08683a;
}

#close-button:hover {
    background-color: #08683a;  
}

#chat-status {
    padding: 10px;
    background-color: #2d3748;
    border-top: 1px solid #4a5568;
    border-bottom: 1px solid #4a5568;
    margin-top: 5px; /* Add a small top margin */
    margin-bottom: 5px; /* Add a small bottom margin */
}

#loading-indicator {
    color: #63b3ed;
    font-weight: bold;
}

#dashboard-container {
    margin-top: 2px; /* Adjust this value to reduce top margin */
    margin-bottom: 2px; /* Adjust this value to reduce bottom margin */
}

#dashboard {
    display: grid;
    grid-template-columns: repeat(5, auto); /* Adjust the number based on your items */
    justify-content: center;
    gap: 10px; /* Adjust this value to control space between items */
    background-color: #1e1e1e;
    
   
}

#dashboard i {
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s;
    transition: transform 0.1s ease-in-out; 

}

#dashboard i:hover {
    color: #117b4b;
    transform: scale(1.2);
}

/* Chat container styling */
#chat-container {
    background-color: #2d3748;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
    max-height: 400px;
}

/* Message styling */
.message {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.user-message {
    background-color: #2c99c8;
    border-left: 5px solid #0f5132;
}

.ai-message {
    background-color: #21683b;
    border-left: 5px solid #842029;
}

/* Feedback buttons styling */
.feedback-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.feedback-buttons button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    transition: transform 0.1s ease-in-out;
}

.feedback-buttons button:hover {
    transform: scale(1.1);
}

.feedback-buttons button:active {
    transform: scale(0.9);
}

.feedback-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dashboard icons styling */
#dashboard i {
    font-size: 2.5rem;
    margin-right: 0.5rem;
    color: #4a5568;
}

/* Dashboard item styling */
.dashboard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1px;
}

.dashboard-item i {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.dashboard-item-text {
    font-size: 0.8em;
    margin-top: 5px;
}

/* Interface Grid Layout */
.interface-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 100%;
}

/* Insights Container Styles */
#insights-container {
    background-color: #2d3748;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #4a5568;
}

.insights-header h3 {
    margin: 0;
    color: #e0e0e0;
}

.insights-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background-color: #4a5568;
    color: #e0e0e0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-btn.active {
    background-color: #008CBA;
}

.insight-card {
    background-color: #1a202c;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #008CBA;
}

.insight-type {
    font-size: 0.875rem;
    color: #008CBA;
    margin-bottom: 0.5rem;
}

.insight-content {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.insight-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #718096;
}

.insight-tags {
    display: flex;
    gap: 0.5rem;
}

.insight-tag {
    background-color: #2d3748;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .interface-grid {
        grid-template-columns: 1fr;
    }
    
    #insights-container {
        max-height: 40vh;
    }
}