/* Estilos principais do plugin Desafios10a12 */
.desafios10a12-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.desafio-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.desafio-progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #F47600;
    color: white;
    border-color: #F47600;
}

.desafio-step {
    display: none;
    animation: desafio-fadeIn 0.5s ease;
}

.desafio-step.active {
    display: block;
}

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

.intro-text, .instruction-text {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align:left!important;
}
.intro-text p:not(.has-background):last-of-type,
.instruction-text p:not(.has-background):last-of-type,
.success-message p:not(.has-background):last-of-type{
    text-align: left !important;
}
.btn-desafio {
    border: 0;
    border-radius: 12px;
    background: #F47600;
    display: flex;
    height: 56px;
    padding: 0 40px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #F7FAFC;
    text-align: center;
    text-overflow: ellipsis;
    font-family: "Roboto Condensed";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    transition: all 0.3s ease;
    margin:0 auto;
}
.btn-desafio:hover {
     background: #CD6300;
    transform: scale(1.05);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    display: block;
    margin: 20px auto 0;
}

.btn-secondary:hover {
    background: #5a6268;
}

.reflection-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.form-group:last-child {
    border-bottom: none;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.desafio-scale {
    margin: 1rem 0;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
    padding: 0 10px;
}

.scale-points {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 5px;
}

.scale-point {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.scale-point input {
    display: none;
}

.point-number {
    display: block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    margin: 0 auto;
    border-radius: 50%;
    background: #f0f0f0;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1rem;
}

.scale-point input:checked + .point-number {
    background: #F47600;
    color: white;
    transform: scale(1.1);
}

.scale-point:hover .point-number {
    background: #e0e0e0;
    transform: scale(1.05);
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.1);
}

.char-count {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    animation: desafio-fadeIn 0.5s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.congrats-message {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
}

.congrats-message p {
    margin-bottom: 1rem;
}

.desafio-loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: desafio-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes desafio-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.desafios10a12-login-required {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.desafios10a12-container h2,
.desafios10a12-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.desafios10a12-container h2 {
    font-size: 1.8rem;
}

.desafios10a12-container h3 {
    font-size: 1.5rem;
}
.scale-missing .scale-points { border: 2px solid #dc3545; border-radius: 6px; padding: 4px; }
.scale-error { color: #dc3545; font-size: 0.85em; margin: 4px 0 0; }
/* Responsividade */
@media (max-width: 768px) {
    .desafios10a12-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .btn-desafio {
        min-width: 200px;
        padding: 10px 20px;
    }
    
    .intro-text, .instruction-text {
        padding: 1rem;
    }
    
    .reflection-form {
        padding: 1rem;
    }
    
    .scale-points {
        gap: 5px;
    }
    
    .point-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1rem;
    }
}