/* Segments Panel */
.segments-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}

.segments-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.segments-empty {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

/* Waveform */
.waveform-container {
    background: #1f2937;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

#waveform-canvas {
    width: 100%;
    height: 80px;
    display: block;
}

/* Groups List */
.groups-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-item {
    background: white;
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.play-btn {
    background: #3b82f6;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
}

.play-btn:hover {
    background: #2563eb;
}

.group-time {
    font-family: monospace;
    font-size: 13px;
    color: #374151;
}

.group-duration {
    font-size: 12px;
    color: #9ca3af;
}

.group-speakers {
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: #374151;
}

.group-seg-count {
    font-size: 11px;
    color: #9ca3af;
}

.overlap-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.group-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.merge-btn,
.split-btn {
    background: #e5e7eb;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.merge-btn:hover {
    background: #22c55e;
    color: white;
}

.split-btn:hover {
    background: #f59e0b;
    color: white;
}

.group-transcript {
    width: 100%;
    min-height: 40px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

.group-transcript:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Actions */
.segments-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.waveform-hint {
    text-align: center;
    font-size: 10px;
    color: #6b7280;
    padding: 2px;
    background: #f3f4f6;
}

.custom-badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
}

.adj-btn {
    background: #e5e7eb;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
}

.adj-btn:hover {
    background: #d1d5db;
}

.adj-sep {
    color: #d1d5db;
    font-size: 12px;
}

.reset-btn {
    background: #fef3c7;
    border: none;
    width: 24px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.reset-btn:hover {
    background: #fde68a;
}