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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    margin-bottom: 2rem;
    color: #222;
}

h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #444;
}

section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-section {
    display: flex;
    gap: 0.5rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: #666;
}

button {
    padding: 0.75rem 1.5rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background: #555;
}

button:disabled {
    background: #999;
    cursor: not-allowed;
}

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

.transcript-header h2 {
    margin-bottom: 0;
}

.transcript-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #333;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.transcript-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 0.5rem;
}

.transcript-toggle label {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 0.875rem;
    border: 1px solid #ddd;
}

.transcript-toggle label:first-child {
    border-radius: 4px 0 0 4px;
}

.transcript-toggle label:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.transcript-toggle label.active {
    background: #333;
    color: white;
    border-color: #333;
}

#transcript-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.summary-options {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.summary-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

#summary-content {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    white-space: pre-wrap;
}

#chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
}

.message.user {
    background: #e3f2fd;
    margin-left: 2rem;
}

.message.assistant {
    background: white;
    margin-right: 2rem;
    border: 1px solid #eee;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

#loading {
    text-align: center;
    padding: 1rem;
    color: #666;
}

#error {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}
