/* Lingoloop AI Site Generator - Estilos CSS Premium */

/* Importar fonte Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset e configurações globais */
* {
    box-sizing: border-box;
}

#lingoloop-container {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #EEEEEE;
    background-color: #121212;
    overflow: hidden;
}

/* Container principal - Layout Flexbox */
#lingoloop-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: #121212;
}

/* ===== COLUNA ESQUERDA - PREVIEW DO SITE (70%) ===== */
#lingoloop-preview-area {
    flex: 0 0 72%;
    display: flex;
    flex-direction: column;
    background-color: #1E1E1E;
    border-right: 1px solid #333333;
}

/* Área de abas */
#lingoloop-tabs {
    display: flex;
    background-color: #2A2A2A;
    border-bottom: 1px solid #333333;
    padding: 0 12px;
    height: 40px;
    align-items: center;
}

.lingoloop-tab {
    padding: 8px 12px;
    margin-right: 8px;
    background-color: transparent;
    color: #AAAAAA;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.lingoloop-tab:hover {
    background-color: #3A3A3A;
    color: #EEEEEE;
}

.lingoloop-tab.active {
    background-color: #1E1E1E;
    color: #EEEEEE;
    border-bottom: 2px solid #4A9EFF;
}

/* Botão "Nova Página" */
.lingoloop-add-page-btn {
    padding: 6px 12px;
    margin-left: auto;
    background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.2);
}

.lingoloop-add-page-btn:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2A5F99 100%);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
    transform: translateY(-1px);
}

.lingoloop-add-page-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(74, 158, 255, 0.2);
}

.lingoloop-add-page-btn i {
    font-size: 10px;
}

/* Frame de preview */
#lingoloop-preview-frame {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #1E1E1E;
    overflow: auto;
}

.lingoloop-placeholder {
    text-align: center;
    color: #888888;
    font-size: 14px;
    font-weight: 400;
    max-width: 360px;
    line-height: 1.4;
}

/* Placeholders para seções */
.lingoloop-section-placeholder {
    background-color: #2A2A2A;
    border: 1px solid #444444;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 520px;
}

.lingoloop-section-placeholder:hover {
    background-color: #3A3A3A;
    border-color: #555555;
}

.lingoloop-placeholder-title {
    font-size: 13px;
    font-weight: 600;
    color: #EEEEEE;
    margin-bottom: 6px;
}

.lingoloop-placeholder-status {
    font-size: 11px;
    color: #AAAAAA;
    font-style: italic;
}

/* Containers de páginas */
.lingoloop-page-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

/* Seções geradas */
.lingoloop-section {
    margin-bottom: 14px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08);
}

/* Estilos para o HTML gerado pelas seções */
.lingoloop-section * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lingoloop-section img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.lingoloop-section h1,
.lingoloop-section h2,
.lingoloop-section h3,
.lingoloop-section h4,
.lingoloop-section h5,
.lingoloop-section h6 {
    color: #EEEEEE;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.lingoloop-section p {
    color: #CCCCCC;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.lingoloop-section a {
    color: #4A9EFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lingoloop-section a:hover {
    color: #3A8EEF;
}

.lingoloop-section button,
.lingoloop-section .btn {
    background-color: #4A9EFF;
    color: #FFFFFF;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lingoloop-section button:hover,
.lingoloop-section .btn:hover {
    background-color: #3A8EEF;
    transform: translateY(-1px);
}

/* ===== COLUNA DIREITA - ÁREA DO CHAT (30%) ===== */
#lingoloop-chat-area {
    flex: 0 0 28%;
    display: flex;
    flex-direction: column;
    background-color: #1A1A1A;
}

