/* Lista de perguntas organizadas */
.todas-perguntas-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.todas-perguntas-lista > li {
    background: #f3ffe6;
    border-radius: 10px;
    margin-bottom: 18px;
    padding: 18px 18px 12px 18px;
    box-shadow: 0 2px 8px #0001;
    border: 1.5px solid #b2e59e;
    position: relative;
}
.todas-perguntas-lista h4 {
    margin: 0 0 8px 0;
    color: #2e4d0a;
    font-size: 1.1rem;
}
.todas-perguntas-lista ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}
.todas-perguntas-lista .pergunta-acoes {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 8px;
}
.todas-perguntas-lista .btn-editar,
.todas-perguntas-lista .btn-excluir {
    padding: 4px 12px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.todas-perguntas-lista .btn-editar {
    background: #e6f9d7;
    color: #2e4d0a;
    border: 1.5px solid #7bb661;
}
.todas-perguntas-lista .btn-editar:hover {
    background: #7bb661;
    color: #fff;
}
.todas-perguntas-lista .btn-excluir {
    background: #ffeaea;
    color: #a12a2a;
    border: 1.5px solid #e57373;
}
.todas-perguntas-lista .btn-excluir:hover {
    background: #e57373;
    color: #fff;
}
.todas-perguntas-lista .nivel-badge {
    background: #7bb661;
    color: #fff;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.95rem;
    margin-left: 8px;
}
.todas-perguntas-lista .correta {
    color: #2e4d0a;
    font-weight: bold;
}
html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
.container {
    min-height: 80vh;
    min-height: 80dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 0 auto;
}

@media (max-width: 900px) {
    .container {
        max-width: 99vw;
        margin: 10px auto 10px auto;
        padding: 10px 2vw 18px 2vw;
    }
    body { background-size: 90px, 60px; }
}
/* Abas */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    gap: 8px;
}
.tab-btn {
    background: #e6f9d7;
    color: #2e4d0a;
    border: 2px solid #7bb661;
    border-radius: 8px 8px 0 0;
    padding: 8px 22px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
.tab-btn.active, .tab-btn:hover {
    background: #7bb661;
    color: #fff;
    border-bottom: 2px solid #fff;
}
/* Jungle DinoQuiz Theme */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: url('https://t3.ftcdn.net/jpg/02/24/52/56/360_F_224525610_ZnjCoxC9x42EJX4Ki2LMGXf5TKboqJyF.jpg') center center/cover no-repeat fixed;
    transition: background-image 0.7s cubic-bezier(.77,.01,.3,1.01);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

body.bg-inserir {
    background-image: url('https://t3.ftcdn.net/jpg/07/15/24/18/360_F_715241873_2etuPuCuPlLyRXWhxpuq6tHM55hz91ON.jpg');
}
body.bg-listar {
    background-image: url('https://media.istockphoto.com/id/1957899208/vector/prehistoric-landscape-volcano-with-smoke-mountains-dinosaurs-and-green-vegetation-vector.jpg?s=612x612&w=0&k=20&c=Zza5z8XcAQ44mRFraDsseLmFGeVCV2-6kfIUb6RW-Yw=');
}

.container {
    backdrop-filter: none;
    box-shadow: 0 4px 24px #0003;
    z-index: 2;
    position: relative;
}
.container {
    background: rgba(255,255,255,0.95);
    padding: 32px 28px 28px 28px;
    border-radius: 18px;
    width: 100%;
    max-width: 900px;
    margin: 50px auto 30px auto;
    box-shadow: 0 4px 24px #0003;
    border: 3px solid #4e7c1b;
    position: relative;
}
h2 {
    color: #2e4d0a;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 1px;
    font-size: 2rem;
    font-family: 'Trebuchet MS', Verdana, sans-serif;
}
input, select, button {
    font-size: 1rem;
    padding: 12px;
    margin-top: 10px;
    width: 100%;
    border-radius: 7px;
    border: 1.5px solid #7bb661;
    box-sizing: border-box;
}
input:focus, select:focus {
    outline: 2px solid #4e7c1b;
    border-color: #4e7c1b;
}
button {
    background: linear-gradient(90deg, #4e7c1b 60%, #7bb661 100%);
    color: #fff;
    font-weight: bold;
    border: none;
    margin-top: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover {
    background: linear-gradient(90deg, #7bb661 0%, #4e7c1b 100%);
}
.success {
    color: #2e4d0a;
    background: #d6f5c6;
    border-radius: 6px;
    padding: 7px 0;
    margin-top: 10px;
    text-align: center;
}
#mensagem {
    min-height: 24px;
}
#contador {
    color: #2e4d0a;
    font-weight: bold;
}
#listaPerguntas {
    background: #f3ffe6;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 18px;
    border: 1.5px solid #b2e59e;
}
label {
    color: #2e4d0a;
    font-weight: 500;
}
::placeholder {
    color: #7bb661;
    opacity: 1;
}
.btn-filtro-part {
    background: #e6f9d7;
    color: #2e4d0a;
    border: 1.5px solid #7bb661;
    border-radius: 6px;
    padding: 5px 16px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 0;
    min-width: 80px;
    max-width: 180px;
}
.btn-filtro-part:hover {
    background: #7bb661;
    color: #fff;
}
.btn-filtro-part-active {
    background: #7bb661 !important;
    color: #fff !important;
    border: 2px solid #4e7c1b !important;
    font-weight: bold;
    min-width: 120px;
    max-width: 100%;
    flex: 1 1 0%;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px #0001;
    margin-right: 7px;
    z-index: 1;
}
#filtroParticipanteBtns {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 7px;
    margin-bottom: 8px;
}
.filtro-part-row {
    display: flex;
    gap: 7px;
    width: 100%;
}
@media (max-width: 900px) {
    .container { max-width: 99vw; padding: 12px; }
    body { background-size: 120px, 100px; }
}
