/* Base styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Main content styles */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Card styles */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Button styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3a7bc8;
}

.btn-secondary {
    background-color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #555;
}

/* Chat interface styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    max-width: 80%;
}

.message.user {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.message.ai {
    background-color: #e9e9e9;
    align-self: flex-start;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background-color: white;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 0.5rem;
}

/* Topic selection styles */
.topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.topic-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.topic-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Evaluation styles */
.evaluation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.evaluation-chart {
    flex: 1;
    min-width: 300px;
}

.evaluation-feedback {
    flex: 2;
    min-width: 300px;
}

.feedback-item {
    margin-bottom: 1.5rem;
}

.feedback-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Protocol styles */
.protocol-container textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
    resize: vertical;
}

.export-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Footer styles */
footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--light-text);
}

/* Responsive styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .evaluation-container {
        flex-direction: column;
    }
}

/* General Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.main-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/background.jpg');
    background-size: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    color: #4a4a4a;
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    margin-bottom: 40px;
}

.features h2 {
    text-align: center;
    color: #4a4a4a;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.card {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #6e8efb;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* Instructions Section */
.instructions {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.instructions h2 {
    color: #4a4a4a;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.instructions ol {
    color: #666;
    line-height: 1.8;
    padding-left: 20px;
}

.instructions a {
    color: #6e8efb;
    text-decoration: none;
    font-weight: bold;
}

.instructions a:hover {
    text-decoration: underline;
}

/* Layout for the simulation container */
.simulation-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Main chat container */
.chat-container {
    flex: 3;  /* Takes up 3/4 of the available space */
    display: flex;
    flex-direction: column;
    min-height: 450px;  /* Increased from 400px to match metadata panel */
    max-height: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* Metadata panel styling */
.metadata-panel {
    flex: 1;  /* Takes up 1/4 of the available space */
    min-height: 450px;  /* Increased from 400px */
    height: auto;  /* Allow it to grow as needed */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    overflow-y: visible;  /* Changed from auto to visible */
}

/* Chat messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
}

/* Message styling */
.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

.message.user {
    background-color: #e3f2fd;
    margin-left: auto;
}

.message.ai {
    background-color: #f1f1f1;
    margin-right: auto;
}

/* Metadata item styling */
.metadata-item {
    margin-bottom: 15px;
}

.metadata-item h4 {
    margin-bottom: 5px;
    color: #555;
}

.metadata-item ul {
    margin: 0;
    padding-left: 20px;
}

/* Topics sidebar */
.topics-sidebar {
    width: 300px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
}

.topics-sidebar h3 {
    margin-bottom: 15px;
    color: #4a4a4a;
}

.topic-suggestions {
    list-style: none;
    padding: 0;
}

.topic-suggestions li {
    margin-bottom: 10px;
}

.topic-link {
    display: block;
    padding: 10px;
    background-color: #f5f7ff;
    border-radius: 5px;
    color: #6e8efb;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topic-link:hover {
    background-color: #e8edff;
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-interface {
        flex-direction: column;
    }
    
    .topics-sidebar {
        width: 100%;
        order: -1;
        margin-bottom: 20px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Typing indicator styles */
.typing-indicator {
    display: flex;
    align-items: center;
}

.typing-indicator span {
    font-size: 16px;
}

.typing-indicator .dot {
    margin-left: 2px;
    opacity: 0.2;
    transition: opacity 0.2s ease;
}

/* Message loading state */
.message.loading .message-content {
    background-color: #f0f2f5;
    color: #65676b;
    min-width: 60px;
}

/* Chat interface layout for handbook chat */
.chat-interface {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Main chat container for handbook chat */
.chat-interface .chat-container {
    flex: 3;  /* Takes up 3/4 of the available space */
    display: flex;
    flex-direction: column;
    min-height: 450px;
    max-height: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* Topics sidebar styling */
.topics-sidebar {
    flex: 1;  /* Takes up 1/4 of the available space */
    width: auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
    height: auto;
    min-height: 450px;
    border: 1px solid #ddd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-interface {
        flex-direction: column;
    }
    
    .topics-sidebar {
        width: 100%;
        order: -1;
        margin-bottom: 20px;
    }
} 