/* Header do chat com botões */
.lingoloop-chat-header {
    padding: 12px;
    border-bottom: 1px solid #333333;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 🔢 Badge de Quota de Prompts */
#lingoloop-quota-badge,
.lingoloop-quota-badge {
    margin-left: auto; /* empurra para a direita */
    align-self: center;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1;
    border-radius: 999px;
    background: #2A2A2A;
    color: #EEE;
    border: 1px solid #444;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.lingoloop-quota-badge.checking {
    opacity: 0.7;
}
.lingoloop-quota-badge.low {
    background: #3b2a00;
    border-color: #8a6d00;
    color: #ffd54d;
}
.lingoloop-quota-badge.exhausted {
    background: #3a0000;
    border-color: #7a0000;
    color: #ff6b6b;
}

/* Estilos dos botões */
.lingoloop-btn {
    padding: 6px 12px;
    background-color: #2A2A2A;
    color: #EEEEEE;
    border: 1px solid #444444;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lingoloop-btn:hover {
    background-color: #3A3A3A;
    border-color: #555555;
}

.lingoloop-btn:active {
    transform: translateY(1px);
}

.lingoloop-btn-primary {
    background-color: #4A9EFF;
    border-color: #4A9EFF;
    color: #FFFFFF;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
}

.lingoloop-btn-primary:hover {
    background-color: #3A8EEF;
    border-color: #3A8EEF;
}

/* Botão de parar geração */
#lingoloop-stop-btn {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: #FFFFFF;
    display: none; /* Inicialmente oculto */
}

#lingoloop-stop-btn:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
}

#lingoloop-stop-btn:disabled {
    background-color: #666666;
    border-color: #666666;
    cursor: not-allowed;
}

/* Área de log do chat */
#lingoloop-chat-log {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mensagens do chat */
.lingoloop-message {
    display: flex;
    margin-bottom: 8px;
}

.lingoloop-message-user {
    justify-content: flex-end;
}

.lingoloop-message-system,
.lingoloop-message-ai {
    justify-content: flex-start;
}

.lingoloop-message-content {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.3;
    word-wrap: break-word;
}

.lingoloop-message-user .lingoloop-message-content {
    background-color: #4A9EFF;
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.lingoloop-message-system .lingoloop-message-content,
.lingoloop-message-ai .lingoloop-message-content {
    background-color: #2A2A2A;
    color: #EEEEEE;
    border-bottom-left-radius: 4px;
}

/* Área de input do chat - NOVA VERSÃO MELHORADA */
.lingoloop-chat-input-area {
    padding: 12px;
    border-top: 1px solid #333333;
    background-color: #1E1E1E;
}

.lingoloop-input-container {
    width: 100%;
    margin-bottom: 8px;
    position: relative;
    background-color: #2A2A2A;
    border: 1px solid #444444;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.lingoloop-input-container:focus-within {
    border-color: #4A9EFF;
    background-color: #2F2F2F;
}

#lingoloop-user-input {
    width: 100%;
    min-height: 56px;
    padding: 10px 12px 8px 12px;
    background-color: transparent;
    border: none;
    color: #EEEEEE;
    font-size: 12px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

#lingoloop-user-input:focus {
    outline: none;
}

.lingoloop-input-footer {
    padding: 6px 12px 10px 12px;
    border-top: 1px solid #333333;
    background-color: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.lingoloop-input-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* REMOVIDO: Template link 
.lingoloop-template-link {
    color: #888888;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
    font-weight: 500;
}

.lingoloop-template-link:hover {
    color: #4A9EFF;
    text-decoration: underline;
}
*/

#lingoloop-user-input:focus {
    outline: none;
    border-color: #4A9EFF;
    background-color: #2F2F2F;
}

#lingoloop-user-input::placeholder {
    color: #888888;
}

/* REMOVIDO: Botões de acesso rápido aos templates 
.template-quick-access {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.template-quick-btn {
    background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(74, 158, 255, 0.2);
}

.template-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
    background: linear-gradient(135deg, #357ABD 0%, #2563EB 100%);
}

.template-quick-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(74, 158, 255, 0.2);
}

REMOVIDO: CSS para a interface inline de nome do template 
.template-name-input {
    background: #2A2A2A;
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
}

.template-name-input p {
    margin: 0 0 8px 0;
    color: #EEEEEE;
}

.template-name-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #444444;
    border-radius: 4px;
    background: #1E1E1E;
    color: #EEEEEE;
    font-size: 13px;
}

.template-name-input input:focus {
    outline: none;
    border-color: #4A9EFF;
}

.template-name-input button {
    padding: 8px 16px;
    background: #4A9EFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.template-name-input button:hover {
    background: #357ABD;
    transform: translateY(-1px);
}
*/

