.social-admin-page {
    color: var(--nb-text, #283046);
}

.social-admin-nav,
.social-page-header,
.social-panel-header,
.social-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.social-admin-nav {
    justify-content: flex-start;
}

.social-panel,
.social-metric,
.social-platform-card,
.social-preview-panel {
    background: #ffffff;
    border: 1px solid var(--nb-border, #e6eaf5);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.06);
}

.social-panel,
.social-platform-card,
.social-preview-panel {
    padding: 1rem;
}

.social-metric {
    min-height: 7rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.social-metric span {
    color: var(--nb-muted, #6b7280);
    font-size: 0.95rem;
}

.social-metric strong {
    font-size: 2rem;
    line-height: 1;
}

.social-form .form-control,
.social-form .form-select {
    min-height: 2.75rem;
}

.social-form textarea.form-control {
    min-height: auto;
}

.social-platform-badge {
    min-width: 5.5rem;
}

.social-caption-area {
    min-height: 11rem;
}

.social-code-area {
    min-height: 12rem;
}

.social-preview-tabs .nav-link {
    white-space: nowrap;
}

.social-preview-image {
    display: grid;
    place-items: center;
    min-height: 18rem;
    border: 1px dashed var(--nb-border, #cfd7ea);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--nb-muted, #6b7280);
}

.social-table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.social-muted-url {
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.5rem;
}

.social-status-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    margin-inline-end: 0.35rem;
}

.social-status-dot.is-ok {
    background: #198754;
}

.social-status-dot.is-warn {
    background: #ffc107;
}

.social-status-dot.is-bad {
    background: #dc3545;
}

@media (max-width: 768px) {
    .social-page-header,
    .social-panel-header,
    .social-form-actions {
        align-items: stretch;
    }

    .social-page-header > *,
    .social-form-actions > * {
        width: 100%;
    }
}
