/* Carregamento da Fonte Pigpen (Robusto) */
@font-face {
    font-family: 'ScoutPigpen';
    /* Caminho relativo: sobe 2 niveis e entra em assets/fonts */
    src: url('../../assets/fonts/pigpen.woff2') format('woff2'),
         url('../../assets/fonts/pigpen.woff') format('woff'),
         url('../../assets/fonts/pigpen.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Layout Principal */
.sc-pigpen-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.sc-pigpen-wrapper.layout-block {
    flex-direction: column;
}

/* Boxes */
.sc-pigpen-wrapper .sc-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.sc-pigpen-wrapper .sc-toolbar {
    background: linear-gradient(135deg, rgb(35, 60, 43) 0%, rgb(82, 128, 95) 24%, rgb(35, 60, 43) 100%);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    gap: 10px;
}

.sc-pigpen-wrapper .sc-label {
    font-weight: bold;
    font-size: 13px;
    color: #FFF;
    text-transform: uppercase;
}

.sc-pigpen-wrapper .sc-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Botões */
.sc-pigpen-wrapper .sc-btn-action {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #FFF;
    padding: 5px 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px; 
    line-height: 1;
}

.sc-pigpen-wrapper .sc-btn-action:hover {
    background-color: #e0e0e0;
    color: #000;
    border-color: #ccc;
}

.sc-pigpen-wrapper .sc-btn-action i {
    font-size: 14px;
    pointer-events: none;
}

/* Textareas */
.sc-pigpen-wrapper .sc-textarea {
    width: 100%;
    min-height: 120px;
    border: none;
    padding: 15px;
    resize: vertical;
    font-size: 16px;
    background: #deefe4;
    color: #333;
    box-sizing: border-box;
    font-family: monospace;
}
.sc-pigpen-wrapper .sc-textarea:focus { outline: none; }

/* --- RESULTADO PIGPEN --- */
.sc-pigpen-wrapper .sc-font-pigpen {
    font-family: 'ScoutPigpen', sans-serif !important; /* Force override */
    text-align: center;
    font-size: 40px; 
    line-height: 1.4;
    letter-spacing: 2px;
}

.sc-pigpen-wrapper .sc-controls-area {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}