/* 🔧 CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* 🎪 CABEÇALHO CRIATIVO */
.cabecalho {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2d07da, #a3d0e3);
    border-radius: 15px;
    color: white;
}

.cabecalho h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitulo {
    font-size: 1.2em;
    opacity: 0.9;
}

/* 🎛️ PAINEL DE CONTROLES */
.painel-controles {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid #4CAF50;
}

.painel-controles h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grupo-botoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.grupo {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grupo h4 {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.9em;
}

/* 🎨 BOTÕES E CONTROLES */
.btn-estilo {
    padding: 8px 12px;
    margin: 5px;
    border: 2px solid #007acc;
    background: white;
    color: #007acc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-estilo:hover {
    background: #007acc;
    color: white;
    transform: translateY(-2px);
}

.btn-estilo.ativo {
    background: #007acc;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 122, 204, 0.3);
}

.controle {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    margin: 5px 0;
}

.controle:focus {
    border-color: #007acc;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 122, 204, 0.3);
}

/* 📝 ÁREA DE EDIÇÃO */
.area-edicao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.lado-esquerdo, .lado-direito {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
}

.lado-esquerdo h3, .lado-direito h3 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

#areaTexto {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 3px dashed #007acc;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    background: white;
    transition: all 0.3s ease;
}

#areaTexto:focus {
    border-style: solid;
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
}

/* 👀 VISUALIZAÇÃO */
.visualizacao-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    min-height: 200px;
    border: 2px solid #e0e0e0;
}

.texto-preview {
    min-height: 150px;
    padding: 15px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* 📊 ESTATÍSTICAS */
.estatisticas {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.contador {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 🎨 SEÇÃO CRIATIVA */
.secao-criativa {
    background: linear-gradient(135deg, #3e04d2, #ea4848);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.secao-criativa h3 {
    margin-bottom: 20px;
    color: #f0f6f8;
    text-align: center;
}

.temas-cores, .extras-criativos {
    margin-bottom: 20px;
}

.temas-cores h4, .extras-criativos h4 {
    margin-bottom: 15px;
    color: #eff2f3;
}

.botoes-temas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-tema, .btn-extra {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-tema {
    background: rgb(11, 1, 100);
    color: #f5f5f6;
}

.btn-tema:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-extra {
    background: #1f108f;
    color: white;
    margin: 5px;
}

.btn-extra:hover {
    background: #15058b;
    transform: scale(1.05);
}

/* 🎮 CONTROLES FINAIS */
.controles-finais {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-grande {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#btnSalvar { background: #f90000; color: white; }
#btnLimpar { background: #f3ef00; color: white; }
#btnCopiar { background: #000cf8; color: white; }

.btn-grande:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 💬 MENSAGENS */
.mensagem {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    background: #00b894;
    color: white;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.mensagem.mostrar {
    transform: translateX(0);
}

.mensagem.erro {
    background: #e17055;
}

/* ✨ CLASSES DINÂMICAS PARA ESTILOS */
.negrito {
    font-weight: bold !important;
}

.italico {
    font-style: italic !important;
}

.sublinhado {
    text-decoration: underline !important;
}

.riscado {
    text-decoration: line-through !important;
}

.borda-decorativa {
    border: 3px solid #ff6b6b !important;
    padding: 20px !important;
    background: linear-gradient(45deg, #ffeaa7, #a29bfe) !important;
}

.borda-pontilhada {
    border: 3px dotted #e84393 !important;
    padding: 15px !important;
}

.sombra-texto {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

/* ✨ EFEITOS ESPECIAIS */
@keyframes piscar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.texto-piscante {
    animation: piscar 0.8s infinite;
}

@keyframes mudarCores {
    0% { color: #ff6b6b; }
    25% { color: #48dbfb; }
    50% { color: #1dd1a1; }
    75% { color: #f368e0; }
    100% { color: #ff9ff3; }
}

.texto-arcoiris {
    animation: mudarCores 3s linear infinite;
}

/* 🎯 QUIZ */
.quiz-container {
    background: linear-gradient(135deg, #0547ec, #c5fb03);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    color: white;
}

.opcoes-quiz {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.btn-opcao {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-opcao:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-opcao.correto {
    background: #00b894;
    color: white;
}

.btn-opcao.errado {
    background: #e17055;
    color: white;
}

/* 📱 RESPONSIVIDADE */
@media (max-width: 768px) {
    .area-edicao {
        grid-template-columns: 1fr;
    }
    
    .grupo-botoes {
        grid-template-columns: 1fr;
    }
    
    .controles-finais {
        flex-direction: column;
    }
    
    .botoes-temas {
        justify-content: center;
    }
    
    .estatisticas {
        flex-direction: column;
        gap: 10px;
    }
}

/* 🎭 TEMAS DE CORES DINÂMICOS */
body.tema-escuro {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.tema-azul {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

body.tema-rosa {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

body.tema-verde {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

body.tema-ouro {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}