/* ==============================================================================
   CENTRAL DE DENÚNCIAS LENARGE - DESIGN SYSTEM & ESTILOS CUSTOMIZADOS
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-lenarge-red: #E30613;
    --color-lenarge-vibrant: #FF3B47;
    --color-lenarge-pink: #F88B8B;
    --color-text-red-smooth: #FF5C5C;
    --color-bg-dark: #1E1E24;
    --color-bg-card: #282B32;
    --color-bg-input: #2C2F36;
    --color-border: #3E424B;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #B0B4BA;
    --color-text-link: #FF6666;
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: var(--font-family);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ==========================================
   LAYOUT SPLIT-SCREEN (DESKTOP / MOBILE)
   ========================================== */

.page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Coluna Esquerda: Imagem Institucional da Frota de Caminhões Lenarge */
.split-left-panel {
    flex: 1;
    background-image: url('/images/lenarge_truck.png');
    background-size: cover;
    background-position: center 65%;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
}

.split-left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

/* Coluna Direita: Conteúdo Interativo (Charcoal) */
.split-right-panel {
    width: 50%;
    max-width: 750px;
    background-color: var(--color-bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 2.5rem;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.content-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logomarca Lenarge */
.brand-logo-header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo-header img {
    height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* Removido o filtro de drop-shadow para eliminar efeito de LED */
    margin-bottom: 0.5rem;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 0.5rem;
    letter-spacing: 0.2px;
}

/* Texto Informativo e LGPD */
.info-text-box {
    font-size: 0.825rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    text-align: justify;
    text-align-last: center;
}

.info-text-box a {
    color: var(--color-text-link);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.info-text-box a:hover {
    color: #FF8888;
}

.section-subtitle {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 1.75rem;
}

/* ==========================================
   ESTILO DOS BOTÕES LENARGE (GRADIENTE RED)
   ========================================== */

.btn-lenarge-gradient {
    width: 100%;
    height: 54px;
    background: linear-gradient(90deg, #FF1E27 0%, #F88B8B 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF !important;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    margin-bottom: 1rem;
}

.btn-lenarge-gradient:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 30, 39, 0.5);
    background: linear-gradient(90deg, #FF2E36 0%, #FFA1A1 100%);
}

.btn-lenarge-gradient:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.4);
}

.btn-lenarge-gradient:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

/* Botão Secundário / Voltar */
.btn-lenarge-outline {
    background: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
    border-radius: 8px;
    height: 48px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-lenarge-outline:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Botão de Download de Evidências */
.btn-evidence-download {
    background: transparent;
    border: 1.5px solid var(--color-lenarge-red);
    color: #FFFFFF !important;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.775rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-evidence-download:hover {
    background: var(--color-lenarge-red);
    box-shadow: 0 0 10px rgba(227, 6, 19, 0.4);
}

/* ==========================================
   BOTÕES DE FILTRO E PROTOCOLO (SUAVE / ANTI-ALIASED)
   ========================================== */

.admin-filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.admin-filter-btn:hover {
    border-color: #606470;
    color: #FFFFFF;
}

.admin-filter-btn.active {
    background: linear-gradient(135deg, #E30613 0%, #B8040F 100%);
    border: 1.5px solid #FF4D56;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.3);
}

/* Badge Suave e Anti-Aliased para Código de Protocolo */
.protocol-code-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text-red-smooth);
    background: rgba(227, 6, 19, 0.12);
    border: 1px solid rgba(255, 77, 86, 0.35);
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    word-break: break-all;
}

.protocol-code-badge:hover {
    background: rgba(227, 6, 19, 0.22);
    color: #FF8888;
    border-color: rgba(255, 100, 100, 0.6);
    transform: translateY(-1px);
}

/* ==========================================
   CARDS DE SELEÇÃO (RELAÇÃO COM A EMPRESA)
   ========================================== */

.relacao-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 2rem;
}

.relacao-card {
    background-color: var(--color-bg-card);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.relacao-card:hover {
    border-color: var(--color-lenarge-red);
    background-color: #30343D;
    transform: translateX(4px);
}

.relacao-card.selected {
    border-color: var(--color-lenarge-vibrant);
    background-color: rgba(227, 6, 19, 0.12);
    box-shadow: 0 0 12px rgba(227, 6, 19, 0.3);
}

.relacao-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ==========================================
   FORMULÁRIOS & INPUTS
   ========================================== */

.form-group {
    width: 100%;
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background-color: var(--color-bg-input);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--color-lenarge-red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.25);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Zone de Drag and Drop de Evidências */
.upload-zone {
    width: 100%;
    border: 2px dashed var(--color-border);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
    position: relative;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--color-lenarge-red);
    background-color: rgba(227, 6, 19, 0.05);
}

.upload-icon {
    font-size: 2rem;
    color: var(--color-lenarge-vibrant);
    margin-bottom: 0.5rem;
}

.upload-file-list {
    width: 100%;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-file-item {
    background: var(--color-bg-card);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    border: 1px solid var(--color-border);
}

/* ==========================================
   CARDS E TABELA RESPONSIVA DO DASHBOARD RH
   ========================================== */

/* Visualização em Cartões Touch no Celular */
.admin-mobile-card-list {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.admin-mobile-card {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    padding: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.admin-mobile-card:hover, .admin-mobile-card:active {
    border-color: var(--color-lenarge-vibrant);
    background: #30343D;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.2);
}

/* ==========================================
   MODAL / POPUP DE CONFIRMAÇÃO E DETALHES
   ========================================== */

.protocol-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.25rem;
}

.protocol-modal-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-lenarge-red);
    border-radius: 16px;
    max-width: 620px;
    width: 100%;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(227, 6, 19, 0.4);
    animation: modalSlideUp 0.3s ease-out;
}

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

.protocol-number-badge {
    background: rgba(227, 6, 19, 0.15);
    border: 1.5px dashed var(--color-lenarge-vibrant);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-red-smooth);
    letter-spacing: 2px;
    margin: 1.25rem 0;
    user-select: all;
}

/* Rodapé */
.footer-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 2rem;
    opacity: 0.7;
}

/* ==========================================
   MEDIA QUERIES DE RESPONSIVIDADE MOBILE
   ========================================== */

@media (max-width: 960px) {
    .page-wrapper {
        flex-direction: column;
    }
    
    .split-left-panel {
        width: 100%;
        height: 260px;
        min-height: 260px;
        padding: 1.5rem;
        background-position: center center;
    }
    
    .split-right-panel {
        width: 100%;
        max-width: 100%;
        padding: 2rem 1.25rem;
        box-shadow: none;
    }
}

@media (max-width: 640px) {
    .admin-desktop-table {
        display: none !important;
    }
    
    .admin-mobile-card-list {
        display: flex !important;
    }
    
    .protocol-modal-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }
}