:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-hover: #1a1a1a;
    --border: #2a2a2a;
    --text-primary: #e6e6e6;
    --text-secondary: #888;
    --accent: #3291ff;
    --accent-hover: #4aa3ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    height: 56px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--surface);
    font-family: var(--font-mono);
    flex-shrink: 0;
    z-index: 10;
}

.brand {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    letter-spacing: -0.5px;
}

.brand span {
    color: var(--text-secondary);
    font-weight: 400;
}

.engine-tag {
    font-size: 11px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg);
}

.main-container {
    display: flex;
    flex: 1;
    height: calc(100vh - 56px);
    overflow: hidden;
    gap: 1px;
    background: var(--border);
}

.control-panel,
.analysis-panel {
    flex: 1;
    background: var(--bg);
    padding: 24px;
    overflow-y: auto;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-label-small {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.recorder-container {
    margin-bottom: 24px;
}

.record-btn {
    width: 100%;
    height: 64px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
}

.record-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.record-btn:active {
    transform: translateY(0);
}

.record-btn.recording {
    background: var(--danger);
    color: #fff;
    animation: pulse 2s infinite;
}

.record-btn.recording svg {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.recording-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.status-indicator.recording {
    background: var(--danger);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.audio-controls {
    margin-bottom: 24px;
}

.secondary-btn {
    width: 100%;
    height: 40px;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: var(--surface-hover);
    border-color: #444;
}

.transcript-section {
    margin-top: 24px;
}

.transcript-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

.transcript-box .placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

.analyze-btn {
    width: 100%;
    height: 44px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.analyze-btn:hover:not(:disabled) {
    background: #eee;
    transform: translateY(-1px);
}

.analyze-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
}

.summary-card,
.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.card-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.metric-value {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.sentiment-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.sentiment-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s;
}

.topics-list,
.action-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag,
.action-tag {
    padding: 6px 12px;
    background: rgba(50, 145, 255, 0.1);
    border: 1px solid rgba(50, 145, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent);
    font-family: var(--font-mono);
}

.action-tag {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.timeline-content {
    padding: 20px;
}

.timeline-item {
    padding: 12px 0;
    border-left: 2px solid var(--border);
    padding-left: 20px;
    margin-bottom: 16px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.transcript-box audio {
    width: 100%;
    margin-top: 12px;
    border-radius: 4px;
}

.timeline-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

