:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --background-color: #f5f5f5;
    --text-color: #333333;
    --error-color: #f44336;
    --success-color: #4CAF50;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 2rem;
}

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

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.app-logo {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.app-logo:hover {
    transform: rotate(180deg);
}

h1 {
    color: var(--primary-color);
    margin: 0;
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
}

.controls {
    text-align: center;
    margin-bottom: 2rem;
}

.controls button {
    padding: 10px 25px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.2s;
}

.controls button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.controls button:disabled {
    background-color: #bdbdbd;
    transform: none;
}

.controls button#clearButton {
    background-color: var(--error-color);
}

.controls button#clearButton:hover {
    background-color: #d32f2f;
}

.voice-select {
    padding: 10px 15px;
    margin: 0 10px;
    font-size: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background-color: white;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.voice-select:hover {
    border-color: var(--secondary-color);
}

.voice-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.voice-select:disabled {
    background-color: #f5f5f5;
    border-color: #bdbdbd;
    cursor: not-allowed;
}

.content-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    width: 100%;
}

.side-container {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transcript-container {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.image-container {
    height: fit-content;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

/* Adjust map height when image is present */
.image-container:has(.image-wrapper) + .map-container {
    height: 300px;
}

/* Placeholders for development/testing */
.image-placeholder, .map-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9em;
}

.map-placeholder {
    height: 400px;
    background-color: #e8e8e8;
}

/* Hide map container when empty (no map initialized) */
.map-container:not(:has(div)) {
    display: none;
}

/* When no content in side container, center the transcript */
.content-wrapper:not(:has(.side-container .image-wrapper, .side-container .map-container:has(div))) {
    max-width: 800px;
    grid-template-columns: 1fr;
}

/* Hide side container when empty */
.side-container:not(:has(.image-wrapper, .map-container:has(div))) {
    display: none;
}

.message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.message:first-child {
    margin-top: 0;
}

.image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.image-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
}

.image-error {
    padding: 20px;
    text-align: center;
    color: var(--error-color);
    background: rgba(244,67,54,0.1);
    border-radius: 8px;
}

.search-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.image-caption {
    padding: 10px;
    background: rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    margin-top: -4px;
    font-size: 0.9em;
}

.image-caption a {
    color: var(--primary-color);
    text-decoration: none;
}

.image-caption a:hover {
    text-decoration: underline;
}

.assistant-message {
    background-color: #E3F2FD;
    border-left: 4px solid var(--primary-color);
}

.function-result {
    background-color: #F5F5F5;
    border-left: 4px solid #4CAF50;
    font-size: 0.95em;
    margin: 15px 0 15px 20px;
    padding: 15px 20px;
    border-radius: 8px;
    white-space: pre-wrap;
}

.function-result.weather {
    border-left-color: #FF9800;
}

.function-result.search {
    border-left-color: #9C27B0;
}

.function-result a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.function-result a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.function-result .result-title {
    font-weight: 500;
    margin-bottom: 8px;
}

.function-result .result-snippet {
    color: #555;
    margin-bottom: 8px;
}

.function-result .result-source {
    font-size: 0.9em;
    color: #666;
}

.status {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-size: 0.9em;
}

.error {
    color: var(--error-color);
    text-align: center;
    display: none;
    padding: 10px;
    background-color: rgba(244,67,54,0.1);
    border-radius: 8px;
    margin: 10px 0;
}

.forecast-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    transition: color 0.2s;
}

.forecast-toggle:hover {
    color: #FF9800;
}

.forecast-toggle::before {
    content: '►';
    font-size: 0.8em;
    transition: transform 0.2s;
}

.forecast-toggle.expanded::before {
    transform: rotate(90deg);
}

.forecast-content {
    display: none;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 152, 0, 0.2);
}

.forecast-content.expanded {
    display: block;
} 