/* Org CSS for project 1743486474677 - Iteration 1 - Updated */

body {
    font-family: 'Roboto', 'Arial', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

.container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.2;
}

h1 {
    font-size: 3.0em;
    text-align: center;
    margin-bottom: 30px;
    color: #3498db;
}

h2 {
    font-size: 2.4em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #546e7a;
}

p {
    margin-bottom: 20px;
    color: #555;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

section {
    margin-bottom: 35px;
    padding: 30px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.03);
}

section:last-child {
    margin-bottom: 0;
}

#knowledge-graph,
#chat-interface,
#journal,
#technology-stack {
    /* Styles for sections are already defined above */
}

#mindmap-container,
#pca-view-container,
#journal-container {
    margin-top: 20px;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

#chat-display {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    height: 200px; /* Fixed height for scrollable chat display */
    overflow-y: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

#chat-display .message {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 15px;
    background-color: #e8f0fe;
    display: inline-block;
    clear: both;
    max-width: 70%;
    word-wrap: break-word;
}

#chat-display .message.user {
    background-color: #f0f0f0;
    float: right;
    text-align: right;
    align-self: flex-end;
}

#chat-display .message.bot {
    background-color: #e0f7fa;
    float: left;
    align-self: flex-start;
}

#chat-input {
    width: calc(100% - 22px); /* Adjust for padding and border */
    padding: 12px;
    margin-top: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#chat-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

#chat-interface button {
    padding: 12px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background-color: #3498db;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#chat-interface button:hover {
    background-color: #2980b9;
}

#chat-interface button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

#chat-interface .input-area {
    display: flex;
    flex-direction: column;
}


#technology-stack ul {
    list-style-type: none;
    padding-left: 0;
}

#technology-stack li {
    margin-bottom: 10px;
    padding-left: 1.2em;
    position: relative;
}

#technology-stack li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

#technology-stack strong {
    font-weight: bold;
    color: #34495e;
}

.error-message {
    color: red;
    font-style: italic;
    margin-left: 5px;
}

#mindmap-display,
#pca-display {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    margin-top: 10px;
    overflow-x: auto; /* For long preformatted text */
    font-family: monospace;
    font-size: 0.9em;
    color: #333;
}


/* Responsive design adjustments */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }
    h1 {
        font-size: 2.4em;
        margin-bottom: 20px;
    }
    h2 {
        font-size: 2.0em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    h3 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }
    .container {
        width: 98%;
        padding: 20px;
        margin: 10px auto;
    }
    section {
        padding: 20px;
        margin-bottom: 25px;
    }
    #chat-display {
        height: 150px; /* Adjust height for smaller screens */
    }
    #chat-input, #chat-interface button {
        padding: 10px;
        font-size: 0.95em;
    }
    #chat-display .message {
        max-width: 90%;
    }
}