/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #e0e0e0;
}

/* Main Content */
.main-content {
    display: grid;
    gap: 30px;
}

/* Seções */
section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* System Status Section */
.system-status-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.status-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.status-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.status-card i {
    font-size: 2rem;
    color: #4CAF50;
    min-width: 40px;
}

.status-info {
    flex: 1;
}

.status-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: white;
}

.status-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #4CAF50;
    animation: none;
}

.status-indicator.offline {
    background: #f44336;
    animation: none;
}

.status-indicator.warning {
    background: #ffc107;
    animation: pulse 2s infinite;
}

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

/* Upload Section */
.upload-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.upload-area i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.upload-area p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.file-name {
    display: block;
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: bold;
    margin-top: 10px;
}

/* Form Fields */
.form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.field-group input,
.field-group select {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.field-group input:focus,
.field-group select:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.field-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Botões */
.start-btn,
.new-audit-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    min-width: 200px;
}

.start-btn:hover:not(:disabled),
.new-audit-btn:hover,
.test-btn:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.start-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



/* Mensagens de status do formulário */
.form-status-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

.form-status-message.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.form-status-message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.form-status-message.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.form-status-message i {
    font-size: 1.1rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Container */
.progress-container {
    margin-bottom: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step.active {
    border-left-color: #FFC107;
    background: rgba(255, 193, 7, 0.1);
}

.step.completed {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.step.error {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.step i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.7);
    width: 30px;
}

.step span {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.step-status {
    margin-left: auto;
}

.status-icon {
    font-size: 1.2rem;
}

.step.active .status-icon {
    color: #FFC107;
    animation: pulse 1.5s infinite;
}

.step.completed .status-icon {
    color: #4CAF50;
}

.step.error .status-icon {
    color: #f44336;
}

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

/* Logs Container */
.logs-container {
    margin-top: 20px;
}

.logs-container h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logs-output {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.log-entry {
    margin-bottom: 5px;
    padding: 2px 0;
}

.log-entry.info {
    color: #e0e0e0;
}

.log-entry.success {
    color: #4CAF50;
}

.log-entry.error {
    color: #f44336;
}

.log-entry.warning {
    color: #FFC107;
}

/* Results Section */
.result-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Connection Status */
.connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.connection-status.connected {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
}

.connection-status.disconnected {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.3);
}

.connection-status i {
    margin-right: 8px;
}

/* Estilos para resultados melhorados */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 25px;
}

.score-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.score-display {
    margin-top: 10px;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
}

.score-percentage {
    font-size: 1.2rem;
    margin-left: 10px;
    opacity: 0.8;
}

/* Mensagem Final */
.mensagem-final {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.mensagem-final-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.mensagem-final-content i {
    font-size: 1.5rem;
    color: #4CAF50;
    margin-top: 2px;
}

.mensagem-final-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    font-weight: 500;
}

/* Informações do Processamento */
.process-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-info h4 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.info-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.justification {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.justification p {
    margin-top: 10px;
    line-height: 1.6;
}

/* Abas */
.result-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 10px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: bold;
}

.tab-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

/* Transcrição */
.transcricao-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.transcricao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.transcricao-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    min-width: 200px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.15);
}

.search-btn, .clear-search-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.clear-search-btn {
    background: #f44336;
}

.search-btn:hover {
    background: #45a049;
}

.clear-search-btn:hover {
    background: #d32f2f;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-top: 5px;
    z-index: 10;
}

.download-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #45a049;
}