/* Scrollbar personalizada (chat, preview e textarea) */
#lingoloop-chat-log::-webkit-scrollbar,
#lingoloop-preview-frame::-webkit-scrollbar,
#lingoloop-user-input::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#lingoloop-chat-log::-webkit-scrollbar-track,
#lingoloop-preview-frame::-webkit-scrollbar-track,
#lingoloop-user-input::-webkit-scrollbar-track {
    background: #141414;
    border-radius: 8px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

#lingoloop-chat-log::-webkit-scrollbar-thumb,
#lingoloop-preview-frame::-webkit-scrollbar-thumb,
#lingoloop-user-input::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4A9EFF, #357ABD);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

#lingoloop-chat-log::-webkit-scrollbar-thumb:hover,
#lingoloop-preview-frame::-webkit-scrollbar-thumb:hover,
#lingoloop-user-input::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5BA8FF, #3F7FBC);
}

/* Evita pulo de layout quando a barra aparece */
#lingoloop-chat-log,
#lingoloop-preview-frame {
    scrollbar-gutter: stable both-edges;
}

/* Scrollbar para Firefox */
#lingoloop-chat-log {
    scrollbar-width: thin;
    scrollbar-color: #4A9EFF #141414;
}

#lingoloop-preview-frame {
    scrollbar-width: thin;
    scrollbar-color: #4A9EFF #141414;
}

#lingoloop-user-input {
    scrollbar-width: thin;
    scrollbar-color: #4A9EFF #141414;
}

/* ===== MODO TELA CHEIA ===== */
#lingoloop-container.llp-fullscreen-preview {
    position: relative;
}

#lingoloop-container.llp-fullscreen-preview #lingoloop-preview-area {
    flex: 1;
    width: 100%;
    border-right: none;
    position: relative;
}

#lingoloop-container.llp-fullscreen-preview #lingoloop-chat-area {
    position: fixed;
    top: 0;
    right: -420px; /* Escondido inicialmente (um pouco mais para garantir) */
    width: 400px;
    height: 100vh;
    background-color: #1A1A1A;
    border-left: 1px solid #333333;
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
}

#lingoloop-container.llp-fullscreen-preview #lingoloop-chat-area.chat-visible {
    right: 0; /* Visível quando ativado */
}

/* Overlay para escurecer o preview quando o chat está visível */
#llp-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

#lingoloop-container.llp-fullscreen-preview #lingoloop-chat-area.chat-visible ~ #llp-fullscreen-overlay,
#lingoloop-container.llp-fullscreen-preview.chat-visible #llp-fullscreen-overlay {
    opacity: 1;
    visibility: visible;
}

/* Botão para puxar o chat */
#llp-chat-toggle-btn {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
    transition: all 0.3s ease;
    display: none; /* Escondido por padrão */
}

#lingoloop-container.llp-fullscreen-preview #llp-chat-toggle-btn {
    display: block; /* Visível no modo fullscreen */
}

#llp-chat-toggle-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

/* Botão de fullscreen no preview */
#llp-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    background: rgba(26, 26, 26, 0.9);
    color: #EEEEEE;
    border: 1px solid #444444;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

#llp-fullscreen-btn:hover {
    background: rgba(58, 58, 58, 0.9);
    border-color: #555555;
}

