/**
 * Estilos Públicos para o Plugin meudominio.rio
 */

/* Wrapper do Formulário */
.mdr-form-wrapper {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.mdr-form-wrapper h3 {
    margin-top: 0;
    /*font-size: 18px;*/
}

/* Layout do Formulário */
.mdr-form-wrapper .mdr-form-row {
    margin-bottom: 15px; 
}

.mdr-form-wrapper label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

/* ########################################## */
/* ## NOVO: Estilo para Erro de JavaScript ## */
/* ########################################## */

.mdr-client-error {
    background-color: #fef7f7;
    border: 1px solid #d63638;
    border-left-width: 4px;
    color: #d63638;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    font-size: 0.95em;
    /* Por padrão, o display é 'none' (inline no HTML) */
}
.mdr-client-error strong {
    font-weight: bold;
}


/* Campo de texto (Input) */
.mdr-form-wrapper .mdr-input-field {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    height: 44px; /* Altura fixa para alinhar com o botão */
}

/* Botão de Envio (Submit) */
.mdr-form-wrapper .mdr-submit-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: opacity 0.2s ease-in-out;
    width: 100%; /* Botão 100% no mobile */
    margin-top: 10px; /* Espaço no mobile */
    height: 44px; /* Altura fixa para alinhar com o input */
}

/* Linha do reCAPTCHA */
.mdr-form-wrapper .mdr-recaptcha-row {
    transform: scale(0.95);
    transform-origin: 0 0;
}


/* Estilos de Desktop (telas > 768px) */
@media (min-width: 768px) {
    /* Transforma o grupo em flex container */
    .mdr-input-group {
        display: flex;
        gap: 10px; /* Espaço entre o input e o botão */
        margin-bottom: 15px;
    }

    /* O input de texto deve crescer */
    .mdr-input-group .mdr-input-field {
        flex: 1 1 auto;
        width: auto; /* Sobrescreve o width: 100% */
    }

    /* O botão não deve crescer */
    .mdr-input-group .mdr-submit-button {
        flex: 0 0 auto;
        width: auto; /* Sobrescreve o width: 100% */
        margin-top: 0; /* Remove o margin-top no desktop */
    }

    .mdr-form-wrapper .mdr-recaptcha-row {
        transform: scale(1);
    }
}

/*Texto chamada*/
.mdr-chamada-texto {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #005177;
    font-weight: bold;
}
/* Wrapper dos Resultados */
.mdr-resultado-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mdr-resultado-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}


/* Estilização das classes "notice" */
.mdr-resultado-wrapper .notice {
    padding: 15px 20px;
    margin-bottom: 0; 
    border: 1px solid #ddd;
    border-left-width: 4px;
    border-radius: 3px;
    background: #fff;
}
.mdr-resultado-wrapper .notice p {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 1.1em;
}
.mdr-resultado-wrapper .notice h4 {
    margin-top: 0;
    font-size: 1.3em;
}
.mdr-resultado-wrapper .notice p strong {
    font-size: 1.2em;
}

/* Estilos para a lista de detalhes do JSON */
.mdr-resultado-wrapper .mdr-result-details {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}
.mdr-resultado-wrapper .mdr-result-details li {
    margin-bottom: 8px;
    font-size: 1em;
    border-bottom: 1px dotted #eee;
    padding-bottom: 8px;
    line-height: 1.5;
}
.mdr-resultado-wrapper .mdr-result-details li strong {
    min-width: 150px;
    display: inline-block;
    color: #333;
}

/* Estilo para lista aninhada (Nameservers) */
.mdr-resultado-wrapper .mdr-nested-list {
    list-style: disc;
    margin-left: 170px;
    margin-top: 5px;
    padding-left: 20px;
}
.mdr-resultado-wrapper .mdr-nested-list li {
    border: none;
    padding: 2px 0;
    margin: 0;
    font-size: 0.95em;
}

/* Bloco de Sugestões */
.mdr-suggestions-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: #f1f8ff;
    border: 1px solid #b8d9f9;
    border-radius: 4px;
}
.mdr-suggestions-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4e8fd;
    color: #005a9c;
}

.mdr-suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

a.mdr-suggestion-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0073aa;
    color: #ffffff;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

a.mdr-suggestion-link:hover {
    background-color: #005177;
    transform: translateY(-1px);
}

span.mdr-suggestion-link.no-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #eee;
    color: #555;
    font-size: 0.9em;
    font-weight: normal;
    border-radius: 4px;
}

/* Cores das Respostas */
.mdr-resultado-wrapper .notice.notice-success {
    border-left-color: #46b450;
    background-color: #f9fdf9;
}
.mdr-resultado-wrapper .notice.notice-warning {
    border-left-color: #ffb900;
    background-color: #fffaf2;
}
.mdr-resultado-wrapper .notice.notice-error {
    border-left-color: #d63638;
    background-color: #fef7f7;
}
.mdr-resultado-wrapper .notice.notice-info {
    border-left-color: #00a0d2;
    background-color: #f7fcfe;
}


/* Redução de Fonte para Erros (Servidor) */
.mdr-resultado-wrapper .notice.notice-error p {
    font-size: 0.95em; 
}

.mdr-resultado-wrapper .notice.notice-error p strong {
    font-size: 1.1em; 
}