#app-gerador-email {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #f9f9f9;
    border: 2px solid #000000;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    box-sizing: border-box;
    overflow: hidden;
}

#app-gerador-email * { box-sizing: border-box; }

.gen-controls {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: #ffffff;
    border-right: 1px solid #eee;
}

.gen-preview-area {
    flex: 2;
    min-width: 300px;
    background: #3B8E94;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: auto;
}

.gen-tabs { width: 100%; max-width: 600px; margin-bottom: 15px; display: flex; gap: 10px; }

.gen-tab-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid transparent;
    padding: 8px 15px;
    border-radius: 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: 0.2s;
}

.gen-tab-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

.gen-preview-box {
    background: white;
    width: 100%;
    max-width: 600px;
    min-height: 400px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 10px 10px -5px rgba(0,0,0,0.1);
    border-radius: 0;
    transition: width 0.3s;
}

.preview-mobile { max-width: 320px !important; }

.gen-group { margin-bottom: 15px; position: relative; }
.gen-label { display: block; font-size: 12px; font-weight: bold; color: #333; text-transform: uppercase; margin-bottom: 5px; }

.gen-input, .gen-textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px; transition: 0.3s;
}
.gen-input:focus, .gen-textarea:focus { border-color: #3B8E94; outline: none; }

.input-error { border-color: #dc3545 !important; background-color: #fff8f8; }
.error-msg { color: #dc3545; font-size: 11px; margin-top: 4px; display: none; }
.gen-textarea { min-height: 80px; resize: vertical; }

.gen-btn {
    width: 100%;
    background: #3B8E94;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.gen-btn:hover { background: #2f7277; }
.gen-btn:disabled { background: #cccccc; cursor: not-allowed; color: #666; }

@media (max-width: 768px) {
    #app-gerador-email { flex-direction: column; }
    .gen-controls { border-right: none; border-bottom: 1px solid #eee; }
}
