/* ==========================================================================
   ScribeClin - Modern CSS Design System (Aesthetics First)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #121420;
    --bg-tertiary: #1a1d30;
    --bg-glass: rgba(18, 20, 32, 0.7);
    --border-glass: rgba(255, 255, 255, 0.06);
    
    --color-primary: #00d2c4;      /* Modern Teal */
    --color-primary-rgb: 0, 210, 196;
    --color-secondary: #7000ff;    /* Electric Violet */
    --color-accent: #3b82f6;       /* Clean Blue */
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #0a0b10;
    
    --status-ready: #10b981;
    --status-recording: #ef4444;
    --status-processing: #f59e0b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 210, 196, 0.25);
    
    --sidebar-width: 280px;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbars Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Main Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Sidebar Styling (Glassmorphism) */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
}

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

.logo-icon {
    color: var(--color-primary);
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 5px rgba(0, 210, 196, 0.4));
}

.logo h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.history-section {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 0 8px;
}

.badge {
    background: var(--bg-tertiary);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid var(--border-glass);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    gap: 12px;
}

.empty-history i {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

/* Item de Histórico Salvo */
.history-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 210, 196, 0.3);
    transform: translateY(-2px);
}

.history-item:hover::before {
    transform: scaleY(1);
}

.history-item.active {
    background: rgba(0, 210, 196, 0.08);
    border-color: var(--color-primary);
}

.history-item.active::before {
    transform: scaleY(1);
}

.history-item-patient {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-glass);
}

/* Main Workspace */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 24px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.header-info h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-ready {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--status-ready);
}
.status-ready .status-dot {
    background-color: var(--status-ready);
    box-shadow: 0 0 8px var(--status-ready);
}

.status-recording {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--status-recording);
}
.status-recording .status-dot {
    background-color: var(--status-recording);
    box-shadow: 0 0 8px var(--status-recording);
    animation: blink 1s infinite alternate;
}

.status-processing {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--status-processing);
}
.status-processing .status-dot {
    background-color: var(--status-processing);
    box-shadow: 0 0 8px var(--status-processing);
    animation: pulse-dot 1.2s infinite;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 24px;
    flex: 1;
    min-height: 0;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .main-content {
        height: auto;
    }
}

/* Premium Panel System */
.panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: border-color 0.3s ease;
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title i {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.panel-title h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.panel-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* Recording Panel Widgets */
.timer {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-main);
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

/* Consent Card style */
.consent-card {
    background: rgba(59, 130, 246, 0.05);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}

.consent-card.approved {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.consent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
}
.consent-card.approved .consent-header {
    color: var(--status-ready);
}

.consent-header h4 {
    font-weight: 600;
    font-size: 0.9rem;
}

.consent-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Checkbox Modernization */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    color: var(--text-main);
    font-weight: 500;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.05);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--text-inverse);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Record Button & Visuals */
.recorder-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 14px;
    background: radial-gradient(circle, rgba(0, 210, 196, 0.03) 0%, transparent 70%);
}

.btn-record-main {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(25, 28, 48, 0.8) 100%);
    border: 2px solid var(--border-glass);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.btn-record-main i {
    width: 28px;
    height: 28px;
    z-index: 2;
    transition: var(--transition-smooth);
}

.btn-record-main:not(:disabled):hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Pulsing state */
.btn-record-main.recording {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border-color: #fca5a5;
    color: white;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.4);
    z-index: 1;
    opacity: 0;
}

