:root {
    --primary-blue: #1565c0;
    --primary-blue-light: #e3f2fd;
    --primary-blue-dark: #0d47a1;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #F5F5F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    font-size: 18px;
}

.navbar {
    background-color: var(--primary-blue);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-brand {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
}

.chat-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: white;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.chat-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.chat-messages {
    flex: 1;
    margin: 0;
    padding: 1.5rem;
    min-height: calc(100vh - 80px);
    overflow-y: auto;
    font-size: 18px;
    line-height: 1.6;
}

.message {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.6;
    max-width: 85%;
    color: var(--text-dark);
}

.user-message {
    background-color: #e3f2fd;
    color: #1565c0;
    margin-left: 15%;
    border-radius: 8px 8px 0 8px;
    font-weight: 500;
}

.ai-message {
    background-color: #f5f5f5;
    border: 1px solid #1565c0;
    margin-right: 15%;
    border-radius: 8px 8px 8px 0;
    color: #333;
}

.sources {
    font-size: 0.9rem;
    color: #1565c0;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.loading {
    color: #1565c0;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        margin: 1rem;
        padding: 0.5rem;
    }

    .user-message, .ai-message {
        margin-left: 5%;
        margin-right: 5%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.header img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

#chat-interface {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

#messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.message.user {
    background-color: var(--primary-blue);
    color: white;
    margin-left: auto;
}

.message.ai {
    background-color: var(--background-color);
    color: var(--text-color);
    white-space: pre-wrap;
}

.message .paragraph {
    margin-bottom: 10px;
}

.message .list-item {
    margin: 5px 0;
    padding-left: 20px;
}

.input-area {
    padding: 0.8rem;
    border-top: 2px solid #1565c0;
    display: flex;
    gap: 0.8rem;
    background: white;
    align-items: center;
}

#user-input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.4;
    resize: none;
    font-family: inherit;
    height: 45px;
    min-height: 45px;
}

#send-button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    height: 45px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-button:hover {
    background-color: var(--primary-blue-dark);
}

/* Add styles for better text formatting */
.message p {
    margin-bottom: 0.8rem;
}

.message p:last-child {
    margin-bottom: 0;
}

.message ul, .message ol {
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.message li {
    margin-bottom: 0.4rem;
}

.message li:last-child {
    margin-bottom: 0;
}

.summary-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.summary-text h2 {
    color: #1565c0;
    margin: 20px 0 10px 0;
    font-size: 1.5em;
}

.summary-text h3 {
    color: #1565c0;
    margin: 15px 0 10px 0;
    font-size: 1.3em;
}

.summary-text ul {
    list-style: none;
    padding-left: 0;
}

.summary-text li {
    margin: 8px 0;
    padding-left: 20px;
    line-height: 1.4;
    position: relative;
}

.summary-text li:before {
    content: "•";
    color: #1565c0;
    position: absolute;
    left: 0;
}

.summary-text section {
    margin-bottom: 2rem;
}

.overview-container {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 1rem;
}

/* Overview page specific styles */
.summary-section, .sessions-section {
    margin-bottom: 2rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.summary-button {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.summary-button:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.session-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.session-time {
    color: #1565c0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.interaction {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 3px solid #1565c0;
}

.interaction .question {
    font-weight: bold;
    color: #1565c0;
    margin-bottom: 0.5rem;
}

.interaction .answer {
    color: var(--text-dark);
    white-space: pre-wrap;
}

.message h1, .message h2, .message h3, .message h4, .message h5, .message h6 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.message h1 {
    font-size: 2em;
    color: var(--primary-blue);
}

.message h2 {
    font-size: 1.8em;
    color: var(--primary-blue);
}

.message h3 {
    font-size: 1.5em;
    color: var(--primary-blue);
}

.message h4 {
    font-size: 1.3em;
    color: var(--primary-blue);
}