/* Indicador de site completo */
.llp-site-complete-indicator {
    position: absolute;
    top: 50px;
    right: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

.llp-site-complete-indicator.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    #lingoloop-container {
        flex-direction: column;
    }
    
    #lingoloop-preview-area {
        flex: 0 0 60%;
        border-right: none;
        border-bottom: 1px solid #333333;
    }
    
    #lingoloop-chat-area {
        flex: 0 0 40%;
    }
    
    .lingoloop-chat-header {
        padding: 15px;
    }
    
    .lingoloop-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    #lingoloop-preview-frame {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    #lingoloop-preview-area {
        flex: 0 0 50%;
    }
    
    #lingoloop-chat-area {
        flex: 0 0 50%;
    }
    
    #lingoloop-preview-frame {
        padding: 15px;
    }
    
    .lingoloop-placeholder {
        font-size: 16px;
    }
    
    .lingoloop-chat-header {
        flex-direction: column;
        gap: 6px;
    }
    
    .lingoloop-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Ajustes para modo fullscreen em mobile */
    #lingoloop-container.llp-fullscreen-preview #lingoloop-chat-area {
        width: 100%;
        right: -100%;
    }
    
    #llp-chat-toggle-btn {
        width: 60px;
        height: 60px;
        font-size: 18px;
        right: 15px;
    }
    
    #llp-fullscreen-btn {
        top: 15px;
        right: 15px;
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .lingoloop-chat-input-area {
        flex-direction: column;
        gap: 8px;
    }

    #lingoloop-user-input {
        width: 100%;
    }
    
    .lingoloop-input-bottom {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #lingoloop-tabs {
        padding: 0 10px;
        height: 45px;
    }
    
    .lingoloop-tab {
        padding: 8px 12px;
        font-size: 12px;
        margin-right: 4px;
    }
    
    #lingoloop-preview-frame {
        padding: 10px;
    }
    
    .lingoloop-placeholder {
        font-size: 14px;
    }
    
    #lingoloop-chat-log {
        padding: 15px;
    }
    
    .lingoloop-chat-input-area {
        padding: 15px;
    }
    
    .lingoloop-input-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    /* REMOVIDO: Template link responsivo
    .lingoloop-template-link {
        text-align: center;
    }
    */
    
    #lingoloop-generate-btn {
        width: 100%;
    }
}

/* ===== ANIMAÇÕES E TRANSIÇÕES ===== */
.lingoloop-tab,
.lingoloop-btn,
#lingoloop-user-input {
    transition: all 0.2s ease;
}

.lingoloop-message {
    animation: fadeInUp 0.3s ease;
}

