
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }

body { background: var(--bg-app); height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; }

:root {
    --primary: #E4007C;
    --dark: #1e272e;
    --success: #27ae60;
    --danger: #e74c3c;
    --border: #dee2e6;
    --bg-app: #cbd3d9;
}

.main-container { 
    display: flex; width: 95%; max-width: 1400px; height: 90vh; 
    background: white; border-radius: 30px; overflow: hidden; box-shadow: 0 50px 100px rgba(0,0,0,0.15);
}

/* BARRA LATERAL */
.side-panel { width: 300px; background: var(--dark); color: white; padding: 40px; display: flex; flex-direction: column; }
.brand { text-align: center; margin-bottom: 50px; }
.form-logo { width: 130px; filter: brightness(0) invert(1); }
.divider { height: 3px; background: var(--primary); width: 40px; margin: 20px auto; border-radius: 2px; }
.brand span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #7f8fa6; }

.nav-item { 
    width: 100%; background: transparent; border: none; color: #7f8fa6; padding: 18px; 
    text-align: left; cursor: pointer; border-radius: 15px; font-weight: 700; 
    display: flex; align-items: center; gap: 15px; transition: 0.3s; margin-bottom: 10px;
}
.nav-item.active { background: var(--primary); color: white; box-shadow: 0 10px 20px rgba(228, 0, 124, 0.2); }
.nav-item:hover:not(.active) { background: #2f3640; color: white; }

.upload-section { margin-top: auto; }
.upload-label { font-size: 10px; font-weight: 800; color: #7f8fa6; text-transform: uppercase; margin-bottom: 10px; display: block; text-align: center; }
.btn-attach-fancy { 
    background: #c2185b; color: white; padding: 16px; border-radius: 50px; 
    display: flex; align-items: center; justify-content: center; gap: 10px; 
    font-weight: 700; font-size: 13px; cursor: pointer; transition: 0.3s;
}

/* CONTEÚDO */
.content-panel { flex: 1; padding: 60px; overflow-y: auto; background: #fff; }
.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.4s ease; }

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

.header h1 { font-size: 28px; font-weight: 800; color: var(--dark); }
.header p { color: #7f8fa6; font-size: 14px; margin-top: 5px; margin-bottom: 40px; }

/* FORMULÁRIO */
.form-section { margin-bottom: 45px; }
.form-section legend { font-weight: 800; font-size: 11px; color: var(--primary); text-transform: uppercase; margin-bottom: 25px; letter-spacing: 1px; }

.row { display: flex; gap: 20px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.field label { font-size: 10px; font-weight: 800; color: #4b5563; text-transform: uppercase; }

input, select, textarea { 
    height: 55px; padding: 0 20px; border: 1.5px solid var(--border); 
    border-radius: 12px; font-size: 14px; font-weight: 600; transition: 0.3s; background: #fcfcfc;
}
input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(228, 0, 124, 0.05); }

.highlight-box input { background: #f0f4f8; border-color: #d1d9e6; color: #1565c0; font-weight: 800; }

.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper i { position: absolute; right: 20px; cursor: pointer; color: #a4b0be; }

/* DECISÃO */
.decision-card { background: #f8fafc; border: 2px solid var(--border); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 25px; }
.auth-wrapper { display: flex; gap: 15px; align-items: center; margin-top: 5px; }
.btn-unlock { background: var(--dark); color: white; border: none; height: 55px; padding: 0 25px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: 0.3s; }
.btn-unlock:hover { background: var(--primary); }

.decision-options-section { border-top: 2px dashed var(--border); padding-top: 25px; }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-veredito { height: 65px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; border: 2px solid var(--border); background: white; cursor: pointer; transition: 0.3s; }
.v-aceite { color: var(--success); border-color: var(--success); }
.v-rejeite { color: var(--danger); border-color: var(--danger); }

input[id="decAceite"]:checked + .v-aceite { background: var(--success); color: white; }
input[id="decNaoAceite"]:checked + .v-rejeite { background: var(--danger); color: white; }

.disabled-overlay { filter: grayscale(1); opacity: 0.3; pointer-events: none; }
.btn-submit { background: var(--primary); color: white; border: none; height: 65px; border-radius: 15px; font-weight: 800; width: 100%; font-size: 16px; margin-top: 30px; cursor: pointer; }

/* GESTÃO RH */
.rh-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #f8fafc; padding: 25px; border-radius: 20px; border: 1.5px solid var(--border); }
.stat-label { font-size: 11px; font-weight: 800; color: #7f8fa6; text-transform: uppercase; }
.stat-value { font-size: 32px; font-weight: 800; display: block; margin-top: 5px; color: var(--dark); }

.table-container { background: white; border: 1.5px solid var(--border); border-radius: 20px; overflow: hidden; }
.rh-table { width: 100%; border-collapse: collapse; }
.rh-table th { background: #f8fafc; padding: 20px; text-align: left; font-size: 11px; text-transform: uppercase; color: #7f8fa6; border-bottom: 1.5px solid var(--border); }
.rh-table td { padding: 18px 20px; border-bottom: 1px solid #f1f2f6; font-size: 13px; }
.rh-table tr:hover { background: #fcfcfc; }

.badge { padding: 6px 14px; border-radius: 20px; font-weight: 800; font-size: 12px; }
.badge-success { background: #eafaf1; color: var(--success); }
.badge-danger { background: #fdf2f2; color: var(--danger); }

.btn-table-action { background: none; border: none; font-size: 16px; cursor: pointer; padding: 5px; color: #7f8fa6; transition: 0.2s; }
.btn-table-action:hover { transform: scale(1.2); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 999; backdrop-filter: blur(8px); }
.modal-overlay.active { display: flex; }
.modal-box { background: white; padding: 40px; border-radius: 30px; width: 400px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.2); }
.modal-icon { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.modal-btns { display: flex; gap: 15px; margin-top: 30px; }
.btn-confirm { background: var(--primary); color: white; border: none; flex: 1; height: 55px; border-radius: 12px; font-weight: 800; cursor: pointer; }
.btn-cancel { background: #eee; border: none; flex: 1; height: 55px; border-radius: 12px; font-weight: 800; cursor: pointer; }






.autocomplete-box{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:white;
    border:0px solid #ccc;
    max-height:180px;
    overflow-y:auto;
    z-index:1000;
}

.autocomplete-item{
    padding:8px;
    cursor:pointer;
}

.autocomplete-item:hover{
    background:#f2f2f2;
}


.drop-zone{
border:2px dashed #ccc;
border-radius:8px;
padding:15px;
text-align:center;
transition:0.2s;
cursor:pointer;
}

.drop-zone.dragover{
border-color:#007bff;
background:#f5faff;
}

.file-info{
background:#00000;
padding:6px 10px;
margin-top:8px;
border-radius:6px;
display:flex;
justify-content:space-between;
align-items:center;
font-size:12px;
}

.remove-file{
background:none;
border:none;
color:#c0392b;
cursor:pointer;
font-size:14px;
}

.upload-limit{
font-size:11px;
color:#777;
}
.field input[type="text"],
.field input[type="time"],
.field input[type="date"],
.field select {
    width: 100%;
    box-sizing: border-box;
}
/* Estilo do Modal de Sucesso */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    display: none; align-items: center; justify-content: center; z-index: 9999;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: white; padding: 40px; border-radius: 20px; width: 90%; max-width: 450px;
    text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-icon { font-size: 50px; color: #10b981; margin-bottom: 20px; }
.modal-content h2 { color: #020617; margin-bottom: 10px; font-weight: 800; }
.modal-content p { color: #64748b; font-size: 14px; margin-bottom: 25px; line-height: 1.6; }

.email-box { background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.email-box label { display: block; font-size: 12px; font-weight: 700; color: #E4007C; margin-bottom: 10px; text-transform: uppercase; }
.email-box input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; margin-bottom: 15px; text-align: center; outline: none; }
.email-box input:focus { border-color: #E4007C; box-shadow: 0 0 0 3px rgba(228, 0, 124, 0.1); }

.btn-group { display: flex; gap: 10px; margin-top: 20px; }
.btn-modal { flex: 1; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; transition: 0.3s; }
.btn-confirm { background: #E4007C; color: white; }
.btn-cancel { background: #e2e8f0; color: #64748b; }
.btn-confirm:hover { background: #c2006a; transform: translateY(-2px); }