* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body {
    background: #0a0a1a;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container { max-width: 1400px; margin: 0 auto; padding: 10px; }

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #111133;
    border-radius: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.logo h1 { font-size: 22px; color: #ff9800; }

.nav-bolinhas { display: flex; gap: 10px; }

.bolinha {
    width: 55px; height: 55px; border-radius: 50%;
    border: 3px solid #e94560; background: #1a1a2e; color: #fff;
    cursor: pointer; display: flex; flex-direction: column;
    align-items: center; justify-content: center; transition: all 0.3s; font-size: 10px;
}
.bolinha .icone { font-size: 22px; }
.bolinha .label { font-size: 9px; margin-top: 1px; }
.bolinha.ativo { background: #e94560; border-color: #fff; transform: scale(1.1); box-shadow: 0 0 20px rgba(233,69,96,0.5); }
.bolinha:hover { transform: scale(1.05); border-color: #fff; }

.modo-selector { display: flex; gap: 8px; }
.btn-modo {
    padding: 10px 18px; border: 2px solid #e94560; background: transparent;
    color: #fff; border-radius: 25px; cursor: pointer; transition: all 0.3s; font-weight: bold; font-size: 14px;
}
.btn-modo.ativo { background: #e94560; color: #fff; }
.btn-modo:hover { opacity: 0.8; }

/* BARRA DIA */
.barra-dia {
    background: #111133; padding: 12px 20px; border-radius: 10px;
    margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.dia-info { display: flex; gap: 25px; font-size: 15px; }
.dia-info strong { color: #ff9800; font-size: 20px; }
.barra-progresso-container { flex: 1; max-width: 400px; background: #1a1a2e; border-radius: 10px; height: 12px; overflow: hidden; }
.barra-progresso { background: linear-gradient(90deg, #ff9800, #e94560); height: 100%; border-radius: 10px; transition: width 0.3s; }

/* TELAS */
.tela { display: none; }
.tela.ativo { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* JOGO */
.jogo-layout { display: grid; grid-template-columns: 1fr 380px; gap: 15px; min-height: 65vh; }

.mapa-container {
    background: #111133; border-radius: 15px; padding: 15px;
    display: flex; flex-direction: column; align-items: center;
}
#mapa-canvas { width: 100%; height: 100%; border-radius: 10px; }
.legenda-mapa { display: flex; gap: 15px; margin-top: 8px; font-size: 12px; color: #aaa; }

.coletor-container { background: #111133; border-radius: 15px; padding: 20px; }
.coletor-card { display: flex; flex-direction: column; gap: 15px; }
.coletor-card h3 { color: #e94560; text-align: center; font-size: 20px; border-bottom: 2px solid #e94560; padding-bottom: 10px; }

.coletor-display { background: #0a0a1a; padding: 15px; border-radius: 10px; }
.display-linha { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #1a1a2e; }
.display-linha span { color: #aaa; }
.display-linha strong { color: #ff9800; font-size: 17px; }

.bipar-area { text-align: center; }
.btn-bipar {
    width: 100%; padding: 15px; border: 3px dashed #ff9800; background: #1a1a2e; color: #ff9800;
    border-radius: 15px; font-size: 18px; cursor: pointer; transition: all 0.3s; font-weight: bold;
}
.btn-bipar:hover:not(:disabled) { background: #ff9800; color: #fff; }
.btn-bipar:disabled { opacity: 0.4; cursor: not-allowed; }
.bipar-status { font-size: 12px; color: #aaa; margin-top: 5px; }

.input-area { display: flex; flex-direction: column; gap: 5px; }
.input-area label { font-weight: bold; color: #ccc; }
.input-area input {
    padding: 12px; border-radius: 10px; border: 2px solid #ff9800; background: #1a1a2e;
    color: #fff; font-size: 18px; text-align: center; outline: none;
}
.input-area input:focus { border-color: #e94560; }

.botoes-area { display: flex; gap: 8px; }
.btn-confirmar, .btn-bloquear {
    flex: 1; padding: 12px; border: none; border-radius: 10px; font-size: 15px; font-weight: bold; cursor: pointer;
}
.btn-confirmar { background: #2196f3; color: #fff; }
.btn-bloquear { background: #e91e90; color: #fff; }
.btn-confirmar:disabled, .btn-bloquear:disabled { opacity: 0.4; cursor: not-allowed; }

.coletor-status {
    text-align: center; padding: 12px; border-radius: 10px;
    font-weight: bold; font-size: 14px; background: #0f3460;
}

/* PULAR PRO FIM */
.pular-fim-container {
    margin-top: 12px; text-align: center;
}
.btn-pular-fim {
    background: linear-gradient(135deg, #9c27b0, #e91e90);
    color: #fff; border: none; padding: 12px 25px; border-radius: 12px;
    cursor: pointer; font-size: 15px; font-weight: bold; transition: all 0.3s;
}
.btn-pular-fim span { display: block; font-size: 11px; font-weight: normal; margin-top: 3px; opacity: 0.8; }
.btn-pular-fim:hover { transform: scale(1.03); box-shadow: 0 5px 20px rgba(233,30,144,0.4); }

/* MESÁRIO */
.tela#tela-mesario { background: #f0f4ff; color: #333; border-radius: 15px; min-height: 70vh; padding: 20px; }
.mesario-header { margin-bottom: 20px; }
.mesario-header h3 { color: #2196f3; margin-bottom: 15px; font-size: 22px; }
.mesario-filtros { display: flex; gap: 10px; }
.btn-filtro {
    padding: 10px 20px; border: 2px solid #2196f3; background: #fff; color: #2196f3;
    border-radius: 25px; cursor: pointer; font-weight: bold; transition: all 0.3s;
}
.btn-filtro.ativo { background: #2196f3; color: #fff; }
.mesario-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }

.posicao-card {
    background: #fff; border-radius: 15px; padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-left: 5px solid #00c853;
}
.posicao-card.bloqueada { border-left-color: #e91e90; background: #fff0f5; }
.posicao-card.divergente { border-left-color: #ff9800; background: #fff8e1; }
.posicao-card h4 { color: #2196f3; margin-bottom: 8px; }
.posicao-card .info-produto { margin: 8px 0; font-size: 14px; }
.posicao-card .acoes { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.btn-acao {
    padding: 6px 12px; border: none; border-radius: 6px; cursor: pointer;
    font-size: 12px; font-weight: bold; color: #fff;
}

/* RESULTADOS */
.tela#tela-resultados { background: #f5f5f5; color: #333; border-radius: 15px; min-height: 70vh; padding: 20px; }
.resultados-titulo { text-align: center; font-size: 24px; margin-bottom: 25px; color: #333; }
.resultados-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.resultado-card { padding: 30px; border-radius: 20px; text-align: center; }
.resultado-card.antigo { background: #fff; border: 3px solid #e94560; }
.resultado-card.novo { background: #fff; border: 3px solid #00c853; }
.resultado-card h3 { font-size: 22px; margin-bottom: 15px; }
.resultado-numero { font-size: 60px; font-weight: bold; margin: 10px 0; }
.resultado-card.antigo .resultado-numero { color: #e94560; }
.resultado-card.novo .resultado-numero { color: #00c853; }
.resultado-detalhes { font-size: 14px; color: #666; margin-top: 10px; }
.resultado-conclusao { text-align: center; padding: 20px; background: #fff; border-radius: 15px; font-size: 18px; }

/* RESPONSIVO */
@media (max-width: 900px) {
    .jogo-layout { grid-template-columns: 1fr; }
    .resultados-grid { grid-template-columns: 1fr; }
    .header { flex-direction: column; text-align: center; }
}