/**
 * Meeting Notes View CSS
 * Styling for the meeting notes/transcript view with T.AI integration
 */

/* ==================== Notes Layout ==================== */

.meeting-notes-view {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    height: calc(100vh - 180px);
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.04);
    overflow: hidden;
}

.meeting-notes-view.chat-collapsed {
    grid-template-columns: 1fr 48px;
}

/* ==================== Notes Main Content ==================== */

.notes-main-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--color-border);
}

/* Notes Header */
.notes-view-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.notes-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.notes-meeting-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

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

/* Header Actions with Tooltips */
.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-actions .tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.header-actions .tooltip-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-actions .tooltip-wrapper::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--color-text-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.header-actions .tooltip-wrapper:hover::after,
.header-actions .tooltip-wrapper:hover::before {
    opacity: 1;
    visibility: visible;
}

.header-actions .btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--color-surface-subtle);
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.header-actions .btn-icon:hover {
    background: #e5e7eb;
    color: #374151;
}

.header-actions .btn-icon:active {
    transform: scale(0.95);
}

.header-actions .btn-icon i {
    font-size: 14px;
}

.notes-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.notes-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.notes-meta-item i {
    font-size: 12px;
    color: #8b949e;
}

.notes-meta-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.notes-host-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
}

.notes-shared-info {
    font-size: 12px;
    color: #8b949e;
}

.notes-shared-info i {
    margin-right: 0.25rem;
}

/* Notes Tab Navigation */
.notes-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-subtle);
}

.notes-tabs {
    display: flex;
    gap: 0;
}

.notes-tab-btn {
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.notes-tab-btn:hover {
    color: var(--color-text-primary);
}

.notes-tab-btn.active {
    color: var(--color-brand, #1E3A5F);
    font-weight: 600;
}

.notes-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-brand, #1E3A5F);
    border-radius: 2px 2px 0 0;
}

.notes-template-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.notes-template-selector select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    cursor: pointer;
}

/* Notes Content Area */
.notes-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* ==================== Summary Tab Content ==================== */

.notes-summary-content {
    max-width: 800px;
}

/* Summary Section */
.notes-summary-section {
    margin-bottom: 1.75rem;
}

.notes-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.notes-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.notes-section-title i {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.notes-section-menu {
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.15s;
}

.notes-section-menu:hover {
    background: var(--color-surface-subtle);
    color: var(--color-text-secondary);
}

/* Overview Section */
.notes-overview-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin: 0;
}

/* Keywords Section */
.notes-keywords-section {
    margin-bottom: 1.5rem;
}

.notes-keywords-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.notes-keywords-list {
    font-size: 13px;
    color: var(--color-text-primary);
    line-height: 1.5;
}

/* Speakers Section */
.notes-speakers-section {
    margin-bottom: 1.5rem;
}

.notes-speakers-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.notes-speakers-list {
    font-size: 13px;
    color: var(--color-text-primary);
}

/* Action Items Section */
.notes-action-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notes-action-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.notes-action-item:last-child {
    border-bottom: none;
}

.notes-action-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-brand, #1E3A5F);
    cursor: pointer;
    flex-shrink: 0;
}

.notes-action-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-primary);
}

.notes-action-item.completed .notes-action-text {
    text-decoration: line-through;
    color: #8b949e;
}

/* Old avatar-only style removed - .notes-action-assignee is now a container for avatar + name */
/* See updated styles below in the Action Items Enhancement section */

.notes-action-assignee-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.notes-add-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    background: none;
    border: none;
    font-size: 13px;
    color: #8b949e;
    cursor: pointer;
    transition: color 0.2s;
}

.notes-add-action:hover {
    color: var(--color-brand, #1E3A5F);
}

/* Insights Section */
.notes-insights-section .notes-section-title i {
    color: #0F2440;
}

.notes-insights-category {
    margin-bottom: 1rem;
}

.notes-insights-category-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.notes-insights-list {
    list-style: disc;
    margin: 0;
    padding-left: 1.25rem;
}

.notes-insights-list li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
}

/* ==================== Transcript Tab Content ==================== */

.notes-transcript-content {
    max-width: 900px;
}

.notes-transcript-entry {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.15s;
}

.notes-transcript-entry:hover {
    background: var(--color-surface-subtle);
    margin: 0 -1.5rem;
    padding: 1rem 1.5rem;
}

.notes-transcript-entry:last-child {
    border-bottom: none;
}

