body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.status-panel {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
}

#transcriptionEditor {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 16px;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-y: auto;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 15px;
    color: #212529;
    min-height: 500px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    white-space: pre-wrap;
}

#transcriptionEditor:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#transcriptionEditor.recording {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.professional-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    border-radius: 4px 4px 0 0;
}

.control-panel {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
}

.status-professional {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.metric-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.metric-value {
    font-size: 24px;
    font-weight: 600;
    color: #495057;
}

.metric-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recording {
    animation: pulse 2s infinite;
}

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

.confidence-high { color: #198754; }
.confidence-medium { color: #ffc107; }
.confidence-low { color: #dc3545; }

.medical-term {
    background-color: #e8f4fd;
    border-bottom: 2px solid #2c5aa0;
    padding: 1px 3px;
    font-weight: 500;
    color: #2c5aa0;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.medical-term:hover {
    background-color: #d1e7dd;
    cursor: help;
}

.real-time-text {
    background-color: transparent;
    color: #6c757d;
    font-style: italic;
    opacity: 0.7;
    border-bottom: 1px dotted #007bff;
    padding: 0 2px;
    margin: 0;
    display: inline;
    transition: none;
}

.ai-enhanced-text {
    background-color: #f8f9fa;
    border-left: 2px solid #28a745;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.ai-enhanced-text:hover {
    background-color: #e9ecef;
}

/* Medical highlights from Claude AI */
#transcriptionEditor strong {
    font-weight: 700;
    color: #d63384;
    background-color: #f8d7da;
    padding: 1px 3px;
    border-radius: 3px;
    border-left: 3px solid #d63384;
}

#transcriptionEditor strong:hover {
    background-color: #f1aeb5;
    cursor: help;
}

.processing-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #007bff;
    border-radius: 50%;
    margin-left: 4px;
    animation: processingPulse 1.5s ease-in-out infinite;
}

@keyframes processingPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.language-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.btn:disabled {
    cursor: not-allowed;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.alert-recording {
    background-color: #ffeaa7;
    border-color: #fdcb6e;
    color: #2d3436;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 5px;
    }
    
    #transcriptionEditor {
        min-height: 250px;
        font-size: 14px;
    }
    
    .professional-header {
        text-align: center;
        padding: 15px;
    }
    
    .professional-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .card-header .d-flex {
        gap: 0.25rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .metric-card {
        margin-bottom: 5px;
        padding: 8px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .metric-label {
        font-size: 10px;
    }
    
    .gap-1 {
        gap: 0.25rem !important;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}