/* Estilos específicos para o plugin ContentMarketing */

/* Ícones mais delicados */
.icon-14, .icon-12, .icon-16, .icon-18 {
    stroke-width: 1.5px !important; /* Traço mais fino para visual premium */
}

.icon-12 {
    width: 12px;
    height: 12px;
}

/* Botões de cópia compactos e discretos */
.btn-copy-compact {
    padding: 2px 6px !important;
    font-size: 11px;
    border-color: #f1f1f5 !important;
    background: #fff !important;
    color: #98a6ad !important;
    transition: all 0.2s ease;
}

.btn-copy-compact:hover {
    background: #f8f9fa !important;
    color: #6690F4 !important;
    border-color: #6690F4 !important;
}

.btn-copy-compact svg {
    margin: 0 !important;
}

/* Ajustes no Card do Dashboard */
.card-publications-daily {
    border-radius: 8px !important;
    overflow: hidden;
}

.card-publications-daily .card-header {
    padding: 10px 15px !important;
}

.card-publications-daily .publication-item {
    transition: background 0.2s;
}

.card-publications-daily .publication-item:hover {
    background: #fcfcfd;
}

/* Badge mais delicado */
.badge-delicate {
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Dashboard diário ─────────────────────────────────── */
.pub-done {
    opacity: 0.65;
}

.pub-done strong,
.pub-done span,
.pub-done p {
    text-decoration: line-through;
}

.pub-done .btn-check-status {
    animation: none;
}

.btn-check-status {
    transition: all .2s ease;
}

.card-all-done {
    border-color: #28a745 !important;
}

.card-all-done .card-header {
    background-color: #28a745 !important;
}

/* Ajustes para botões de ação em tabelas */
.option .d-flex a, 
.option .d-flex button,
.option a.edit,
.option a.delete,
.option a.duplicate-post {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    flex: 0 0 28px !important;
    padding: 0 !important;
    margin: 0 2px !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

/* Estado padrão: todos os botões iguais ao delete (círculo outline cinza) */
.option .edit, .option a.edit,
.option .delete, .option .duplicate-post, .option a.delete, .option a.duplicate-post {
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #6B7280 !important;
}

/* Hover padrão para edit (verde Rise CRM) */
.option .edit:hover, .option a.edit:hover {
    background: #0abb87 !important;
    border-color: #0abb87 !important;
    color: #fff !important;
}

/* Hover personalizado por função */
.option a.mkt-btn-yellow:hover {
    background: #f39c12 !important;
    border-color: #f39c12 !important;
    color: #fff !important;
}
.option a.mkt-btn-purple:hover {
    background: #8e44ad !important;
    border-color: #8e44ad !important;
    color: #fff !important;
}
.option a.mkt-btn-green:hover {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}

/* Hover do delete: vermelho */
.option .delete:hover, .option a.delete:hover {
    background: #FEF2F2 !important;
    border-color: #F87171 !important;
    color: #EF4444 !important;
}

.option i, .option svg {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* Botões de cópia na coluna de conteúdo - Quadrados perfeitos */
.copy-content {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    flex: 0 0 26px !important;
    padding: 0 !important;
    margin: 0 2px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

/* ─── Modal Publicar Instagram (layout referência UI) ───────────────────── */
.mkt-ig-publish-modal .ig-modal-header-banner {
    background: linear-gradient(105deg, #e11d48 0%, #f43f5e 35%, #fb923c 100%);
    color: #fff;
    padding: 16px 20px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mkt-ig-publish-modal .ig-modal-header-banner .ig-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.85);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.mkt-ig-publish-modal .ig-modal-header-banner .ig-token-exp {
    font-size: 11px;
    opacity: 0.92;
    text-align: right;
    line-height: 1.35;
    white-space: nowrap;
}

.mkt-ig-publish-modal .ig-modal-columns {
    display: flex;
    align-items: stretch;
    min-height: 0;
    background: #fff;
}

.mkt-ig-publish-modal .ig-modal-col-left {
    flex: 1 1 0;
    min-width: 0;
    padding: 20px 22px;
}

.mkt-ig-publish-modal .ig-modal-col-divider {
    width: 1px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.mkt-ig-publish-modal .ig-modal-col-right {
    flex: 0 0 300px;
    width: 300px;
    padding: 20px 18px;
    background: #fafafa;
}

.mkt-ig-publish-modal .ig-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 10px;
}

.mkt-ig-publish-modal .ig-segmented {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.mkt-ig-publish-modal .ig-segmented .ig-seg-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.mkt-ig-publish-modal .ig-segmented .ig-seg-btn + .ig-seg-btn {
    border-left: 1px solid #e5e7eb;
}

.mkt-ig-publish-modal .ig-segmented .ig-seg-btn.active {
    background: #fff;
    color: #e11d48;
    box-shadow: inset 0 0 0 2px #e11d48;
    z-index: 1;
}

.mkt-ig-publish-modal .ig-img-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mkt-ig-publish-modal .ig-img-card-v2 {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #e5e7eb;
    transition: border-color 0.15s, box-shadow 0.15s;
    aspect-ratio: 1;
}

.mkt-ig-publish-modal .ig-img-card-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mkt-ig-publish-modal .ig-img-card-v2.selected-feed {
    border-color: #e11d48;
    box-shadow: 0 0 0 1px #e11d48;
}

.mkt-ig-publish-modal .ig-img-card-v2.selected-story {
    border-color: #a855f7;
    box-shadow: 0 0 0 1px #a855f7;
}

.mkt-ig-publish-modal .ig-img-card-v2.selected-feed.selected-story {
    border-color: #c026d3;
    box-shadow: 0 0 0 2px #e11d48, 0 0 0 4px #a855f7;
}

.mkt-ig-publish-modal .ig-img-card-v2 .ig-dim-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.mkt-ig-publish-modal .ig-img-card-v2 .ig-ratio-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #e11d48;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.mkt-ig-publish-modal .ig-img-card-v2 .ig-role-corner {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
}

.mkt-ig-publish-modal .ig-wpp-box {
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
}

.mkt-ig-publish-modal .btn-ig-primary-solid {
    background: #e11d48;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, opacity 0.15s;
}

.mkt-ig-publish-modal .btn-ig-primary-solid:hover {
    background: #be123c;
    color: #fff !important;
}

.mkt-ig-publish-modal .btn-ig-primary-solid:disabled {
    opacity: 0.55;
}

.mkt-ig-publish-modal .btn-ig-outline-schedule {
    background: #fff;
    color: #e11d48 !important;
    border: 2px solid #e11d48;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, color 0.15s;
}

.mkt-ig-publish-modal .btn-ig-outline-schedule:hover {
    background: #fff1f2;
    color: #be123c !important;
}

.mkt-ig-publish-modal .ig-phone-preview {
    max-width: 280px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid #dbdbdb;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
}

.mkt-ig-publish-modal .ig-phone-preview .ig-ph-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #efefef;
}

.mkt-ig-publish-modal .ig-phone-preview .ig-ph-actions {
    padding: 10px 12px 4px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    color: #262626;
}

.mkt-ig-publish-modal .ig-phone-preview .ig-ph-caption {
    padding: 0 12px 14px;
    line-height: 1.45;
    color: #262626;
    word-break: break-word;
}

@media (max-width: 900px) {
    .mkt-ig-publish-modal .ig-modal-columns {
        flex-direction: column;
    }
    .mkt-ig-publish-modal .ig-modal-col-divider {
        display: none;
    }
    .mkt-ig-publish-modal .ig-modal-col-right {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        border-top: 1px solid #e5e7eb;
    }
}

/* ── Página pública de aprovação ─────────────────────────────────────────── */
.mkt-approval-page {
    margin: 0;
    min-height: 100vh;
    background: #0f0f0f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #262626;
}

.mkt-approval-shell {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px 16px 100px;
}

.mkt-approval-top {
    color: #fff;
    margin-bottom: 16px;
}

.mkt-approval-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mkt-approval-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.2);
}

.mkt-approval-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
    font-weight: 700;
}

.mkt-approval-user {
    font-weight: 600;
    font-size: 15px;
}

.mkt-approval-meta {
    font-size: 12px;
    opacity: .75;
}

.mkt-approval-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.mkt-approval-date {
    font-size: 12px;
    opacity: .8;
}

.mkt-approval-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mkt-approval-tab {
    flex: 1;
    min-width: 70px;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
}

.mkt-approval-tab.active {
    background: #fff;
    color: #262626;
}

.mkt-approval-preview-panel {
    display: none;
}

.mkt-approval-preview-panel.active {
    display: block;
}

.mkt-ig-mock {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

.mkt-ig-mock-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #efefef;
    font-size: 13px;
    font-weight: 600;
}

.mkt-ig-mock-head img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.mkt-ig-mock-media {
    background: #000;
    position: relative;
    overflow: hidden;
}

.mkt-ig-mock-media.ratio-feed {
    aspect-ratio: 4 / 5;
}

.mkt-ig-mock-media.ratio-story {
    aspect-ratio: 9 / 16;
    max-height: 70vh;
    margin: 0 auto;
}

.mkt-ig-mock-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mkt-ig-mock-actions {
    padding: 10px 14px;
    font-size: 16px;
    display: flex;
    gap: 14px;
}

.mkt-ig-mock-caption {
    padding: 4px 14px 14px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.mkt-story-bar {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(255,255,255,.3);
    border-radius: 2px;
}

.mkt-story-bar span {
    display: block;
    width: 35%;
    height: 100%;
    background: #fff;
    border-radius: 2px;
}

.mkt-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.mkt-carousel-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
}

.mkt-carousel-dots span.active {
    background: #fff;
}

.mkt-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px;
    font-size: 12px;
}

.mkt-approval-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    z-index: 100;
}

.mkt-approval-btns {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.mkt-approval-feedback {
    max-width: 420px;
    margin: 0 auto 10px;
}

.mkt-approval-feedback label {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.mkt-approval-foot {
    max-width: 420px;
    margin: 8px auto 0;
}

.mkt-approval-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}

.mkt-approval-done-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.mkt-approval-done-icon.ok {
    background: #d4edda;
    color: #155724;
}

.mkt-approval-done-icon.no {
    background: #f8d7da;
    color: #721c24;
}

.mkt-approval-done h2,
.mkt-approval-thanks h2 {
    font-size: 18px;
    text-align: center;
    margin: 0 0 8px;
}

.mkt-approval-badge {
    font-size: 10px !important;
    vertical-align: middle;
}
