:root {
    --bg-dark-blue: #0A192F;
    --bg-light-blue: #112240;
    --primary-blue: #3A7BFD;
    --primary-blue-hover: #5A9BFF;
    --text-light: #CCD6F6;
    --text-medium: #8892B0;
    --text-dark: #495670;
    --border-color: #233554;
    --red-alert: #FF4D4D;
    --yellow-alert: #FFD700;
    --green-alert: #00FF00;
    --neutral-dot: #495670;
    /* New neutral color */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark-blue);
    color: var(--text-light);
    line-height: 1.6;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
    padding-left: 0.5rem;
}

.clarity-icon {
    color: var(--primary-blue);
}

h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

.main-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.controls {
    margin-bottom: 2rem;
}

button {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-blue);
    color: #FFF;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

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

button:active {
    transform: scale(0.98);
}

button.stop {
    background-color: var(--red-alert);
}

button.stop:hover {
    background-color: #ff6a6a;
}

.container {
    display: none;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.main-content.call-active .controls {
    display: none;
}

.main-content.call-active .container {
    display: grid;
}

.log-box {
    background-color: var(--bg-light-blue);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-shrink: 0;
    /* Prevents header from shrinking */
}

.log {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.log-entry {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.log-entry.transcript {
    color: var(--text-light);
    /* We use pre-wrap to respect newlines from the summary */
    white-space: pre-wrap;
}

.log-entry.system {
    font-style: italic;
    color: var(--text-dark);
}

.log-entry.system.interim {
    color: var(--text-dark);
}

/* Removed the specific .summary-box styles, as it's now a .log-box */

.alert-card {
    background-color: var(--bg-dark-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.alert-card.pressure {
    border-left: 4px solid var(--red-alert);
}

.alert-card.pressure .alert-icon {
    color: var(--red-alert);
}

.alert-card.jargon,
.alert-card.multi_question {
    border-left: 4px solid var(--yellow-alert);
}

.alert-card.jargon .alert-icon,
.alert-card.multi_question .alert-icon {
    color: var(--yellow-alert);
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.alert-content p {
    margin: 0;
    padding: 0;
    color: var(--text-medium);
}

.alert-content p strong {
    color: var(--text-light);
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-content p i {
    color: var(--text-dark);
}

/* NEW TIMELINE STYLES */
.timeline {
    position: relative;
    padding-left: 25px;
    /* Space for the line and dots */
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-event {
    position: relative;
    margin-bottom: 1.5rem;
}

/* The icon/dot on the line */
.timeline-event .timeline-icon {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--neutral-dot);
    /* Default neutral dot */
    border: 2px solid var(--bg-light-blue);
}

/* Icon Colors */
.timeline-event.pressure .timeline-icon {
    background-color: var(--red-alert);
}

.timeline-event.jargon .timeline-icon {
    background-color: var(--yellow-alert);
}

.timeline-event.multi_question .timeline-icon {
    background-color: var(--green-alert);
}

.timeline-content .timestamp {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.timeline-content .summary-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}