.transcricao-options {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.option-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.option-toggle input[type="checkbox"] {
    accent-color: #4CAF50;
}

.transcricao-text {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', monospace;
}

.transcricao-line {
    display: flex;
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.transcricao-line.empty-line {
    height: 12px;
}

.transcricao-line:hover {
    background: rgba(255, 255, 255, 0.05);
}

.line-number {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-right: 15px;
    min-width: 35px;
    text-align: right;
    user-select: none;
}

.transcricao-text:not(.show-line-numbers) .line-number {
    display: none;
}

.line-content {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
}

/* Destaque de falantes */
.transcricao-text.highlight-speakers .speaker-consultant {
    background: rgba(33, 150, 243, 0.1);
    border-left: 3px solid #2196F3;
}

.transcricao-text.highlight-speakers .speaker-client {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
}

.transcricao-text.highlight-speakers .speaker-other {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #FFC107;
}

.speaker-name {
    font-weight: bold;
    color: #fff;
}

.speaker-consultant .speaker-name {
    color: #2196F3;
}

.speaker-client .speaker-name {
    color: #4CAF50;
}

.speaker-other .speaker-name {
    color: #FFC107;
}

/* Estilos para transcrição com timestamp */
.speaker-timestamped {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #9C27B0;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 5px;
}

.timestamp {
    color: #9C27B0;
    font-weight: bold;
    font-size: 0.85rem;
    background: rgba(156, 39, 176, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

.speaker-timestamped .speaker-name {
    color: #E1BEE7;
    font-weight: bold;
    margin-right: 8px;
}

.speech-content {
    color: #ffffff;
    line-height: 1.5;
}

/* Destaque de informações importantes */
.transcricao-text.highlight-important .highlight-cnpj {
    background: rgba(156, 39, 176, 0.3);
    color: #E1BEE7;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.transcricao-text.highlight-important .highlight-cpf {
    background: rgba(63, 81, 181, 0.3);
    color: #C5CAE9;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.transcricao-text.highlight-important .highlight-date {
    background: rgba(255, 152, 0, 0.3);
    color: #FFE0B2;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.transcricao-text.highlight-important .highlight-money {
    background: rgba(76, 175, 80, 0.3);
    color: #C8E6C9;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.transcricao-text.highlight-important .highlight-phone {
    background: rgba(33, 150, 243, 0.3);
    color: #BBDEFB;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.transcricao-text.highlight-important .highlight-email {
    background: rgba(233, 30, 99, 0.3);
    color: #F8BBD9;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.transcricao-text.highlight-important .highlight-decision {
    background: rgba(255, 87, 34, 0.3);
    color: #FFCCBC;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Destaque de busca */
.search-highlight {
    background: rgba(255, 235, 59, 0.2) !important;
    border-left: 3px solid #FFEB3B !important;
    animation: searchPulse 1s ease-in-out;
}

.search-term {
    background: #FFEB3B !important;
    color: #000 !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

@keyframes searchPulse {
    0% { background: rgba(255, 235, 59, 0.4); }
    50% { background: rgba(255, 235, 59, 0.6); }
    100% { background: rgba(255, 235, 59, 0.2); }
}

.no-transcricao {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 40px;
}

/* Critérios */
.criterios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.criterio-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid transparent;
}

.criterio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.criterio-header h5 {
    font-size: 0.9rem;
    margin: 0;
}

.criterio-status {
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.criterio-body {
    font-size: 0.85rem;
    opacity: 0.9;
}

.criterio-score {
    font-weight: bold;
    margin-bottom: 5px;
}

.criterio-evidencia {
    font-style: italic;
    line-height: 1.4;
}

/* Detalhes técnicos */
.detalhes-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .upload-container {
        grid-template-columns: 1fr;
    }
    
    .form-fields {
        grid-template-columns: 1fr;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .time-info {
        flex-direction: column;
        gap: 5px;
    }
}

/* Scrollbar personalizada */
.logs-output::-webkit-scrollbar {
    width: 8px;
}

.logs-output::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.logs-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.logs-output::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
.extracted-fields-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.extracted-fields-panel .ef-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 6px;
}
.extracted-fields-panel strong {
    color: #fff;
}
.auto-extract-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
}
.auto-extract-panel .ef-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 6px;
}
@media (max-width: 768px) {
    .auto-extract-panel .ef-grid {
        grid-template-columns: 1fr;
    }
}
.auto-extract-panel .ef-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
}
.auto-extract-panel .ef-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}
.auto-extract-panel .ef-value {
    display: block;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}
.auto-extract-summary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Painel de extração IA fixo para ficar sempre visível */
.extracted-fields-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
}
.extracted-fields-panel.sticky {
    position: sticky;
    top: 8px;
    z-index: 10;
}
/* Removido comportamento sticky para evitar acompanhamento da rolagem */
