:root {
    --bae-red: #E40521;
    --bae-orange: #FC4C02;
    --bae-orange-dark: #E74011;
    --bae-orange-light: #EE7326;
    --bae-orange-warm: #EE7203;
    --bae-yellow: #F18700;
    --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);
}

.navbar {
    background-color: var(--bae-red);
    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: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 600px;
    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;
}

.message-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bae-orange-light);
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 1rem;
    min-height: 60px;
    resize: vertical;
}

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

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

.send-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.chat-messages {
    flex: 1;
    margin-top: 2rem;
    min-height: 400px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}

.user-message {
    background-color: var(--bae-orange);
    color: var(--text-light);
    margin-left: 20%;
    border-radius: 8px 8px 0 8px;
}

.ai-message {
    background-color: var(--background-light);
    border: 1px solid var(--bae-orange-warm);
    margin-right: 20%;
    border-radius: 8px 8px 8px 0;
}

.sources {
    font-size: 0.9rem;
    color: var(--bae-yellow);
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.loading {
    color: var(--bae-orange);
    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-color);
    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 {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--bae-orange-light);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

#user-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    resize: none;
    font-family: inherit;
}

#send-button {
    padding: 12px 24px;
    background-color: #E27100;
    height:100%;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

#send-button:hover {
    opacity: 0.9;
}

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

.summary-text h2 {
    color: var(--bae-red);
    margin: 20px 0 10px 0;
    font-size: 1.5em;
}

.summary-text h3 {
    color: var(--bae-orange);
    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: var(--bae-orange-light);
    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(--bae-orange);
    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(--bae-orange-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: var(--bae-orange);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.interaction {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 3px solid var(--bae-orange-light);
}

.interaction .question {
    font-weight: bold;
    color: var(--bae-red);
    margin-bottom: 0.5rem;
}

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