/* Main App Container */
#wd-paper-edit-app {
    display: flex;
    height: 100vh;
    width: 100vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0;
    background-color: #121212;
}

/* Common Panels */
.panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Transcript Panel (Left - Liquid) */
#transcript-panel {
    flex: 1;
    border-right: 1px solid #333;
    overflow-y: auto;
    padding: 20px;
    background-color: #1a1a1a;
}

/* Video Panel (Right - Fixed Width usually, or Flex) */
#video-panel {
    flex: 0 0 40%; /* Start with 40% width for video */
    min-width: 400px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Speaker Blocks (Attributes to Diarization) --- */
.speaker-block {
    margin-bottom: 24px;
    padding-left: 10px;
    border-left: 3px solid #333;
}

.speaker-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #888;
    letter-spacing: 0.5px;
}

/* Color Coding for Cameras */
.speaker-label[data-speaker="Cam1"] { color: #4facfe; border-left-color: #4facfe; } /* Blue */
.speaker-label[data-speaker="Cam2"] { color: #00f2fe; border-left-color: #00f2fe; } /* Cyan */
.speaker-label[data-speaker="Cam3"] { color: #43e97b; border-left-color: #43e97b; } /* Green */
.speaker-label[data-speaker="Wide"] { color: #fa709a; border-left-color: #fa709a; } /* Pink */

/* Timecode Markers */
.timecode-marker {
    display: inline-block;
    font-size: 0.75rem;
    font-family: monospace;
    color: #555;
    background: #222;
    padding: 1px 4px;
    border-radius: 3px;
    margin: 0 6px;
    vertical-align: middle;
    user-select: none;
}

/* Transcript Text Styling */
.transcript-word {
    display: inline-block;
    padding: 2px 1px;
    margin: 0 1px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    user-select: none; /* Prevent native text selection to handle custom drag */
}

.transcript-word:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.transcript-word.active {
    background-color: #EC6826; /* Brand Color */
    color: #fff;
}

.transcript-word.deleted {
    text-decoration: line-through;
    color: #555;
    background-color: rgba(255, 0, 0, 0.1);
}

.transcript-word.selecting {
    background-color: rgba(236, 104, 38, 0.3); /* Semi-transparent brand color */
}

/* Video Container */
.video-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Toolbar */
.toolbar {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    background-color: #1e1e1e;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.btn-primary {
    background-color: #EC6826;
    color: white;
}

.btn-primary:hover {
    background-color: #cf5518;
}

.btn-secondary {
    background-color: #333;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #444;
}

/* Loading/Error States */
.app-message {
    padding: 40px;
    text-align: center;
    color: #888;
}

.app-message.error {
    color: #ff6b6b;
    background: rgba(255,0,0,0.1);
    border: 1px solid #ff6b6b;
    border-radius: 4px;
    padding: 20px;
    margin: 20px;
}