.btn-record-main.recording .pulse-ring {
    animation: ring-pulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.btn-record-main:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.instructions {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Visualizer Bars */
.audio-visualizer-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.audio-visualizer-bar .bar {
    width: 3px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.audio-visualizer-bar.active .bar {
    animation: sound-wave 0.8s ease-in-out infinite alternate;
}

.audio-visualizer-bar.active .bar:nth-child(2) { animation-delay: 0.15s; }
.audio-visualizer-bar.active .bar:nth-child(3) { animation-delay: 0.3s; }
.audio-visualizer-bar.active .bar:nth-child(4) { animation-delay: 0.45s; }
.audio-visualizer-bar.active .bar:nth-child(5) { animation-delay: 0.1s; }

/* Transcriptions Fields */
.transcript-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 160px;
}

.transcript-header {
    display: flex;
    justify-content: justify;
    justify-content: space-between;
    align-items: center;
}

.transcript-header label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 16px;
    resize: none;
    line-height: 1.6;
    transition: var(--transition-smooth);
}

textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 210, 196, 0.15);
}

.transcript-area textarea {
    flex: 1;
}

/* Patient info bar */
.patient-info-bar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.input-group input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* SOAP Content Section list */
.soap-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.soap-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.soap-section:focus-within {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.soap-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.soap-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
}

.soap-badge.S { background: #0d9488; }
.soap-badge.O { background: #0891b2; }
.soap-badge.A { background: #7c3aed; }
.soap-badge.P { background: #c026d3; }

.soap-section-header h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}

.soap-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
}

.soap-textarea {
    padding: 8px;
    min-height: 80px;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.soap-textarea:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.03);
}

.soap-footer {
    display: flex;
    justify-content: justify;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-glass);
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-display);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #00bcae 100%);
    color: var(--text-inverse);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 210, 196, 0.4);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}
.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Icon Buttons */
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    color: var(--text-main);
    background: var(--bg-tertiary);
}

.btn-icon-sm {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-icon-sm:hover {
    color: var(--color-primary);
    background: var(--bg-tertiary);
}

/* Modal Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: justify;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

/* Toast System (Bottom-Right Notifications) */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.toast {
    background: var(--bg-secondary);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 16px 20px;
    color: var(--text-main);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.toast.toast-error {
    border-left-color: var(--status-recording);
}

.toast.toast-success {
    border-left-color: var(--status-ready);
}

/* Keyframes & Animations */
@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes ring-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes sound-wave {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(3.5); }
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Header controls area for specialty selector */
.header-controls-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.specialty-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 12px;
}

.specialty-container label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specialty-container label i {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.select-specialty {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding-right: 8px;
}

.select-specialty option {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    font-weight: 500;
}

/* Exam upload section */
.exam-upload-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.section-sub-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-sub-title i {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.exam-dropzone {
    border: 2px dashed var(--border-glass);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 6px;
}

.exam-dropzone:hover, .exam-dropzone.dragover {
    border-color: var(--color-primary);
    background: rgba(0, 210, 196, 0.04);
}

.exam-dropzone .upload-icon {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.exam-dropzone:hover .upload-icon, .exam-dropzone.dragover .upload-icon {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.exam-dropzone p {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.exam-dropzone .upload-formats {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Exam files list styling */
.exam-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px;
    max-height: 120px;
    overflow-y: auto;
}

.exam-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
}

.exam-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exam-file-info i {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.exam-file-item button {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.exam-file-item button:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* CID-10 Search Tool Styling */
.cid-search-container {
    position: relative;
    margin-top: 8px;
    margin-bottom: 4px;
}

.cid-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 6px 10px;
    gap: 8px;
    transition: var(--transition-smooth);
}

.cid-search-bar:focus-within {
    border-color: var(--color-primary);
}

.cid-search-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

#cid-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.85rem;
    width: 100%;
}

.cid-suggestions-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    max-height: 160px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.cid-suggestion-item {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    text-align: left;
}

.cid-suggestion-item:last-child {
    border-bottom: none;
}

.cid-suggestion-item:hover {
    background: rgba(0, 210, 196, 0.08);
    color: var(--color-primary);
}

/* CFM Compliance Banner */
.cfm-compliance-banner {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.compliance-icon {
    width: 18px;
    height: 18px;
    color: var(--status-processing);
    flex-shrink: 0;
    margin-top: 2px;
}

.cfm-compliance-banner p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: left;
    margin: 0;
}

.cfm-compliance-banner strong {
    color: var(--text-main);
}