.lingoloop-section {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ESTADOS DE CARREGAMENTO ===== */
.lingoloop-loading {
    opacity: 0.7;
    pointer-events: none;
}

.lingoloop-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #4A9EFF;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* === ETAPA 6.3: Edição por Seção com Chat Lateral === */
.lingoloop-section-editor {
  position: fixed;
  top: 0; right: 0;
  width: 400px; max-width: 100vw;
  height: 100vh;
  background: #181a1b;
  color: #fff;
  box-shadow: -2px 0 16px #000a;
  z-index: 9999;
  display: flex; flex-direction: column;
  border-left: 1px solid #222;
  animation: lingoloop-slidein .2s;
}
@keyframes lingoloop-slidein {
  from { right: -420px; opacity: 0; }
  to { right: 0; opacity: 1; }
}
.lingoloop-section-editor-header {
  padding: 16px; font-weight: bold; border-bottom: 1px solid #222;
  display: flex; align-items: center; justify-content: space-between;
  background: #202124;
}
.lingoloop-section-editor-close {
  background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; margin-left: 8px;
  transition: color .2s;
}
.lingoloop-section-editor-close:hover { color: #ff6b35; }
.lingoloop-section-editor-chat {
  flex: 1; overflow-y: auto; padding: 16px; background: #181a1b;
}
.lingoloop-section-editor-input {
  display: flex; border-top: 1px solid #222; padding: 12px; background: #202124;
}
.lingoloop-section-editor-input input {
  flex: 1; background: #222; color: #fff; border: none; padding: 8px; border-radius: 4px;
}
.lingoloop-section-editor-input button {
  margin-left: 8px; background: #0073aa; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; font-weight: bold;
  transition: background .2s;
}
.lingoloop-section-editor-input button:hover { background: #005177; }
.lingoloop-section-editor-msg { margin-bottom: 18px; }
.lingoloop-section-editor-msg-label { font-size: 12px; color: #aaa; margin-bottom: 2px; }
.lingoloop-section-editor-html {
  background: #23272a; color: #e0e0e0; padding: 8px; border-radius: 4px; font-size: 12px; overflow-x: auto;
}
.lingoloop-section-editor-user {
  background: #222; color: #fff; padding: 8px; border-radius: 4px; font-size: 14px;
}
.lingoloop-section-editor-error {
  background: #3a1a1a; color: #ff6b35; padding: 8px; border-radius: 4px; font-size: 13px;
}
.lingoloop-section-editor-msg-loading {
  color: #aaa; font-style: italic;
}
.lingoloop-section-editing {
  outline: 2px solid #0073aa !important;
  outline-offset: 2px;
  transition: outline .2s;
  z-index: 10;
}
@media (max-width: 600px) {
  .lingoloop-section-editor { width: 100vw; min-width: 0; }
}
/* Fim ETAPA 6.3 */ 

/* ===== MODAL DE PUBLICAÇÃO ===== */
#lingoloop-publish-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#lingoloop-publish-modal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lingoloop-modal-content {
    background: #1E1E1E;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lingoloop-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lingoloop-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.lingoloop-modal-close {
    background: none;
    border: none;
    color: #999999;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lingoloop-modal-close:hover {
    background: #333333;
    color: #FFFFFF;
}

.lingoloop-modal-body {
    padding: 24px;
}

.lingoloop-publish-options {
    display: grid;
    gap: 16px;
}

.lingoloop-publish-option {
    border: 2px solid #333333;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #2A2A2A;
}

.lingoloop-publish-option:hover {
    border-color: #4A9EFF;
    background: #2D3748;
}

.lingoloop-publish-option.selected {
    border-color: #4A9EFF;
    background: #1A365D;
}

.lingoloop-option-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.lingoloop-option-icon {
    font-size: 24px;
    margin-right: 12px;
}

.lingoloop-option-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.lingoloop-option-description {
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.lingoloop-option-content {
    margin-top: 16px;
    display: none;
}

.lingoloop-publish-option.selected .lingoloop-option-content {
    display: block;
}

.lingoloop-form-group {
    margin-bottom: 16px;
}

.lingoloop-form-label {
    display: block;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 6px;
    font-size: 14px;
}

.lingoloop-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #444444;
    border-radius: 8px;
    background: #121212;
    color: #FFFFFF;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.lingoloop-form-input:focus {
    outline: none;
    border-color: #4A9EFF;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.lingoloop-domain-preview {
    margin-top: 8px;
    padding: 12px;
    background: #2A2A2A;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    color: #4A9EFF;
    border-left: 3px solid #4A9EFF;
}

.lingoloop-instructions {
    background: #2A2A2A;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.lingoloop-instructions h4 {
    margin: 0 0 12px 0;
    color: #FFFFFF;
    font-size: 16px;
}

.lingoloop-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #CCCCCC;
}

.lingoloop-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.lingoloop-verification-section {
    margin-top: 16px;
    padding: 16px;
    background: #1A365D;
    border-radius: 8px;
    border-left: 3px solid #4A9EFF;
}

.lingoloop-verification-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.lingoloop-status-icon {
    font-size: 20px;
}

.lingoloop-status-text {
    font-weight: 500;
    color: #FFFFFF;
}

.lingoloop-modal-footer {
    padding: 16px 24px 24px 24px;
    border-top: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lingoloop-modal-footer .lingoloop-btn {
    min-width: 120px;
}

.lingoloop-btn-outline {
    background: transparent;
    border: 1px solid #4A9EFF;
    color: #4A9EFF;
}

.lingoloop-btn-outline:hover {
    background: #4A9EFF;
    color: #FFFFFF;
}

.lingoloop-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #333333;
    border-radius: 50%;
    border-top-color: #4A9EFF;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

/* ✅ MELHORIAS NO LOADING SPINNER */
.lingoloop-loading-spinner.publishing {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

/* Animação mais suave para o spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ✅ ESTILOS PARA BOTÃO DE PUBLICAÇÃO DURANTE LOADING */
.lingoloop-btn.publishing {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: #6366f1 !important;
    cursor: not-allowed !important;
    position: relative;
    overflow: hidden;
}

.lingoloop-btn.publishing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsividade para o modal */
@media (max-width: 768px) {
    .lingoloop-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .lingoloop-modal-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .lingoloop-modal-footer .lingoloop-btn {
        width: 100%;
    }
}

/* === SISTEMA DE AUTO-MELHORIA === */

/* Container de melhorias */
.improvement-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.improvement-panel h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.improvement-panel h3::before {
    content: "🚀";
    font-size: 20px;
}

/* Grid de botões de melhoria */
.improvement-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* Botões de melhoria */
.improvement-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.improvement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.improvement-btn:active {
    transform: translateY(0);
}

.improvement-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Botões específicos por tipo */
.improvement-btn.content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.improvement-btn.design {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.improvement-btn.functionality {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.improvement-btn.seo {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.improvement-btn.conversion {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Spinner de loading */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ícones dos botões */
.improvement-btn::before {
    font-size: 16px;
}

.improvement-btn.content::before {
    content: "✍️";
}

.improvement-btn.design::before {
    content: "🎨";
}

.improvement-btn.functionality::before {
    content: "⚙️";
}

.improvement-btn.seo::before {
    content: "🔍";
}

.improvement-btn.conversion::before {
    content: "📈";
}

/* Descrições das melhorias */
.improvement-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-top: 8px;
}

.improvement-description ul {
    margin: 8px 0 0 16px;
    padding: 0;
}

.improvement-description li {
    margin-bottom: 4px;
}

/* Status das melhorias */
.improvement-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 12px;
}

.improvement-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.improvement-status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.improvement-status.loading {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Responsividade para melhorias */
@media (max-width: 768px) {
    .improvement-buttons {
        grid-template-columns: 1fr;
    }
    
    .improvement-panel {
        padding: 16px;
        margin-top: 16px;
    }
    
    .improvement-btn {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Animações suaves */
.improvement-panel {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ✨ TELA DE BOAS-VINDAS INSPIRADORA ===== */
.lingoloop-welcome-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    position: relative;
}

.lingoloop-magic-container {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.lingoloop-magic-icon {
    font-size: 80px;
    animation: lingoloop-pulse 2s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes lingoloop-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.lingoloop-welcome-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lingoloop-titleGlow 3s ease-in-out infinite;
}

@keyframes lingoloop-titleGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.6)); }
}

.lingoloop-welcome-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.5;
}

.lingoloop-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.lingoloop-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lingoloop-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lingoloop-feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.lingoloop-feature-text {
    font-size: 16px;
    font-weight: 500;
}

.lingoloop-inspiration-text {
    margin-top: 40px;
}

.lingoloop-typewriter {
    font-size: 22px;
    font-style: italic;
    opacity: 0.8;
    border-right: 2px solid white;
    padding-right: 5px;
    animation: lingoloop-typewriter 4s steps(40) infinite, lingoloop-cursor 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

@keyframes lingoloop-typewriter {
    0%, 50% { width: 0; }
    100% { width: 100%; }
}

@keyframes lingoloop-cursor {
    50% { border-color: transparent; }
}

.lingoloop-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.lingoloop-floating-elements div {
    position: absolute;
    font-size: 40px;
    opacity: 0.3;
}

.lingoloop-float-1 {
    top: 20%;
    left: 10%;
    animation: lingoloop-float 6s ease-in-out infinite;
}

.lingoloop-float-2 {
    top: 60%;
    right: 15%;
    animation: lingoloop-float 8s ease-in-out infinite reverse;
}

.lingoloop-float-3 {
    top: 10%;
    right: 20%;
    animation: lingoloop-float 7s ease-in-out infinite;
}

.lingoloop-float-4 {
    bottom: 20%;
    left: 20%;
    animation: lingoloop-float 9s ease-in-out infinite reverse;
}

@keyframes lingoloop-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== ✨ TELA DE GERAÇÃO MÁGICA ===== */
.lingoloop-generating-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    overflow: hidden;
    position: relative;
    padding: 40px;
}

.lingoloop-ai-brain {
    margin-bottom: 40px;
    position: relative;
}

.lingoloop-brain-core {
    width: 120px;
    height: 120px;
    border: 3px solid #4facfe;
    border-radius: 50%;
    position: relative;
    animation: lingoloop-brainPulse 2s ease-in-out infinite;
}

@keyframes lingoloop-brainPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 40px rgba(79, 172, 254, 0.6);
    }
}

.lingoloop-neural-network {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.lingoloop-neuron {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4facfe;
    border-radius: 50%;
    animation: lingoloop-neuronFire 1.5s ease-in-out infinite;
}

.lingoloop-neuron:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.lingoloop-neuron:nth-child(2) {
    top: 30%;
    right: 0;
    animation-delay: 0.3s;
}

.lingoloop-neuron:nth-child(3) {
    bottom: 30%;
    right: 0;
    animation-delay: 0.6s;
}

.lingoloop-neuron:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.9s;
}

.lingoloop-neuron:nth-child(5) {
    top: 30%;
    left: 0;
    animation-delay: 1.2s;
}

@keyframes lingoloop-neuronFire {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
        box-shadow: 0 0 5px rgba(79, 172, 254, 0.3);
    }
    50% { 
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 15px rgba(79, 172, 254, 0.8);
    }
}

.lingoloop-generation-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lingoloop-sparkle {
    animation: lingoloop-sparkle 1.5s ease-in-out infinite;
}

@keyframes lingoloop-sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

.lingoloop-process-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.lingoloop-step {
    text-align: center;
    opacity: 0.4;
    transition: all 0.5s ease;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
}

.lingoloop-step.active {
    opacity: 1;
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.lingoloop-step-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.lingoloop-step-text {
    font-size: 14px;
    font-weight: 500;
}

.lingoloop-code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
    z-index: 1;
}

.lingoloop-code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #4facfe;
    animation: lingoloop-codeRain 8s linear infinite;
}

.lingoloop-code-line:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.lingoloop-code-line:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
}

