/* Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* Efeito Neon */
@keyframes neon-glow {
    0%, 100% { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #4361ee, 0 0 40px #4361ee; }
    50% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #4361ee, 0 0 20px #4361ee; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Fundo Preto Brilhante */
.neon-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
    opacity: 0.9;
}

/* Logo Animada */
.logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    animation: float 4s ease-in-out infinite;
}

.square {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid #4361ee;
}

.square.top {
    top: 0;
    left: 0;
    animation: neon-glow 2s infinite;
}

.square.bottom {
    bottom: 0;
    right: 0;
    background: rgba(67, 97, 238, 0.3);
    animation: neon-glow 3s infinite reverse;
}

/* Interface Principal */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.neon-title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 30px;
    animation: neon-glow 1.5s infinite alternate;
}

.neon-title span {
    color: #4361ee;
}

.input-container {
    display: flex;
    margin-bottom: 30px;
}

.input-container input {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #4361ee;
    border-radius: 8px 0 0 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.input-container input:focus {
    border-color: #fff;
    box-shadow: 0 0 15px #4361ee;
}

.neon-button {
    padding: 0 25px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    animation: neon-glow 2s infinite;
}

.neon-button:hover {
    background: #3a56d4;
    transform: scale(1.05);
}

/* Área de Trabalho */
.workspace {
    position: relative;
    border: 2px solid #4361ee;
    border-radius: 8px;
    overflow: hidden;
    min-height: 600px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.5);
}

#clonedPage {
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading */
#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.spinner {
    border: 5px solid rgba(67, 97, 238, 0.3);
    border-radius: 50%;
    border-top: 5px solid #4361ee;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.neon-text {
    color: #fff;
    font-size: 1.2rem;
    animation: neon-glow 1.5s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toolbox */
.toolbox {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.tool-button {
    padding: 12px 25px;
    background: rgba(67, 97, 238, 0.2);
    color: #fff;
    border: 2px solid #4361ee;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.tool-button:hover {
    background: #4361ee;
    box-shadow: 0 0 15px #4361ee;
}

/* Modo Edição */
.editable {
    outline: 2px dashed rgba(67, 97, 238, 0.7) !important;
    min-height: 20px;
    transition: all 0.2s;
}

.editable:hover {
    background: rgba(67, 97, 238, 0.1) !important;
}