.notes-transcript-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.notes-transcript-avatar.initials {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.notes-transcript-avatar.letter-j {
    background: linear-gradient(135deg, var(--color-brand, #1E3A5F) 0%, var(--color-brand-hover, #152C4A) 100%);
}

.notes-transcript-avatar.letter-m {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notes-transcript-body {
    flex: 1;
    min-width: 0;
}

.notes-transcript-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.notes-transcript-speaker {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.notes-transcript-time {
    font-size: 12px;
    color: #8b949e;
}

.notes-transcript-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-primary);
}

/* Edit Transcript Button */
.notes-edit-transcript-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.notes-edit-transcript-btn:hover {
    background: var(--color-surface-subtle);
    border-color: #8b949e;
    color: var(--color-text-primary);
}

.notes-edit-transcript-btn.editing {
    background: var(--color-brand, #1E3A5F);
    border-color: var(--color-brand, #1E3A5F);
    color: #fff;
}

.notes-edit-transcript-btn.editing:hover {
    background: var(--color-brand-hover, #152C4A);
    border-color: var(--color-brand-hover, #152C4A);
}

.notes-cancel-edit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    color: #cf222e;
    cursor: pointer;
    transition: all 0.15s;
    margin-left: 0.5rem;
}

.notes-cancel-edit-btn:hover {
    background: #ffebe9;
    border-color: #cf222e;
}

/* Editable transcript text */
.notes-transcript-text.editable,
.notes-transcript-speaker.editable {
    background: #fff8e6;
    border: 1px dashed #f0b429;
    border-radius: 4px;
    padding: 4px 8px;
    min-height: 24px;
    outline: none;
}

.notes-transcript-text.editable:focus,
.notes-transcript-speaker.editable:focus {
    background: #fffbeb;
    border-color: var(--color-brand, #1E3A5F);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

/* ==================== AI Chat Sidebar ==================== */

.notes-ai-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--color-surface-subtle);
    overflow: hidden;
    transition: width 0.3s ease;
}

.notes-ai-sidebar.collapsed {
    width: 48px;
}

.notes-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.notes-ai-tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 3px;
    background: var(--color-surface-subtle);
}

.notes-ai-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.notes-ai-tab:hover {
    color: var(--color-text-primary);
}

.notes-ai-tab.active {
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .notes-ai-tabs {
    background: #21262d;
    border-color: #30363d;
}

[data-theme="dark"] .notes-ai-tab {
    color: #8b949e;
}

[data-theme="dark"] .notes-ai-tab:hover {
    color: #e6edf3;
}

[data-theme="dark"] .notes-ai-tab.active {
    background: #30363d;
    color: #e6edf3;
}

.notes-ai-actions {
    display: flex;
    gap: 0.25rem;
}

.notes-ai-action-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.notes-ai-action-btn:hover {
    background: var(--color-surface-subtle);
    color: var(--color-text-primary);
}

.notes-ai-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* AI Suggested Prompts */
.notes-ai-prompts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notes-ai-prompt {
    padding: 0.875rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-primary);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.5;
}

.notes-ai-prompt:hover {
    background: #f8faff;
    border-color: #c7d2fe;
}

/* AI Chat Messages */
.notes-ai-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-ai-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.notes-ai-message.user {
    background: var(--color-brand, #1E3A5F);
    color: #fff;
    margin-left: 2rem;
    border-bottom-right-radius: 4px;
}

.notes-ai-message.assistant {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    margin-right: 2rem;
    border-bottom-left-radius: 4px;
}

/* AI Input */
.notes-ai-input-container {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.notes-ai-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.notes-ai-input {
    flex: 1;
    padding: 0.5rem;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--color-text-primary);
    outline: none;
}

.notes-ai-input::placeholder {
    color: #8b949e;
}

.notes-ai-input-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.notes-ai-input-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.notes-ai-input-btn:hover {
    color: var(--color-text-primary);
}

.notes-ai-send-btn {
    width: 32px;
    height: 32px;
    background: var(--color-brand, #1E3A5F);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.notes-ai-send-btn:hover {
    background: var(--color-brand-hover, #152C4A);
}

.notes-ai-send-btn:disabled {
    background: var(--color-border);
    cursor: not-allowed;
}

/* ==================== Media Player ==================== */

.notes-media-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #1e293b;
    border-top: 1px solid #334155;
}

.notes-player-time {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Monaco', 'Courier New', monospace;
    min-width: 45px;
}

.notes-player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-player-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.notes-player-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notes-player-btn.play-pause {
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    color: #1e293b;
}

.notes-player-btn.play-pause:hover {
    background: #f1f5f9;
}

.notes-player-speed {
    padding: 0.25rem 0.5rem;
    background: none;
    border: 1px solid #475569;
    border-radius: 4px;
    font-size: 12px;
    color: #e2e8f0;
    cursor: pointer;
}

.notes-player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-progress-bar {
    flex: 1;
    height: 4px;
    background: #475569;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.notes-progress-fill {
    height: 100%;
    background: var(--color-brand, #1E3A5F);
    border-radius: 2px;
    width: 45%;
    position: relative;
}

.notes-progress-segments {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    gap: 2px;
}

.notes-progress-segment {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.notes-player-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== Breadcrumb Navigation ==================== */

.anthropic-breadcrumb {
    display: flex;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    align-items: center;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.breadcrumb-back-btn:hover {
    background-color: #f3f4f6;
    border-color: #8b949e;
    color: var(--color-text-primary);
    text-decoration: none;
}

.breadcrumb-back-btn:active {
    background-color: #e5e7eb;
    transform: translateY(0);
}

.breadcrumb-back-btn svg {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.breadcrumb-back-btn:hover svg {
    transform: translateX(-2px);
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: #8b949e;
    opacity: 0.6;
}

.breadcrumb-current {
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 600;
}

.breadcrumb-link-btn {
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.breadcrumb-link-btn:hover {
    color: var(--color-brand, #1E3A5F);
    text-decoration: underline;
}

/* ==================== Button Styles ==================== */

.btn-notes-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-brand, #1E3A5F);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-notes-share:hover {
    background: var(--color-brand-hover, #152C4A);
}

.btn-notes-icon {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-notes-icon:hover {
    background: var(--color-surface-subtle);
    color: var(--color-text-primary);
}

/* ==================== Empty State ==================== */

.notes-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-text-secondary);
}

.notes-empty-state i {
    font-size: 48px;
    color: var(--color-border);
    margin-bottom: 1rem;
}

.notes-empty-state h3 {
    margin: 0 0 0.5rem 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.notes-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* ==================== Loading State ==================== */

.notes-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--color-text-secondary);
}

.notes-loading-state i {
    font-size: 32px;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== Responsive Design ==================== */

@media (max-width: 1024px) {
    .meeting-notes-view {
        grid-template-columns: 1fr;
        height: auto;
    }

    .notes-ai-sidebar {
        display: none;
    }

    .notes-main-content {
        border-right: none;
    }

    .meeting-notes-view.show-chat .notes-ai-sidebar {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        z-index: 100;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
    .notes-view-header {
        padding: 1rem;
    }

    .notes-meeting-title {
        font-size: 18px;
    }

    .notes-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .notes-tabs-row {
        padding: 0 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .notes-template-selector {
        width: 100%;
        justify-content: flex-end;
        padding-bottom: 0.5rem;
    }

    .notes-content-area {
        padding: 1rem;
    }

    .notes-transcript-entry:hover {
        margin: 0 -1rem;
        padding: 1rem;
    }

    .notes-media-player {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .notes-player-progress {
        order: -1;
        width: 100%;
    }
}

/* ==================== Dark Theme Support ==================== */

[data-theme="dark"] .meeting-notes-view {
    background: #161b22;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.2);
}

[data-theme="dark"] .notes-main-content {
    border-right-color: #30363d;
}

[data-theme="dark"] .notes-view-header {
    background: #161b22;
    border-bottom-color: #30363d;
}

[data-theme="dark"] .notes-meeting-title {
    color: #e6edf3;
}

[data-theme="dark"] .notes-meta-row {
    color: #8b949e;
}

[data-theme="dark"] .notes-tabs-row {
    background: #0d1117;
    border-bottom-color: #30363d;
}

[data-theme="dark"] .notes-tab-btn {
    color: #8b949e;
}

[data-theme="dark"] .notes-tab-btn:hover {
    color: #e6edf3;
}

[data-theme="dark"] .notes-tab-btn.active {
    color: var(--color-brand, #1E3A5F);
}

[data-theme="dark"] .notes-tab-btn.active::after {
    background: var(--color-brand, #1E3A5F);
}

[data-theme="dark"] .notes-content-area {
    background: #161b22;
}

[data-theme="dark"] .notes-section-title {
    color: #e6edf3;
}

[data-theme="dark"] .notes-overview-text,
[data-theme="dark"] .notes-keywords-list,
[data-theme="dark"] .notes-speakers-list,
[data-theme="dark"] .notes-action-text,
[data-theme="dark"] .notes-insights-list li,
[data-theme="dark"] .notes-transcript-text,
[data-theme="dark"] .notes-transcript-speaker {
    color: #e6edf3;
}

[data-theme="dark"] .notes-action-item {
    border-bottom-color: #30363d;
}

[data-theme="dark"] .notes-transcript-entry {
    border-bottom-color: #30363d;
}

[data-theme="dark"] .notes-transcript-entry:hover {
    background: #21262d;
}

[data-theme="dark"] .notes-ai-sidebar {
    background: #0d1117;
}

[data-theme="dark"] .notes-ai-header {
    background: #161b22;
    border-bottom-color: #30363d;
}

[data-theme="dark"] .notes-ai-prompt {
    background: #161b22;
    border-color: #30363d;
    color: #e6edf3;
}

[data-theme="dark"] .notes-ai-prompt:hover {
    background: #21262d;
    border-color: #484f58;
}

[data-theme="dark"] .notes-ai-input-container {
    background: #161b22;
    border-top-color: #30363d;
}

[data-theme="dark"] .notes-ai-input-row {
    background: #0d1117;
    border-color: #30363d;
}

[data-theme="dark"] .notes-ai-input {
    color: #e6edf3;
}

/* ==================== Skeleton UI Styles ==================== */

/* Base Skeleton Animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e8e8e8 37%,
        #f0f0f0 63%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Skeleton Text Elements */
.skeleton-text {
    height: 14px;
    border-radius: 4px;
}

.skeleton-label {
    width: 80px;
    height: 12px;
    margin-bottom: 12px;
}

.skeleton-title {
    width: 120px;
    height: 18px;
}

.skeleton-line {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-line:last-child {
    margin-bottom: 0;
}

/* Skeleton UI Components */
.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.skeleton-button {
    height: 36px;
    border-radius: 8px;
}

.skeleton-tab {
    width: 80px;
    height: 40px;
    border-radius: 0;
}

.skeleton-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.skeleton-keyword {
    width: 80px;
    height: 26px;
    border-radius: 13px;
}

.skeleton-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
}

.skeleton-search-bar {
    flex: 1;
    height: 40px;
    border-radius: 8px;
}

.skeleton-filter-btn {
    width: 70px;
    height: 32px;
    border-radius: 6px;
}

.skeleton-badge {
    width: 60px;
    height: 22px;
    border-radius: 11px;
}

/* Skeleton Content Wrapper */
.notes-skeleton-content {
    padding: 0;
}

/* Skeleton Sections */
.notes-skeleton-section {
    margin-bottom: 28px;
}

.notes-skeleton-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.notes-skeleton-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notes-skeleton-speakers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-skeleton-speaker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notes-skeleton-paragraph {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notes-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.notes-skeleton-list-item:last-child {
    border-bottom: none;
}

.notes-skeleton-insights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Skeleton Transcript */
.notes-skeleton-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.notes-skeleton-transcript {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notes-skeleton-entry {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.notes-skeleton-entry:last-child {
    border-bottom: none;
}

.notes-skeleton-entry-content {
    flex: 1;
}

.notes-skeleton-entry-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.notes-skeleton-entry-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Skeleton Actions */
.notes-skeleton-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.notes-skeleton-filters {
    display: flex;
    gap: 8px;
}

.notes-skeleton-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notes-skeleton-action-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.notes-skeleton-action-item:last-child {
    border-bottom: none;
}

.notes-skeleton-action-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notes-skeleton-action-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================== Empty State with Skeleton Background ==================== */

.notes-empty-skeleton-state {
    position: relative;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.notes-skeleton-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    filter: blur(1px);
    pointer-events: none;
    padding: 24px;
}

.notes-empty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.85) 100%
    );
    padding: 24px;
}

.notes-empty-card {
    max-width: 400px;
    text-align: center;
    padding: 32px;
    background: var(--color-surface);
    border-radius: 16px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.notes-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notes-empty-icon i {
    font-size: 28px;
    color: #ffffff;
}

.notes-empty-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.notes-empty-description {
    margin: 0 0 24px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.notes-empty-hint {
    margin: 12px 0 0 0;
    font-size: 12px;
    color: #8b949e;
}

.notes-empty-no-transcript {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-surface-subtle);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.notes-empty-no-transcript i {
    color: #8b949e;
}

.notes-empty-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.notes-empty-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-primary);
}

.notes-empty-feature i {
    color: #22c55e;
    font-size: 14px;
}

/* Generate Summary Button Styles */
.btn-notes-generate,
.btn-notes-generate-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-notes-generate:hover,
.btn-notes-generate-large:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-notes-generate:disabled,
.btn-notes-generate-large:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-notes-generate i,
.btn-notes-generate-large i {
    font-size: 14px;
}

.notes-add-action-manual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: transparent;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.notes-add-action-manual:hover {
    background: var(--color-surface-subtle);
    border-color: #8b949e;
    color: var(--color-text-primary);
}

/* AI Badge */
.notes-ai-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.notes-ai-badge i {
    color: #ffffff !important;
    margin-right: 4px;
}

/* AI Welcome State */
.notes-ai-welcome {
    text-align: center;
    padding: 24px 16px;
    margin-bottom: 16px;
}

.notes-ai-welcome-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notes-ai-welcome-icon i {
    font-size: 24px;
    color: #ffffff;
}

.notes-ai-welcome i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 12px;
}

.notes-ai-welcome h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.notes-ai-welcome p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* AI Sidebar Skeleton Prompts */
.notes-ai-prompts-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 4px;
}

.notes-ai-prompt-skeleton {
    padding: 14px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notes-ai-prompt-skeleton .skeleton-line {
    height: 12px;
    border-radius: 6px;
}

.notes-ai-hint {
    margin: 16px 0 0 0;
    padding: 0 4px;
    font-size: 11px;
    color: #8b949e;
    text-align: center;
    font-style: italic;
}

[data-theme="dark"] .notes-ai-prompt-skeleton {
    background: #161b22;
    border-color: #30363d;
}

[data-theme="dark"] .notes-ai-hint {
    color: #6e7681;
}

[data-theme="dark"] .notes-ai-welcome h4 {
    color: #e6edf3;
}

[data-theme="dark"] .notes-ai-welcome p {
    color: #8b949e;
}

/* ==================== Outline Tab (Otter.ai Style) ==================== */

.notes-outline-content {
    padding: 0 !important;
}

.notes-outline-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-secondary);
}

.notes-outline-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #8b949e;
}

.notes-outline-empty p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.notes-outline-hint {
    font-size: 12px;
    color: #8b949e;
}

.notes-outline-list {
    display: flex;
    flex-direction: column;
}

.notes-outline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.notes-outline-item:hover {
    background: var(--color-surface-subtle);
}

.notes-outline-item:last-child {
    border-bottom: none;
}

.notes-outline-marker {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outline-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-brand, #1E3A5F);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notes-outline-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notes-outline-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.notes-outline-summary {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notes-outline-time {
    font-size: 11px;
    color: var(--color-brand, #1E3A5F);
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    margin-top: 2px;
}

.notes-outline-time:hover {
    text-decoration: underline;
}

/* Dark theme */
[data-theme="dark"] .notes-outline-empty {
    color: #8b949e;
}

[data-theme="dark"] .notes-outline-empty i {
    color: #6e7681;
}

[data-theme="dark"] .notes-outline-item {
    border-bottom-color: #30363d;
}

[data-theme="dark"] .notes-outline-item:hover {
    background: #21262d;
}

[data-theme="dark"] .notes-outline-title {
    color: #e6edf3;
}

[data-theme="dark"] .notes-outline-summary {
    color: #8b949e;
}

/* Dark Theme Skeleton Styles */
[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        #21262d 25%,
        #30363d 37%,
        #21262d 63%
    );
    background-size: 200% 100%;
}

[data-theme="dark"] .notes-skeleton-list-item,
[data-theme="dark"] .notes-skeleton-entry,
[data-theme="dark"] .notes-skeleton-action-item {
    border-bottom-color: #30363d;
}

[data-theme="dark"] .notes-empty-overlay {
    background: linear-gradient(
        180deg,
        rgba(22, 27, 34, 0.85) 0%,
        rgba(22, 27, 34, 0.95) 50%,
        rgba(22, 27, 34, 0.85) 100%
    );
}

[data-theme="dark"] .notes-empty-card {
    background: #161b22;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .notes-empty-title {
    color: #e6edf3;
}

[data-theme="dark"] .notes-empty-description {
    color: #8b949e;
}

[data-theme="dark"] .notes-empty-no-transcript {
    background: #21262d;
    color: #8b949e;
}

[data-theme="dark"] .notes-empty-features {
    border-top-color: #30363d;
}

[data-theme="dark"] .notes-empty-feature {
    color: #e6edf3;
}

[data-theme="dark"] .notes-add-action-manual {
    border-color: #30363d;
    color: #8b949e;
}

[data-theme="dark"] .notes-add-action-manual:hover {
    background: #21262d;
    border-color: #484f58;
    color: #e6edf3;
}

[data-theme="dark"] .notes-ai-welcome h4 {
    color: #e6edf3;
}

[data-theme="dark"] .notes-ai-welcome p {
    color: #8b949e;
}

/* Keyword Tag Styling */
.notes-keyword-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f4ff;
    color: #4f46e5;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
}

[data-theme="dark"] .notes-keyword-tag {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

/* Speaker Bar Styling */
.notes-speaker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.notes-speaker-name {
    min-width: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.notes-speaker-bar {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.notes-speaker-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.notes-speaker-pct {
    min-width: 40px;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: right;
}

[data-theme="dark"] .notes-speaker-name {
    color: #e6edf3;
}

[data-theme="dark"] .notes-speaker-bar {
    background: #30363d;
}

[data-theme="dark"] .notes-speaker-pct {
    color: #8b949e;
}

/* Transcript Search Header */
.notes-transcript-content > .notes-transcript-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* Push buttons to the right, but keep them together */
.notes-transcript-content > .notes-transcript-header .notes-edit-transcript-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.notes-transcript-content > .notes-transcript-header .notes-cancel-edit-btn {
    flex-shrink: 0;
}

.notes-transcript-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 400px;
    padding: 8px 14px;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.notes-transcript-search i {
    color: #8b949e;
    font-size: 14px;
}

.notes-transcript-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--color-text-primary);
    outline: none;
}

.notes-transcript-search input::placeholder {
    color: #8b949e;
}

[data-theme="dark"] .notes-transcript-search {
    background: #21262d;
    border-color: #30363d;
}

[data-theme="dark"] .notes-transcript-search input {
    color: #e6edf3;
}

/* Actions Content Styles */
.notes-actions-content {
    max-width: 800px;
}

.notes-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.notes-actions-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.notes-actions-filters {
    display: flex;
    gap: 8px;
}

.notes-filter-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.notes-filter-btn:hover {
    background: var(--color-surface-subtle);
    border-color: #8b949e;
}

.notes-filter-btn.active {
    background: var(--color-brand, #1E3A5F);
    border-color: var(--color-brand, #1E3A5F);
    color: #fff;
}

.notes-action-content {
    flex: 1;
}

.notes-action-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap; /* Allow wrapping if needed */
    row-gap: 6px;
}

.notes-action-assignee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.notes-action-assignee-avatar {
    flex-shrink: 0;
}

.notes-action-assignee-name {
    white-space: nowrap; /* Keep name on one line */
}

.notes-action-due {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.notes-action-priority {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    flex-shrink: 0;
}

.notes-action-priority.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.notes-action-priority.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.notes-action-priority.priority-low {
    background: #dcfce7;
    color: #16a34a;
}

[data-theme="dark"] .notes-actions-count {
    color: #e6edf3;
}

[data-theme="dark"] .notes-filter-btn {
    border-color: #30363d;
    color: #8b949e;
}

[data-theme="dark"] .notes-filter-btn:hover {
    background: #21262d;
    border-color: #484f58;
}

[data-theme="dark"] .notes-filter-btn.active {
    background: var(--color-brand, #1E3A5F);
    border-color: var(--color-brand, #1E3A5F);
}

[data-theme="dark"] .notes-action-assignee,
[data-theme="dark"] .notes-action-due {
    color: #8b949e;
}

[data-theme="dark"] .notes-action-priority.priority-high {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

[data-theme="dark"] .notes-action-priority.priority-medium {
    background: rgba(217, 119, 6, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .notes-action-priority.priority-low {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

/* ==================== AI Chat Enhancements ==================== */

/* Typing Indicator */
.notes-ai-message .typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.notes-ai-message .typing-indicator span {
    width: 8px;
    height: 8px;
    background: #8b949e;
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.notes-ai-message .typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.notes-ai-message .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.notes-ai-message .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat Message Content Formatting */
.notes-ai-message-content {
    word-break: break-word;
    line-height: 1.5;
}

.notes-ai-message-content code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 0.9em;
}

.notes-ai-message-content strong {
    font-weight: 600;
}

.notes-ai-message-content ul,
.notes-ai-message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.notes-ai-message-content li {
    margin: 4px 0;
}

/* AI Empty State */
.notes-ai-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-secondary);
}

.notes-ai-empty-state i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notes-ai-empty-state p {
    font-size: 13px;
    margin: 0;
}

/* Disabled Input State */
.notes-ai-input:disabled,
.notes-ai-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dark Theme Enhancements */
[data-theme="dark"] .notes-ai-message-content code {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .notes-ai-message .typing-indicator span {
    background: var(--color-brand, #1E3A5F);
}

[data-theme="dark"] .notes-ai-empty-state {
    color: #8b949e;
}

/* ==================== Notes Modal ==================== */

.notes-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notes-modal {
    background: var(--color-surface);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.notes-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-modal-header h3 i {
    color: #6b7280;
}

.notes-modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.notes-modal-close:hover {
    background: var(--color-surface-subtle);
    color: var(--color-text-primary);
}

.notes-modal-body {
    padding: 1.25rem;
}

.notes-modal-body p {
    margin: 0 0 1rem 0;
    color: #4b5563;
    line-height: 1.5;
}

.notes-modal-hint {
    font-weight: 500;
    color: var(--color-text-primary) !important;
}

.notes-modal-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notes-modal-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.875rem;
}

.notes-modal-list li i {
    color: #9ca3af;
    width: 16px;
    text-align: center;
}

.notes-modal-warning {
    color: #dc2626 !important;
    font-weight: 500;
}

.notes-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-subtle);
    border-radius: 0 0 12px 12px;
}

.notes-modal-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-modal-footer .btn-primary {
    background: #1f2328;
    color: white;
    border: 1px solid #1f2328;
}

.notes-modal-footer .btn-primary:hover {
    background: #32383f;
}

.notes-modal-footer .btn-secondary {
    background: var(--color-surface);
    color: #4b5563;
    border: 1px solid var(--color-border);
}

.notes-modal-footer .btn-secondary:hover {
    background: var(--color-surface-subtle);
    border-color: #9ca3af;
}

.notes-modal-footer .btn-danger {
    background: #dc2626;
    color: white;
    border: 1px solid #dc2626;
}

.notes-modal-footer .btn-danger:hover {
    background: #b91c1c;
}

/* Share Modal Specific */
.notes-share-modal {
    max-width: 520px;
}

.notes-share-participants {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.notes-share-participant {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-surface-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.notes-share-participant:hover {
    background: var(--color-surface-subtle);
}

.notes-share-participant input {
    flex-shrink: 0;
}

.notes-share-participant .participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.notes-share-participant .participant-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.notes-share-participant .participant-name {
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.notes-share-participant .participant-email {
    color: #6b7280;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes-share-no-participants {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.notes-share-custom-email {
    margin-top: 1rem;
}

.notes-share-custom-email label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.notes-share-custom-email input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.15s ease;
}

.notes-share-custom-email input:focus {
    outline: none;
    border-color: var(--color-text-primary);
    box-shadow: 0 0 0 3px rgba(31, 35, 40, 0.1);
}

/* More Options Dropdown */
.notes-more-dropdown {
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.notes-more-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.notes-more-option:hover {
    background: var(--color-surface-subtle);
    color: var(--color-text-primary);
}

.notes-more-option i {
    width: 16px;
    text-align: center;
    color: #9ca3af;
}

.notes-more-option:hover i {
    color: #4b5563;
}

.notes-more-option.notes-more-danger {
    color: #dc2626;
}

.notes-more-option.notes-more-danger:hover {
    background: #fef2f2;
}

.notes-more-option.notes-more-danger i {
    color: #dc2626;
}

.notes-more-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.25rem 0;
}

/* Toast Notifications */
.notes-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.notes-toast-success {
    background: #059669;
    color: white;
}

.notes-toast-error {
    background: #dc2626;
    color: white;
}

.notes-toast-info {
    background: #1f2328;
    color: white;
}

.notes-toast i {
    font-size: 1rem;
}

/* ==================== Otter.ai Style Fixed Bottom Player ==================== */

.notes-media-player.otter-style {
    position: sticky;
    bottom: 0;
    height: 56px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
    margin: 1rem;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notes-media-player.otter-style audio {
    display: none;
}

.notes-media-player.otter-style .player-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notes-media-player.otter-style .player-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.notes-media-player.otter-style .player-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    position: relative;
    font-size: 14px;
}

.notes-media-player.otter-style .player-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.notes-media-player.otter-style .player-btn.play-pause {
    width: 42px;
    height: 42px;
    background: var(--color-surface);
    color: #0f172a;
    font-size: 16px;
}

.notes-media-player.otter-style .player-btn.play-pause:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

.notes-media-player.otter-style .player-btn.skip-back,
.notes-media-player.otter-style .player-btn.skip-forward {
    position: relative;
}

.notes-media-player.otter-style .player-btn.skip-back span,
.notes-media-player.otter-style .player-btn.skip-forward span {
    position: absolute;
    font-size: 8px;
    font-weight: 700;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

.notes-media-player.otter-style .player-btn.skip-back i,
.notes-media-player.otter-style .player-btn.skip-forward i {
    position: relative;
    top: -3px;
}

.notes-media-player.otter-style .speed-btn {
    padding: 0.375rem 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.notes-media-player.otter-style .speed-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Download button */
.notes-media-player.otter-style .player-btn.download {
    margin-left: 0.5rem;
    color: #94a3b8;
}

.notes-media-player.otter-style .player-btn.download:hover {
    color: var(--color-brand, #1E3A5F);
    background: rgba(30, 58, 95, 0.1);
}

.notes-media-player.otter-style .player-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notes-media-player.otter-style .player-time {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    min-width: 45px;
}

.notes-media-player.otter-style .player-time.total {
    text-align: right;
}

.notes-media-player.otter-style .player-progress-bar {
    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.notes-media-player.otter-style .progress-track {
    flex: 1;
    height: 4px;
    background: #475569;
    border-radius: 2px;
    position: relative;
}

.notes-media-player.otter-style .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-brand, #1E3A5F) 0%, #0F2440 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.notes-media-player.otter-style .progress-handle {
    width: 12px;
    height: 12px;
    background: var(--color-surface);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notes-media-player.otter-style .player-progress-bar:hover .progress-handle {
    opacity: 1;
}

.notes-media-player.otter-style .player-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-media-player.otter-style .volume-slider-container {
    width: 80px;
    display: none;
}

.notes-media-player.otter-style .player-right:hover .volume-slider-container {
    display: block;
}

.notes-media-player.otter-style .volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: #475569;
    border-radius: 2px;
    outline: none;
}

.notes-media-player.otter-style .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--color-surface);
    border-radius: 50%;
    cursor: pointer;
}

.notes-media-player.otter-style .volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--color-surface);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Transcript Highlight - Active Entry */
.notes-transcript-entry.active-highlight {
    background: rgba(30, 58, 95, 0.1);
    border-left: 3px solid var(--color-brand, #1E3A5F);
    margin-left: -3px;
    padding-left: calc(1.5rem + 3px);
}

.notes-transcript-entry.active-highlight:hover {
    background: rgba(30, 58, 95, 0.15);
}

/* Responsive - smaller player on mobile */
@media (max-width: 1024px) {
    .notes-media-player.otter-style {
        margin: 0.75rem;
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
}

/* Dark Theme Support for Otter.ai Player */
[data-theme="dark"] .notes-media-player.otter-style {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border-color: #1e293b;
}

[data-theme="dark"] .notes-media-player.otter-style .player-btn.play-pause {
    background: #e2e8f0;
    color: #0f172a;
}

[data-theme="dark"] .notes-media-player.otter-style .player-btn.play-pause:hover {
    background: #cbd5e1;
}

[data-theme="dark"] .notes-transcript-entry.active-highlight {
    background: rgba(30, 58, 95, 0.15);
    border-left-color: var(--color-brand, #1E3A5F);
}

[data-theme="dark"] .notes-transcript-entry.active-highlight:hover {
    background: rgba(30, 58, 95, 0.2);
}

/* Audio Player Placeholder */
.notes-player-placeholder {
    opacity: 0.6;
}

.notes-player-placeholder .player-controls button {
    cursor: not-allowed;
}

.notes-player-placeholder .player-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 12px;
    margin-left: auto;
    padding-right: 1rem;
}

.notes-player-placeholder .player-status i {
    color: var(--color-brand, #1E3A5F);
}

/* ==================== AI Processing Modal ==================== */
/* Full-screen overlay for long-running AI operations */

.ai-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ai-processing-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-processing-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ai-processing-overlay.active .ai-processing-modal {
    transform: scale(1);
}

.ai-processing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.ai-processing-icon .spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #0F2440;
    animation: ai-spin 1.2s linear infinite;
}

.ai-processing-icon .spinner-ring:nth-child(2) {
    width: 65px;
    height: 65px;
    top: 7.5px;
    left: 7.5px;
    border-top-color: var(--color-brand, #1E3A5F);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.ai-processing-icon .spinner-ring:nth-child(3) {
    width: 50px;
    height: 50px;
    top: 15px;
    left: 15px;
    border-top-color: #06b6d4;
    animation-duration: 1s;
}

.ai-processing-icon .ai-brain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #e2e8f0;
    animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ai-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.ai-processing-title {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 0.5rem;
}

.ai-processing-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.ai-processing-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.ai-processing-status .status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: status-blink 1s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ai-processing-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ai-processing-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0F2440, var(--color-brand, #1E3A5F), #06b6d4);
    background-size: 200% 100%;
    animation: progress-shimmer 2s linear infinite;
    width: 100%;
}

@keyframes progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ai-processing-tip {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.ai-processing-tip i {
    color: #fbbf24;
    margin-right: 0.25rem;
}

/* Light theme adjustments */
[data-theme="light"] .ai-processing-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .ai-processing-title {
    color: #0f172a;
}

[data-theme="light"] .ai-processing-subtitle {
    color: #64748b;
}

[data-theme="light"] .ai-processing-icon .ai-brain {
    color: #334155;
}