.lingoloop-code-line:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
}

.lingoloop-code-line:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
}

.lingoloop-code-line:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
}

@keyframes lingoloop-codeRain {
    0% {
        top: -50px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100vh;
        opacity: 0;
    }
}

.lingoloop-loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 40px 0;
    overflow: hidden;
    position: relative;
}

.lingoloop-loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    width: 0%;
    border-radius: 3px;
    animation: lingoloop-loadingFill 8s ease-in-out infinite;
    position: relative;
}

.lingoloop-loading-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    animation: lingoloop-loadingShimmer 1.5s ease-in-out infinite;
}

@keyframes lingoloop-loadingFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes lingoloop-loadingShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.lingoloop-ai-thoughts {
    text-align: center;
    margin-top: 30px;
    height: 60px;
    position: relative;
}

.lingoloop-thought {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: #b3d9ff;
    font-style: italic;
}

.lingoloop-thought.active {
    opacity: 1;
}

/* ===== RESPONSIVIDADE PARA NOVAS TELAS ===== */
@media (max-width: 768px) {
    .lingoloop-welcome-title {
        font-size: 36px;
    }
    
    .lingoloop-welcome-subtitle {
        font-size: 18px;
    }
    
    .lingoloop-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lingoloop-typewriter {
        font-size: 18px;
    }
    
    .lingoloop-generation-title {
        font-size: 24px;
    }
    
    .lingoloop-process-steps {
        gap: 15px;
    }
    
    .lingoloop-step {
        min-width: 100px;
        padding: 15px;
    }
    
    .lingoloop-loading-bar {
        width: 250px;
    }
    
    .lingoloop-thought {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .lingoloop-magic-container {
        padding: 20px;
    }
    
    .lingoloop-welcome-title {
        font-size: 28px;
    }
    
    .lingoloop-welcome-subtitle {
        font-size: 16px;
    }
    
    .lingoloop-generation-title {
        font-size: 20px;
    }
    
    .lingoloop-process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .lingoloop-loading-bar {
        width: 200px;
    }
}

/* ===== ESTILOS PARA MENSAGENS DE ERRO ===== */
.lingoloop-message-error {
    border-left: 4px solid #ff4757 !important;
    background-color: rgba(255, 71, 87, 0.1) !important;
    animation: errorPulse 2s ease-in-out;
}

.lingoloop-message-error .lingoloop-message-content {
    color: #ff6b7a !important;
}

.error-details {
    background-color: rgba(255, 71, 87, 0.05);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.error-header {
    font-weight: 600;
    color: #ff4757;
    margin-bottom: 10px;
    font-size: 15px;
}

.error-content {
    color: #ff6b7a;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.error-footer {
    color: #a0a0a0;
    font-size: 12px;
    font-style: italic;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 71, 87, 0.1);
}

@keyframes errorPulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px 5px rgba(255, 71, 87, 0.2);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
        transform: scale(1);
    }
}

