/* Nightingale Conant Dashboard - Custom Styles */

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: #ffd700;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Progress indicators */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Compact Track Page Action Buttons */
.track-actions .btn,
.track-actions .btn-group .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    line-height: 1.2;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    min-height: 2rem; /* Ensure consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Special handling for buttons with longer text */
.track-actions .btn {
    max-width: 120px; /* Limit button width to force wrapping */
}

/* Icon spacing in compact buttons */
.track-actions .btn .bi {
    margin-right: 0.25rem;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Badge styling in compact buttons */
.track-actions .btn .badge {
    font-size: 0.65rem;
    margin-left: 0.25rem;
    white-space: nowrap; /* Keep badge text on one line */
}

/* Progress Summary Boxes */
.progress-summary-box {
    margin-bottom: 1rem;
}

.progress-summary-box .card {
    height: 100%;
    min-height: 100px;
}

.progress-summary-box .card-body {
    padding: 0.75rem 0.5rem;
}

.progress-summary-box .card-title {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.progress-summary-box .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
}

.progress-summary-box .h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Compact button group styling */
.track-actions .btn-group .btn {
    max-width: 80px; /* Smaller for radio buttons */
}

/* Ensure proper spacing between compact buttons */
.track-actions {
    gap: 0.375rem;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Ensure consistent styling for all completed improvement buttons */
.btn-start-improvements[data-completed="true"],
.btn-light.btn-start-improvements {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #212529 !important;
    font-weight: 500 !important;
}

/* Remove hover effects for completed improvement buttons */
.btn-start-improvements[data-completed="true"]:hover,
.btn-light.btn-start-improvements:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #212529 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Disabled state (if needed) */
.btn-start-improvements[disabled] {
    color: #6c757d !important;
}

/* Text utilities */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search highlight */
.search-highlight {
    background-color: #fff3cd !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom scrollbars for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Content display improvements */
.content-area {
    position: relative;
}

.section-text {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 0;
    color: #495057;
}

/* Section editing */
.section-card.editing {
    border: 2px solid #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.edit-textarea {
    resize: vertical;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.edit-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.edit-area .btn-group {
    display: flex;
    gap: 0.25rem;
}

/* Status indicators */
.status-complete {
    color: #198754;
}

.status-pending {
    color: #fd7e14;
}

.status-not-started {
    color: #6c757d;
}

/* Animation for smooth transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Print styles */
@media print {
    .navbar,
    .btn,
    .card-header .btn-group,
    .breadcrumb {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .table {
        font-size: 0.8rem;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* This can be extended later for dark mode support */
}

/* Accessibility improvements */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Error states */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success states */
.is-valid {
    border-color: #198754;
}

.valid-feedback {
    display: block;
    color: #198754;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Speaker-related button styling */
.speaker-edit-btn,
.speaker-break-btn,
.ai-suggest-btn {
    background-color: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
    transition: all 0.2s ease-in-out;
}

.speaker-edit-btn:hover,
.speaker-break-btn:hover,
.ai-suggest-btn:hover {
    background-color: #e9ecef;
    border-color: #495057;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Specific styling for AI suggest button to distinguish it */
.ai-suggest-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff3cd 100%);
    border-color: #ffc107;
    position: relative;
}

.ai-suggest-btn:hover {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffcd39;
    color: #856404;
}

.ai-suggest-btn:disabled {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* Add a subtle icon indicator for speaker buttons */
.speaker-edit-btn .bi-person-gear,
.speaker-break-btn .bi-plus-circle,
.ai-suggest-btn .bi-robot {
    color: #6c757d;
    transition: color 0.2s ease-in-out;
}

.speaker-edit-btn:hover .bi-person-gear,
.speaker-break-btn:hover .bi-plus-circle {
    color: #495057;
}

.ai-suggest-btn:hover .bi-robot {
    color: #856404;
}

/* Improved button group layout for smaller screens */
@media (max-width: 992px) {
    .card-header .btn-group {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .card-header .btn-sm {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }
    
    .card-header .btn-sm .bi {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }
    
    .card-header .btn-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .card-header .btn-sm {
        font-size: 0.65rem;
        padding: 0.2rem 0.3rem;
        margin: 1px;
    }
}

/* Redline styles - improved for better readability */
.redline-content {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.8;
    font-size: 0.95rem;
}

.redline-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-left: 4px solid #ffc107;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.redline-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 1rem;
    background-color: #fdfdfd;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
}

/* Improved diff highlighting with better contrast */
.deletion-text {
    text-decoration: line-through;
    background-color: #f5c6cb;
    color: #721c24;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    margin: 0 1px;
}

.addition-text {
    background-color: #d4edda;
    color: #155724;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    margin: 0 1px;
    border: 1px solid #c3e6cb;
}

/* ============================================================================
   REDLINE CORE STYLES - REMOVED (Now from Python)
   ============================================================================
   Core redline comparison styles (.removed-text, .added-text, .removed-para, 
   .added-para) are now dynamically injected from Python for consistency.
   
   SINGLE SOURCE OF TRUTH:
   mod_core.mod_utils_general.utils_text_format_conversions.get_redline_css_styles()
   
   These styles are automatically available in all templates via Flask context
   processor. See mod_webapp/app.py: inject_redline_css()
   
   Container/layout styles for redline content remain below.
   ============================================================================ */

.paragraph-break-indicator {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8em;
    border: 1px solid #dee2e6;
    font-family: monospace;
    display: inline-block;
    margin: 0 2px;
}

.unchanged-text {
    color: #495057;
    line-height: 1.6;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.changed-text {
    color: #495057;
    line-height: 1.6;
    padding: 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.375rem;
}

/* Side-by-side comparison styling */
.original-text-box,
.revised-text-box {
    padding: 1rem;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: 200px;
    word-wrap: break-word;
}

.original-text-box {
    background-color: #fff5f5;
    border: 1px solid #fecaca;
    color: #7f1d1d;
}

.revised-text-box {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #14532d;
}

.section-header pre {
    background-color: #e9ecef;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
}

.section-redline {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Legacy redline styles - keeping for backward compatibility but improved */
.redline-text s {
    text-decoration: line-through;
    background-color: #f5c6cb;
    color: #721c24;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.redline-text .text-success {
    background-color: #d4edda !important;
    color: #155724 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: 500 !important;
    border: 1px solid #c3e6cb !important;
}

.redline-text .bg-light {
    background-color: #f8f9fa !important;
}

/* Enhanced alert styling for redline context */
.redline-content .alert {
    border-radius: 0.375rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* AI Note highlighting for redline view */
.ai-note-highlight {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    margin: 0 2px;
    font-style: italic;
    cursor: help;
    transition: background-color 0.2s ease;
}

.ai-note-highlight:hover {
    background-color: #e9ecef;
    color: #495057;
}

/* Edit History Modal - Use White Background Like Pending Changes */
.modal-body {
    background-color: #ffffff !important; /* White background like Pending Changes */
    color: #495057 !important; /* Dark text for readability on white background */
    padding: 0.75rem; /* Reduce default modal padding */
    line-height: 1.4; /* Tighter line spacing */
}

/* Edit History Tooltip Styling */
.edits-tooltip {
    background-color: #ffffff !important;
    color: #495057 !important;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.edits-tooltip .tooltip-content {
    background-color: #ffffff !important;
    color: #495057 !important;
    padding: 0.375rem; /* Reduced from 0.5rem */
}

.edits-tooltip .tooltip-header {
    background-color: #f8f9fa;
    color: #495057 !important;
    padding: 0.375rem; /* Reduced from 0.5rem */
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 0.9rem; /* Slightly smaller header */
}

.edits-tooltip .tooltip-body {
    color: #495057 !important;
    padding: 0.25rem; /* Add some padding to body */
}

/* Edit History Items */
.edit-history-item {
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    padding: 0.375rem; /* Reduced from 0.5rem */
    border: none; /* Remove unnecessary borders */
    border-radius: 0.25rem;
    background-color: #f8f9fa;
}

.edit-history-item .edit-metadata {
    margin-bottom: 0.125rem; /* Reduced from 0.25rem */
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: #6c757d;
    line-height: 1.2; /* Tighter line height */
}

.edit-history-item .edit-comparison {
    color: #495057 !important; /* Ensure text is visible */
    font-size: 0.85rem; /* Slightly smaller text */
    line-height: 1.2; /* Even tighter line height */
    margin-top: 0.125rem; /* Reduce space above comparison */
}

/* Reduce spacing around before/after content specifically */
.edits-tooltip .before-after p,
.edits-tooltip .before-after div {
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove default padding */
}

.edits-tooltip .before-after br {
    line-height: 1.1; /* Minimal line spacing for breaks */
}

/* Remove comparison header styling since we removed it */
.comparison-header {
    display: none;
}

.comparison-content {
    margin-top: 0; /* Remove top margin since header is gone */
}

/* Modal header keeps dark theme for contrast */
.modal-header {
    background-color: #343a40 !important; /* Dark header */
    color: #ffffff !important;
    border-bottom: 1px solid #495057 !important;
}

.modal-header .modal-title {
    color: #ffffff !important;
}

.modal-header .btn-close {
    filter: invert(1); /* Make close button white */
}

/* Edit History Before/After Text Styling */
.edits-tooltip .before-after {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.125rem; /* Reduced by 50% from 0.25rem */
    margin-bottom: 0.0625rem; /* Reduced by 50% from 0.125rem */
    border-left: 3px solid #007bff;
    text-align: left; /* Left-align the entire content */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Modern alternative to word-wrap */
    white-space: pre-wrap; /* Preserve whitespace but allow wrapping */
    max-width: 100%; /* Ensure it doesn't exceed container width */
    font-size: 0.8rem; /* Smaller text */
    line-height: 1.2; /* Even tighter line height */
}

/* Align Before/After text content */
.edits-tooltip .before-after strong {
    display: inline-block;
    width: 60px; /* Reduced from 70px */
    font-weight: 600;
    vertical-align: top; /* Ensure proper vertical alignment */
    text-align: left; /* Left-align the labels */
    font-size: 0.75rem; /* Smaller label text */
}

/* Improve spacing and alignment for the entire before/after block */
.edits-tooltip .before-after br + strong {
    margin-top: 0.0625rem; /* Reduced by 50% from 0.125rem */
}

.edits-tooltip .text-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    padding: 0.0625rem 0.125rem; /* Reduced by 50% */
    border-radius: 0.125rem;
    text-decoration: line-through;
    margin: 0; /* Remove any margins */
}

.edits-tooltip .text-success {
    background-color: #d4edda !important;
    color: #155724 !important;
    padding: 0.0625rem 0.125rem; /* Reduced by 50% */
    border-radius: 0.125rem;
    font-weight: 500;
    margin: 0; /* Remove any margins */
}

/* Ensure all text in edit history is visible */
.edits-tooltip * {
    color: #495057 !important;
}

/* Revert button styling in edit history */
.edits-tooltip .revert-btn {
    font-size: 0.7rem; /* Smaller button text */
    padding: 0.125rem 0.375rem; /* Reduced padding */
    border-radius: 0.2rem;
    transition: all 0.2s ease;
}

.edits-tooltip .revert-btn:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.edits-tooltip .revert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.edits-tooltip .revert-btn.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.edits-tooltip .revert-btn.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.edits-tooltip .text-danger {
    color: #721c24 !important;
}

.edits-tooltip .text-success {
    color: #155724 !important;
}

.edits-tooltip .text-muted {
    color: #6c757d !important;
}

/* Reverted revision styling */
.edits-tooltip .reverted-revision {
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
    opacity: 0.8;
}

.edits-tooltip .reverted-notice {
    padding: 0.5rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.edits-tooltip .reverted-notice i {
    color: #6c757d;
    margin-right: 0.25rem;
}

.edits-tooltip .expand-reverted {
    color: #6c757d !important;
    text-decoration: none;
}

.edits-tooltip .expand-reverted:hover {
    color: #495057 !important;
}

.edits-tooltip .reverted-details {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

/* Badge text styling for better readability */
.badge.bg-primary {
    color: #ffffff !important; /* White text on primary (blue) background */
}

.badge.bg-secondary {
    color: #ffffff !important; /* White text on secondary (gray) background */
}

/* Ensure badge text is visible in modals and tooltips */
.modal-body .badge.bg-primary,
.edits-tooltip .badge.bg-primary,
.edit-type .badge.bg-primary,
.edit-metadata .badge.bg-primary {
    color: #ffffff !important; /* White text on blue background */
    background-color: #007bff !important; /* Ensure blue background */
}

.modal-body .badge.bg-secondary,
.edits-tooltip .badge.bg-secondary,
.edit-type .badge.bg-secondary,
.edit-metadata .badge.bg-secondary {
    color: #ffffff !important; /* White text on gray background */
    background-color: #6c757d !important; /* Ensure gray background */
}

.modal-body .badge:not(.bg-primary):not(.bg-secondary) {
    color: #000000 !important; /* Dark text on light colored badge backgrounds */
}

/* Specific targeting for edit history badges */
.edits-tooltip .edit-type,
.edit-history-item .edit-type {
    background-color: #007bff !important; /* Blue background */
    color: #ffffff !important; /* White text */
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Make sure all text in modals is readable on white background */
.modal .text-muted {
    color: #6c757d !important; /* Standard muted gray for white background */
}

.redline-content .alert-info {
    background-color: #cff4fc;
    border-color: #b0e7ef;
    color: #055160;
}

.redline-content .alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0a3622;
}

.redline-content .alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

/* Speaker-aware diff styling */
.redline-content .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.redline-content .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.redline-content .card-header h6 {
    color: #495057;
    margin: 0;
}

.redline-content .card-body {
    padding: 1rem;
}

.redline-content code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: #000000;
}

/* Responsive improvements for redline */
@media (max-width: 768px) {
    .redline-text {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    .redline-header {
        padding: 0.75rem;
    }
    
    .section-header pre {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .original-text-box,
    .revised-text-box {
        font-size: 0.8rem;
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .section-redline {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* ===== PROCESSING STATUS BAR STYLES ===== */
#processing-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#processing-status-bar.show {
    transform: translateY(0);
}

.status-bar-content {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    min-height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.status-bar-content.processing {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.status-bar-content.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.status-bar-content.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.status-bar-content.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* ===== CIRCULAR PROGRESS INDICATOR ===== */
.circular-progress {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress .progress-background {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 4;
}

.circular-progress .progress-bar {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 188.5; /* 2 * PI * 30 (radius) */
    stroke-dashoffset: 188.5;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.circular-progress .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: white;
    line-height: 1;
}

/* Animation for circular progress */
.circular-progress.animate .progress-bar {
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.7; }
}

/* Status bar messages */
.status-messages {
    flex: 1;
    margin-right: 15px;
}

.primary-message {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.secondary-message {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.2;
}

/* Cancel button */
.cancel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cancel-btn:active {
    transform: translateY(0);
}

/* Progress bar (linear fallback) */
.linear-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-right: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.linear-progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 0%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .status-bar-content {
        padding: 10px 15px;
        min-height: 50px;
    }
    
    .circular-progress {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
    
    .circular-progress .progress-text {
        font-size: 10px;
    }
    
    .primary-message {
        font-size: 14px;
    }
    
    .secondary-message {
        font-size: 12px;
    }
    
    .cancel-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .linear-progress {
        width: 120px;
        margin-right: 10px;
    }
}

/* ===== TRACK CIRCULAR PROGRESS INDICATORS ===== */
.track-progress-circle {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-block;
}

.track-progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.track-progress-circle .track-progress-background {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 2;
}

.track-progress-circle .track-progress-bar {
    fill: none;
    stroke: #007bff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 87.96; /* 2 * PI * 14 (radius) */
    stroke-dashoffset: 87.96;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.track-progress-circle .track-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    font-weight: 600;
    color: #007bff;
    line-height: 1;
}

/* Animation for track progress */
.track-progress-circle.animate .track-progress-bar {
    animation: trackProgressPulse 2s ease-in-out infinite;
}

@keyframes trackProgressPulse {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.6; }
}

/* Success state */
.track-progress-circle.complete .track-progress-bar {
    stroke: #28a745;
    animation: none;
}

.track-progress-circle.complete .track-progress-text {
    color: #28a745;
}

/* Error state */
.track-progress-circle.error .track-progress-bar {
    stroke: #dc3545;
    animation: none;
}

.track-progress-circle.error .track-progress-text {
    color: #dc3545;
}

/* Responsive adjustments for track progress */
@media (max-width: 768px) {
    .track-progress-circle {
        width: 28px;
        height: 28px;
    }
    
    .track-progress-circle .track-progress-text {
        font-size: 8px;
    }
}

/* Transcript Fixed Badge - Clickable Style */
.transcript-fixed-badge {
    transition: all 0.2s ease;
}

.transcript-fixed-badge:hover {
    background-color: #0d6efd !important; /* Bootstrap primary blue on hover */
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Disabled button styles */
.btn.disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-group label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #6c757d !important;
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
}

.btn-group input[type="radio"]:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
    color: #6c757d !important;
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
}

.btn-group input[type="radio"]:disabled:checked + label {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

/* Tooltip for disabled buttons */
.btn.disabled[data-bs-toggle="tooltip"] {
    pointer-events: auto;
}

.btn-group label.disabled[data-bs-toggle="tooltip"] {
    pointer-events: auto;
}

/* Progress indicators for improvement buttons */
.btn-with-progress {
    position: relative;
    overflow: hidden;
}

.improvement-tooltip,
.improvement-progress-tooltip {
    max-width: 550px !important;
    min-width: 450px !important;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Progress tooltip specific styles */
.improvement-progress-tooltip .tooltip-inner {
    max-width: none !important;
    min-width: 450px !important;
    background: white !important;
    color: #333 !important;
    padding: 0 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Colored pills for progress tooltip - override any parent styles */
.improvement-progress-tooltip .tooltip-inner span[style*="background: #28a745"] {
    background: #28a745 !important; /* Green */
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.improvement-progress-tooltip .tooltip-inner span[style*="background: #fd7e14"] {
    background: #fd7e14 !important; /* Orange */
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.improvement-progress-tooltip .tooltip-inner span[style*="background: #6c757d"] {
    background: #6c757d !important; /* Gray */
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.improvement-progress-tooltip .tooltip-inner span[style*="background: #ffc107"] {
    background: #ffc107 !important; /* Yellow */
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

/* Enhanced progress overlay styles */
.btn-with-progress {
    position: relative;
    overflow: hidden;
}

/* Disabled button tooltip support */
.btn[disabled]:hover,
.btn.disabled:hover {
    pointer-events: auto !important;
    cursor: default !important;
}

.disabled-button-tooltip .tooltip-inner {
    background: #6c757d !important;
    color: white !important;
}

.improvement-tooltip .tooltip-header {
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e9ecef;
    color: #495057;
    font-size: 1rem;
}

.improvement-tooltip .prompt-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.improvement-tooltip .prompt-item {
    margin: 6px 0;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.improvement-tooltip .prompt-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.improvement-tooltip .prompt-status.completed {
    background-color: #28a745;
}

.improvement-tooltip .prompt-status.running {
    background-color: #007bff;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.improvement-tooltip .prompt-status.pending-review {
    background-color: #ffc107;
}

.improvement-tooltip .prompt-status.needs-more-runs {
    background-color: #6c757d;
}

.improvement-tooltip .prompt-status.not-started {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
}

.improvement-tooltip .prompt-status.error {
    background-color: #dc3545;
}

@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.5; }
}

.improvement-tooltip .prompt-details {
    flex-grow: 1;
    min-width: 0;
}

.improvement-tooltip .prompt-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.improvement-tooltip .prompt-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

.improvement-tooltip .overall-summary {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 2px solid #e9ecef;
    font-size: 0.85rem;
    text-align: center;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    color: #495057;
}

/* Button status indicators - removed per user feedback */
.section-improvement-status {
    position: relative;
}

/* Progress bars for individual prompts in tooltips */
.improvement-tooltip .prompt-progress {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.improvement-tooltip .prompt-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.improvement-tooltip .prompt-progress-bar.completed {
    background-color: #28a745;
}

.improvement-tooltip .prompt-progress-bar.running {
    background-color: #007bff;
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

.improvement-tooltip .prompt-progress-bar.pending-review {
    background-color: #ffc107;
}

.improvement-tooltip .prompt-progress-bar.needs-more-runs {
    background-color: #6c757d;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Compact run history in tooltips */
.improvement-tooltip .run-history {
    font-size: 0.75rem;
    margin-top: 4px;
    color: #6c757d;
}

.improvement-tooltip .run-item {
    display: inline-block;
    margin-right: 4px;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
}

.improvement-tooltip .run-item.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.improvement-tooltip .run-item.changes {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.improvement-tooltip .run-item.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.improvement-tooltip .run-item.running {
    background-color: #cce7ff;
    border-color: #99d3ff;
    color: #004085;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* Override Bootstrap tooltip styling for improvement tooltips */
.tooltip.bs-tooltip-top .tooltip-inner,
.tooltip.bs-tooltip-bottom .tooltip-inner,
.tooltip.bs-tooltip-start .tooltip-inner,
.tooltip.bs-tooltip-end .tooltip-inner {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-width: 520px !important;
    min-width: 480px !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    text-align: left !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-color: #fff !important;
}

/* Ensure tooltip arrow matches the light theme */
.tooltip.bs-tooltip-top .tooltip-arrow {
    border-top-color: #dee2e6 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow {
    border-bottom-color: #dee2e6 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow {
    border-left-color: #dee2e6 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow {
    border-right-color: #dee2e6 !important;
}

/* Force light theme for all tooltips to prevent dark background issues */
.tooltip {
    z-index: 1070 !important;
}

.tooltip .tooltip-inner {
    background-color: #ffffff !important;
    color: #333333 !important;
    text-align: left !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.tooltip .tooltip-inner * {
    color: inherit !important;
    background: transparent !important;
}

/* Ensure tooltip arrows are white */
.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #ffffff !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #ffffff !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #ffffff !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #ffffff !important;
}

/* ===== COMPREHENSIVE PROCESS STATUS BAR ===== */
/* Z-INDEX HIERARCHY:
   - Modals: 1055+ (Bootstrap default)
   - Active Processes bar: 1030 (above page content, below modals)
   - Sidebar sticky-top: 1020 (Bootstrap default for sticky)
   - Tooltips: 1070 (Bootstrap default)
*/
.comprehensive-process-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.comprehensive-process-bar.show {
    display: block !important;
}

/* Collective Progress Bar Styling */
.collective-progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collective-progress-bar {
    width: 120px;
    height: 12px;
    background-color: rgba(13, 110, 253, 0.15);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.collective-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd 0%, #0b5ed7 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
}

.collective-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.collective-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    min-width: 2.5rem;
    text-align: center;
}

.process-table {
    border-top: 1px solid #dee2e6;
    background: #fff;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.process-table table {
    font-size: 0.875rem;
}

.process-table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem;
}

.process-table td {
    padding: 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
}

.process-name {
    font-weight: 600;
    color: #212529;
}

.process-operation-type {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.running {
    background-color: #cff4fc;
    color: #055160;
    border: 1px solid #b6effb;
}

.status-badge.completed {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.status-badge.error, .status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c2c7;
}

.status-badge.cancelled {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.process-progress {
    min-width: 120px;
}

.progress-mini {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd 0%, #0b5ed7 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-text {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

.process-runtime {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #6c757d;
}

.process-details {
    font-size: 0.75rem;
    color: #495057;
    line-height: 1.3;
}

.process-details-main {
    font-weight: 500;
    color: #212529;
}

.process-details-sub {
    color: #6c757d;
    margin-top: 0.125rem;
}

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

.btn-process-cancel {
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* Pulse animation for running processes */
.process-row.running {
    animation: processPulse 2s ease-in-out infinite alternate;
}

@keyframes processPulse {
    from {
        background-color: transparent;
    }
    to {
        background-color: rgba(13, 110, 253, 0.05);
    }
}

/* Hover effects */
.process-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Child process (batch) rows */
.process-row.child-process {
    background-color: rgba(0, 0, 0, 0.02);
    font-size: 0.85em;
}

.process-row.child-process td {
    padding-top: 4px;
    padding-bottom: 4px;
}

.process-row.child-process .child-name {
    padding-left: 24px;
    color: #666;
}

.process-row.child-process.running .child-name {
    color: #0d6efd;
}

.process-row.child-process.completed .child-name {
    color: #198754;
}

.process-row.child-summary {
    background-color: rgba(108, 117, 125, 0.1);
}

.child-summary-text {
    padding-left: 24px;
    color: #666;
    font-style: italic;
}

.child-details {
    color: #888;
    font-size: 0.9em;
}

/* Toggle button styling */
#toggleProcessDetails {
    transition: transform 0.3s ease;
}

#toggleProcessDetails.expanded {
    transform: rotate(180deg);
}

/* Empty state */
.process-table-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

/* ===== GLOBAL SINGLE-PROCESS STATUS BAR ===== */
.global-processing-bar {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1029;
    display: none;
    transition: all 0.3s ease;
}

.global-processing-bar.show {
    display: block !important;
}

.global-processing-bar.status-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.global-processing-bar.status-error {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
}

.global-processing-bar.status-warning {
    background: linear-gradient(135deg, #fd7e14 0%, #fd6c0b 100%);
}

.global-processing-bar.processing-pulse {
    animation: processingPulse 2s ease-in-out infinite alternate;
}

@keyframes processingPulse {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}

.processing-content {
    padding: 0.5rem 0;
}

.processing-message {
    font-size: 0.875rem;
    margin: 0;
}

.processing-submessage {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0;
}

.processing-progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.processing-progress-bar {
    width: 100px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.processing-progress-fill {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.processing-progress-text {
    color: rgba(255, 255, 255, 0.9);
    min-width: 3rem;
    text-align: right;
}

/* ===== INTRO COMPLETION INDICATOR STYLING ===== */
.intro-indicator {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
    min-width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
    line-height: 1;
}

.intro-indicator i {
    font-size: 0.8rem;
}

.intro-indicator.bg-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.intro-indicator.bg-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    opacity: 0.7;
}

/* Hover effects for intro indicators */
.intro-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Ensure proper spacing in tracks column */
.d-flex.align-items-center.justify-content-center.gap-1 {
    flex-wrap: nowrap;
}

/* ===== SPEAKER HINT STYLING ===== */
/* Speaker hint classes for transcript display */
.hint-tag {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: monospace;
    display: inline-block;
    margin: 2px 4px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.speaker-hint {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: monospace;
    display: block;
    margin: 12px 0 2px 0;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Speaker hint start/end specific styles */
.speaker-hint-start {
    /* Inherits from base hint-tag styles */
}

.speaker-hint-end {
    /* Inherits from base hint-tag styles */
}

.speaker-hint-author {
    background-color: #e3f2fd;   /* Light blue for main author */
    color: #1565c0;
    border-color: #90caf9;
}

.speaker-hint-narrator {
    background-color: #e8f5e9;   /* Light green for narrator/intro */
    color: #2e7d32;
    border-color: #a5d6a7;
}

.speaker-hint-promotion {
    background-color: #fff3e0;   /* Light orange for promotional content */
    color: #f57c00;
    border-color: #ffcc02;
}

.speaker-hint-default {
    background-color: #e0e0e0;   /* Light gray for unknown speakers */
    color: #424242;
    border-color: #bdbdbd;
}

/* ===== ALBUM PROPERTIES SIDEBAR Z-INDEX ===== */
/* Ensure album properties sidebar stays below the Active Processes bar.
   Bootstrap's sticky-top defaults to z-index: 1020.
   We explicitly set it lower to maintain z-index hierarchy:
   - Active Processes bar: 1030
   - Album Properties sidebar: 1020 (default sticky-top)
*/
.album-properties-sidebar.sticky-top,
.card.sticky-top {
    z-index: 1020;
}

/* ===== HINTTAG STYLING ===== */
/* NOTE: Hinttag styles are now generated dynamically from:
 *   mod_hinttags/project_hinttag_rendering_config.yaml
 * 
 * The CSS is injected via generate_hinttag_css() in templates.
 * Do NOT add hinttag styles here - edit the YAML config instead.
 */

