.qp-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.qp-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qp-pregunta-indicador {
    font-size: 18px;
    font-weight: bold;
}

.qp-barra-progreso {
    width: 100%;
    background-color: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    margin-left: 20px;
}

.qp-progreso {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.qp-quiz-pregunta {
    margin: 40px auto;
    max-width: 900px;
}

.qp-titulo-pregunta {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    line-height: 1.4;
    color: #333;
    padding: 0 20px;
}

.qp-respuestas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    margin-bottom: 20px;
}

.qp-respuesta {
    width: 100%;
    max-width: 350px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.qp-respuesta input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.qp-respuesta label {
    display: block;
    cursor: pointer;
}

.qp-respuesta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.qp-respuesta span {
    display: block;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s ease;
}

.qp-respuesta:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.qp-respuesta input[type="radio"]:checked + label span {
    background-color: #4caf50;
    color: #fff;
}

.qp-siguiente-container {
    text-align: center;
    margin: 30px 0;
    width: 100%;
}

.qp-siguiente {
    padding: 15px 40px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.qp-siguiente:disabled {
    background-color: #a5d6a7;
    cursor: not-allowed;
    box-shadow: none;
}

.qp-siguiente:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.qp-siguiente:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .qp-respuestas-grid {
        grid-template-columns: 1fr;
    }

    .qp-titulo-pregunta {
        font-size: 24px;
        padding: 0 10px;
    }

    .qp-imagen-pregunta {
        margin-bottom: 20px;
    }

    .qp-siguiente {
        padding: 12px 30px;
        font-size: 16px;
        min-width: 180px;
    }
}

.pregunta-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 4px;
}

.pregunta-container h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.pregunta-container .imagen-preview {
    max-width: 200px;
    margin: 10px 0;
}

.respuesta-container {
    background: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

.field-container {
    margin-bottom: 15px;
}

.field-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.field-container input[type="text"],
.field-container input[type="url"] {
    width: 100%;
}

.qp-imagen-pregunta {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.qp-imagen-pregunta img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.qp-respuesta:hover img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.qp-search-box {
    margin: 20px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.qp-section {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qp-resultado-container {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.imagen-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tablenav-pages {
    margin: 1em 0;
    text-align: right;
}

.tablenav-pages .page-numbers {
    padding: 3px 8px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.tablenav-pages .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.qp-filters-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.qp-search-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qp-filters-form select {
    min-width: 120px;
}

.displaying-num {
    margin-right: 15px;
}

.pagination-links {
    display: flex;
    align-items: center;
}

@media (max-width: 782px) {
    .qp-filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .qp-search-container {
        flex-wrap: wrap;
    }
    
    .pagination-links {
        margin-top: 10px;
    }
}

/* Result section styles */
.qp-resultado {
    text-align: center;
    margin: 40px auto;
    max-width: 900px;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qp-resultado h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qp-resultado-contenido {
    margin-top: 20px;
}

.qp-resultado-titulo {
    font-size: 28px;
    color: #4caf50;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.4;
}

.qp-resultado-imagen {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    margin: 20px 0;
    overflow: hidden;
}

.qp-resultado-imagen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.qp-resultado-explicacion {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin: 20px auto;
    max-width: 800px;
    padding: 0 20px;
}

.qp-restart {
    padding: 15px 40px;
    background-color: #2196F3;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.qp-restart:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.qp-restart:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Share buttons container */
.qp-compartir {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.qp-compartir h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.qp-botones-compartir {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.qp-boton-compartir {
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qp-boton-compartir.facebook {
    background-color: #1877f2;
}

.qp-boton-compartir.twitter {
    background-color: #1da1f2;
}

.qp-boton-compartir.whatsapp {
    background-color: #25d366;
}

.qp-boton-compartir:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qp-resultado {
        padding: 20px;
        margin: 20px auto;
    }

    .qp-resultado h2 {
        font-size: 28px;
    }

    .qp-resultado-titulo {
        font-size: 24px;
    }

    .qp-resultado-explicacion {
        font-size: 16px;
        padding: 0 10px;
    }

    .qp-restart {
        padding: 12px 30px;
        font-size: 16px;
        min-width: 180px;
    }

    .qp-botones-compartir {
        flex-direction: column;
        align-items: center;
    }

    .qp-boton-compartir {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

.qp-translation-form {
    max-width: 800px;
    margin: 20px 0;
}

.qp-languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qp-language-option {
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.qp-language-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.qp-language-option input[type="checkbox"] {
    margin: 0;
}

/* Add these styles */
.qp-group-header {
    background-color: #f8f9fa;
}

.qp-language-tag {
    display: inline-block;
    padding: 2px 6px;
    margin: 0 2px;
    border-radius: 3px;
    background-color: #e9ecef;
    font-size: 12px;
    font-weight: bold;
}

.qp-translations-count {
    color: #666;
    font-size: 12px;
}

.qp-language-texts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.qp-language-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qp-text-field {
    margin-bottom: 15px;
}

.qp-text-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.qp-text-field input {
    width: 100%;
}