/* ===== NOTIFICAÇÕES DE PUBLICAÇÃO ===== */
.lingoloop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    max-width: 400px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInFromRight 0.4s ease-out, fadeOut 0.3s ease-in 12s forwards;
    backdrop-filter: blur(10px);
}

.lingoloop-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.lingoloop-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.lingoloop-notification.warning {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.lingoloop-notification-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lingoloop-notification-body {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.4;
}

.lingoloop-notification-footer {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.3;
}

.lingoloop-notification-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lingoloop-notification-close:hover {
    opacity: 1;
}

.lingoloop-notification-action {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.lingoloop-notification-action:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Mensagem de progresso da publicação */
.lingoloop-publish-progress {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border: 2px solid #cce7ff;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #2563eb;
    font-weight: 500;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== MODAL DE CRIAÇÃO DE PÁGINA ===== */
.lingoloop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#lingoloop-create-page-modal .lingoloop-modal-content {
    background: #1E1E1E;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    border: 1px solid #333333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#lingoloop-create-page-modal .lingoloop-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#lingoloop-create-page-modal .lingoloop-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #EEEEEE;
    display: flex;
    align-items: center;
    gap: 8px;
}

#lingoloop-create-page-modal .lingoloop-modal-header h3 i {
    color: #4A9EFF;
}

#lingoloop-create-page-modal .lingoloop-modal-close {
    background: none;
    border: none;
    color: #AAAAAA;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#lingoloop-create-page-modal .lingoloop-modal-close:hover {
    background: #333333;
    color: #EEEEEE;
}

