/**
 * SISTEMA DE ENVIO DE TRABALHOS TÉCNICOS
 * Folha de Estilos Customizada (style.css)
 */

:root {
    --primary-color: #1e3a8a;
    --primary-hover: #172554;
    --secondary-color: #475569;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --bg-light: #f8fafc;
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

/* =========================================================================
   LOGO DO EVENTO NO TOPO (EXIGÊNCIA: 600x250)
   ========================================================================= */
.header-banner {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.logo-evento {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 250px;
    aspect-ratio: 600 / 250;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.logo-evento:hover {
    transform: scale(1.01);
}

/* =========================================================================
   CARDS E COMPONENTES
   ========================================================================= */
.card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.card-header {
    border-bottom: 1px solid #e2e8f0;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* =========================================================================
   BLOCO DE AUTOR DINÂMICO
   ========================================================================= */
.autor-bloco {
    background-color: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.autor-bloco:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

.autor-bloco:has(.radio-autor-principal:checked) {
    border-color: #3b82f6 !important;
    background-color: #f8faff;
}

/* =========================================================================
   CONTADOR DE CARACTERES DO RESUMO
   ========================================================================= */
#contador-caracteres {
    transition: all 0.2s ease;
}

/* =========================================================================
   TABELAS E BADGES
   ========================================================================= */
.table > :not(caption) > * > * {
    padding: 0.85rem 0.75rem;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.font-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* =========================================================================
   OVERLAY / TELA DE BLOQUEIO DE UPLOAD DE ARQUIVO PDF
   ========================================================================= */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

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

.upload-modal-card {
    background: #ffffff;
    border-radius: 1.25rem;
    max-width: 540px;
    width: 100%;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.upload-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #dc2626, #f59e0b, #10b981, #2563eb);
    background-size: 300% 100%;
    animation: upload-gradient 2s linear infinite;
}

@keyframes upload-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.upload-overlay.active .upload-modal-card {
    transform: scale(1);
}

.upload-icon-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-spinner-ring {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(220, 38, 38, 0.15);
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: upload-spin 1s linear infinite;
}

.upload-icon-inner {
    font-size: 2.75rem;
    color: #dc2626;
    animation: upload-pulse 1.8s ease-in-out infinite;
}

@keyframes upload-spin {
    to { transform: rotate(360deg); }
}

@keyframes upload-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.upload-progress-custom {
    height: 12px;
    border-radius: 999px;
    background-color: #e2e8f0;
    overflow: hidden;
    margin: 1.5rem 0 1rem 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.upload-file-info {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #334155;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
