/* ==========================================================================
   ESTILOS DO DICIONÁRIO - estilo_inicial.css
   ========================================================================== */

/* 1. Reset Global & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. Container Principal (480px de largura com fundo totalmente branco) */
.dic-container {
    margin: 0 auto !important;
    font-family: inherit;
    padding: 15px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dic-container_inicial {
    width: 480px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    font-family: inherit;
    padding: 15px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Espaçamento entre containers consecutivos */
.dic-container + .dic-container {
    margin-top: 15px;
}

/* 3. Área de Busca e Cabeçalhos */
.dic-search-box {
    margin-bottom: 20px;
    text-align: center;
}

.dic-search-box:last-child {
    margin-bottom: 0;
}

/* 4. Caixas de Texto / Cards da Página Inicial */
.dic-search-label {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
    background-color: #E0E4FF !important; /* azul claro */
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.dic-search-label2 {
    display: block;
    font-size: 22px;
    font-weight: 500;
    color: #444;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
    background-color: #C3C9FA !important; /* azul claro */
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Layout vertical interno para os cards da home */
.dic-search-label.dic-home-box,
.dic-search-label2.dic-home-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Destaque para contagem de palavras */
.dic-search-label strong {
    color: #0073aa;
    font-size: 24px;
    font-weight: bold;
}

/* 5. Campos de Entrada (Input Text) */
.dic-search-box input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 17px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dic-search-box input[type="text"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

/* 6. Estilos do Container de Alerta (Sessão Expirada) */
.dic-container-expirada {
    background-color: #ffffff;
}

.dic-alerta-expirado {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 14px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.4;
}

/* 7. Cabeçalho de Sessão e Logoff */
.dic-header-sessao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.dic-welcome-text {
    flex-grow: 1;
    text-align: center;
}

/* Botão de Logoff */
.dic-tab-btn.dic-logoff-btn {
    background-color: #f44336;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    min-width: auto;
    white-space: nowrap;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dic-tab-btn.dic-logoff-btn:hover {
    background-color: #d32f2f;
    color: #ffffff;
}

/* 8. Botões Padrão e Abas do Alfabeto */
.dic-alphabet-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 25px;
}

.dic-tab-btn {
    background: #f1f1f1;
    border: 1px solid #ddd;
    color: #333;
    padding: 9px 14px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 17px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.dic-tab-btn:hover, 
.dic-tab-btn.active {
    background: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}

/* 9. Cards de Palavras e Conteúdo */
.dic-words-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dic-word-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.dic-word-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #222222;
    font-size: 22px;
}

.dic-word-title .dic-word-name {
    font-weight: bold;
}

.dic-word-title .dic-word-meta {
    font-size: 14px;
    font-weight: normal;
    color: #666666;
}

.dic-word-title .dic-meta-sep {
    font-size: 14px;
    font-weight: normal;
    color: #666666;
}

.dic-word-meaning {
    color: #444444;
    font-size: 18px;
    line-height: 1.7;
}

.dic-word-summary strong {
    color: #0073aa;
    font-weight: normal;
}

/* 10. Mensagens de Status (Carregamento / Erro) */
.dic-loading,
.dic-no-results,
.dic-error {
    padding: 20px;
    text-align: center;
    color: #666666;
    font-size: 16px;
}

/* Container e Botão para a página Matérias */
.dic-materias-link-container {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
}

.dic-btn-materias {
    display: inline-block;
    width: 100%;
    background-color: #28a745;
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dic-btn-materias:hover {
    background-color: #218838;
    color: #ffffff;
    text-decoration: none;
}

.dic-frase-saudacao {
    font-size: 16px !important;
    font-weight: bold !important;
}

.dic-frase-inicial_bd {
    font-size: 18px !important;
    font-weight: normal !important;
    color: #333333 !important;
}

.dic-frase-inicial_bd strong {
    color: #0073aa !important;
    font-size: 22px !important;
    font-weight: bold !important;
}

/* ==========================================================================
   11. AJUSTES RESPONSIVOS (DISPOSITIVOS MÓVEIS - ATÉ 600PX)
   ========================================================================== */
@media (max-width: 600px) {
    .dic-container {
        max-width: 100%;
        margin: 0 10px;
        padding: 12px;
    }

    .dic-header-sessao {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .dic-tab-btn.dic-logoff-btn {
        width: 100%;
    }

    .dic-search-label {
        font-size: 17px;
        padding: 15px;
    }

    .dic-search-label2 {
        font-size: 20px;
        padding: 15px;
    }

    .dic-search-label strong {
        font-size: 20px;
    }

    .dic-search-box input[type="text"] {
        padding: 12px 14px;
        font-size: 16px;
    }

    .dic-tab-btn {
        padding: 8px 12px;
        font-size: 15px;
        min-width: 36px;
    }

    .dic-word-card {
        padding: 15px;
    }

    .dic-word-title {
        font-size: 19px;
    }

    /* Transforma a palavra em linha 1 e Id/Data/Hora na linha 2 no celular */
    .dic-word-title .dic-word-name {
        display: block;
        margin-bottom: 3px;
    }

    .dic-word-title .dic-meta-sep {
        display: none; /* Remove o traço entre palavra e meta no mobile */
    }

    .dic-word-title .dic-word-meta {
        display: block;
        font-size: 13px;
        color: #777777;
    }

    .dic-word-meaning {
        font-size: 16px;
    }

    .dic-alerta-expirado {
        font-size: 14px;
        padding: 10px;
    }
	
    .dic-btn-materias {
        font-size: 15px;
        padding: 10px 14px;
    }
}