/* 📱 TELEGRAM MOCKUP STYLES */
.telegram-mockup {
    background-color: #7091b6; /* Colore classico sfondo Telegram */
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); /* Pattern leggero */
    border-radius: 15px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 100%;
    min-height: 300px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
}

.telegram-bubble {
    background: #ffffff;
    border-radius: 12px 12px 12px 0;
    padding: 8px 12px;
    position: relative;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    color: #000000;
    line-height: 1.4;
    font-size: 0.95rem;
    word-wrap: break-word;
}

/* La "codina" del fumetto */
.telegram-bubble::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent #ffffff transparent;
}

.telegram-bubble a {
    color: #0088cc;
    text-decoration: none;
}

.telegram-bubble strong, .telegram-bubble b {
    font-weight: 600;
}

.telegram-bubble .time {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}

/* 📧 EMAIL MOCKUP STYLES */
.email-mockup {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.email-header {
    background: #ffffff;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.email-header-item {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #666;
}

.email-header-item strong {
    color: #333;
    width: 60px;
    display: inline-block;
}

.email-body-container {
    background: #ffffff;
    padding: 30px;
    margin: 20px;
    border: 1px solid #eee;
    min-height: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Editor Textarea Styling */
.preview-editor-textarea {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    background-color: #fcfcfc;
    transition: border-color 0.2s;
}

.preview-editor-textarea:focus {
    outline: none;
    border-color: #004a99;
    box-shadow: 0 0 0 0.2rem rgba(0,74,153,0.1);
}

/* Badge per dati Notion protetti */
.notion-data-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #ced4da;
    font-size: 0.85em;
}
