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

.sc-morse-x-text-wrapper.layout-block {
    flex-direction: column;
}

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

.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;
    /* Permite quebrar linha em telas muito pequenas, se necessário */
    flex-wrap: wrap; 
    gap: 10px;
}

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

.sc-actions {
    display: flex;
    gap: 10px; /* Espaço entre botões */
    align-items: center;
}

/* --- BOTÕES DA TOOLBAR (NOVO DESIGN) --- */
.sc-btn-action {
    background: transparent;
    border: 1px solid transparent; /* Reserva espaço para borda hover */
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px; /* Tamanho do Texto */
    font-weight: 600;
    color: #FFF;
    padding: 5px 10px;
    transition: all 0.2s ease;
    
    /* Flexbox para alinhar Ícone + Texto */
    display: inline-flex;
    align-items: center;
    gap: 6px; 
    line-height: 1;
}

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

/* Ícone dentro do botão */
.sc-btn-action i {
    font-size: 14px; /* Ícone levemente maior que o texto */
    pointer-events: none;
}

.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-textarea:focus { outline: none; }
.sc-js-output {
    font-family: 'Shine Bubble', 'Courier New', monospace;
    text-align: center;
    font-size: 26px;
    line-height: 1.5;
}

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

/* Mídia */
.sc-media-controls-wrapper {
    width: 100%;
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.sc-media-box {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.sc-media-header {
    background: linear-gradient(135deg, rgb(35, 60, 43) 0%, rgb(82, 128, 95) 24%, rgb(35, 60, 43) 100%);
    padding: 10px 15px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #eee;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sc-media-body {
    background: #deefe4;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.sc-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.sc-play-btn:hover { background: #555; }
.sc-play-btn.playing { background: #d9534f; }
.sc-sliders-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sc-slider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}
.sc-slider { width: 60%; cursor: pointer; }
.sc-msg-mobile-only { font-size: 10px; color: #999; font-style: italic; margin-top: 5px; }