#lingoloop-create-page-modal .lingoloop-modal-body {
    padding: 24px;
}

#lingoloop-create-page-modal .lingoloop-form-group {
    margin-bottom: 0;
}

#lingoloop-create-page-modal .lingoloop-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #EEEEEE;
    font-size: 14px;
}

#lingoloop-create-page-modal .lingoloop-input {
    width: 100%;
    padding: 12px 16px;
    background: #2A2A2A;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #EEEEEE;
    font-size: 14px;
    transition: all 0.2s ease;
}

#lingoloop-create-page-modal .lingoloop-input:focus {
    outline: none;
    border-color: #4A9EFF;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

#lingoloop-create-page-modal .lingoloop-help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #AAAAAA;
}

#lingoloop-create-page-modal .lingoloop-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #333333;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

#lingoloop-create-page-modal .lingoloop-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

#lingoloop-create-page-modal .lingoloop-btn-secondary {
    background: #333333;
    color: #EEEEEE;
}

#lingoloop-create-page-modal .lingoloop-btn-secondary:hover {
    background: #444444;
}

#lingoloop-create-page-modal .lingoloop-btn-primary {
    background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.2);
}

#lingoloop-create-page-modal .lingoloop-btn-primary:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2A5F99 100%);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
    transform: translateY(-1px);
}

#lingoloop-create-page-modal .lingoloop-btn-primary:active {
    transform: translateY(0);
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(37, 99, 235, 0.1);
    }
}

/* Responsividade para notificações */
@media (max-width: 768px) {
    .lingoloop-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
    }
    
    .lingoloop-notification-header {
        font-size: 15px;
    }
    
    .lingoloop-notification-body {
        font-size: 13px;
    }
    
    .lingoloop-notification-action {
        padding: 6px 12px;
        font-size: 13px;
    }
}