#nizusocial_dashboard .nizusocial_welcome {
    padding: 2rem 0;
}

#nizusocial_dashboard .nizusocial_welcome h4 {
    margin-bottom: 1rem;
}


/* the New post composer has its own sheet: nizusocial-compose-ios26.css */

.nizusocial-platform-card {
    transition: box-shadow 0.2s ease;
    min-height: 80px;
}

.nizusocial-platform-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nizusocial-cal-event {
    padding: 4px 6px;
    line-height: 1.3;
    cursor: pointer;
}

.nizusocial-cal-event-title {
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nizusocial-cal-event--month .nizusocial-cal-event-title {
    font-size: 11px;
    margin-bottom: 2px;
}

.nizusocial-cal-event--week .nizusocial-cal-event-title {
    font-size: 10px;
    margin-bottom: 1px;
}

.nizusocial-cal-event--day .nizusocial-cal-event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.nizusocial-cal-accounts {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.nizusocial-cal-account {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
}

.nizusocial-cal-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
}

.nizusocial-cal-account--icon {
    color: #fff;
}

.nizusocial-cal-platform-icon {
    width: 12px !important;
    height: 12px !important;
}

.nizusocial-cal-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px !important;
    height: 10px !important;
    background: #fff;
    border-radius: 50%;
}

.nizusocial-cal-account-more {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    padding-left: 2px;
}

.nizusocial-cal-files {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 1px 7px;
    flex-shrink: 0;
}

.nizusocial-cal-detail {
    min-width: 240px;
    font-size: 13px;
}

.nizusocial-cal-detail-body p {
    margin: 0 0 8px;
    color: #334155;
    word-break: break-word;
}

.nizusocial-cal-detail-files {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.nizusocial-cal-detail-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

.nizusocial-cal-detail-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.nizusocial-cal-detail-accounts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nizusocial-cal-detail-account {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nizusocial-cal-detail-platform-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nizusocial-cal-detail-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nizusocial-cal-detail-account-name {
    font-size: 13px;
    color: #334155;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nizusocial-cal-status-badge {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.nizusocial-cal-status-badge--published {
    background: #dcfce7;
    color: #166534;
}

.nizusocial-cal-status-badge--failed {
    background: #fee2e2;
    color: #991b1b;
}

.nizusocial-cal-status-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.nizusocial-cal-event--allday {
    padding: 3px 8px;
    background: #f8fafc;
    border-radius: 4px;
}

.nizusocial-post-content-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
}

.nizusocial-post-text {
    font-size: 15px;
    line-height: 1.6;
    color: #1e293b;
    margin: 0;
    white-space: pre-wrap;
}

.nizusocial-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.nizusocial-post-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.nizusocial-post-media-item {
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 16 / 10;
}

.nizusocial-post-media-item img,
.nizusocial-post-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nizusocial-post-accounts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nizusocial-post-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.nizusocial-post-account-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nizusocial-post-account-platform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nizusocial-post-account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.nizusocial-post-account-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nizusocial-post-account-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nizusocial-post-account-handle {
    font-size: 12px;
    color: #94a3b8;
}

.nizusocial-post-account-right {
    flex-shrink: 0;
}

.nizusocial-post-account-error {
    margin: -2px 0 2px 0;
    padding: 8px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    color: #991b1b;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    word-break: break-word;
}

.nizusocial-post-account-error + .nizusocial-post-account-row {
    margin-top: 2px;
}

.nizusocial-cal-event-time {
    font-size: 10px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

.nizusocial-cal-detail-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #334155;
}

.nizusocial-cal-status-badge--scheduled {
    background: #dbeafe;
    color: #1e40af;
}
/* ── Calendar in dark mode ──
   bs-calendar paints itself with Bootstrap 5.3 colour-mode utilities
   (bg-body, bg-body-tertiary, bg-body-secondary, text-body, text-body-secondary,
   border-*, .table) which all resolve through the --bs-* tokens. The dark theme
   (assets/css/color/1E202D.css) only redefines --bs-body-color, so the whole
   grid stayed a white island. Re-point the tokens inside the calendar only. */
body.color-1E202D .nizusocial_posts_container {
    --bs-body-bg: #252932;
    --bs-body-bg-rgb: 37, 41, 50;
    --bs-secondary-bg: #2a2f3a;
    --bs-secondary-bg-rgb: 42, 47, 58;
    --bs-tertiary-bg: #1e2129;
    --bs-tertiary-bg-rgb: 30, 33, 41;
    --bs-body-color: #c3c8da;
    --bs-body-color-rgb: 195, 200, 218;
    --bs-secondary-color: #898fa9;
    --bs-secondary-color-rgb: 137, 143, 169;
    --bs-tertiary-color: #6b7189;
    --bs-tertiary-color-rgb: 107, 113, 137;
    --bs-emphasis-color: #e6e9f2;
    --bs-emphasis-color-rgb: 230, 233, 242;
    --bs-border-color: #2f3541;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.08);
    --bs-heading-color: #c3c8da;
    --bs-link-color: #5b73e8;
    --bs-link-color-rgb: 91, 115, 232;
    --bs-link-hover-color: #2850f0;
    --bs-link-hover-color-rgb: 40, 80, 240;
    color: var(--bs-body-color);
}

body.color-1E202D .nizusocial_posts_container .table {
    --bs-table-bg: var(--bs-body-bg);
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-striped-bg: var(--bs-secondary-bg);
    --bs-table-hover-bg: var(--bs-secondary-bg);
    --bs-table-hover-color: var(--bs-body-color);
}

/* the theme paints .text-muted and .shadow-sm for a white page */
body.color-1E202D .nizusocial_posts_container .text-muted {
    color: var(--bs-secondary-color) !important;
}
body.color-1E202D .nizusocial_posts_container .shadow-sm,
body.color-1E202D .nizusocial_posts_container .shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}

body.color-1E202D .nizusocial_posts_container .form-control {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color) !important;
}
body.color-1E202D .nizusocial_posts_container .form-control::placeholder {
    color: var(--bs-tertiary-color);
}

body.color-1E202D .nizusocial_posts_container .dropdown-menu {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-border-color);
}
body.color-1E202D .nizusocial_posts_container .dropdown-item {
    color: var(--bs-body-color);
}
body.color-1E202D .nizusocial_posts_container .dropdown-item:hover,
body.color-1E202D .nizusocial_posts_container .dropdown-item:focus {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-emphasis-color);
}

/* the plugin's own event/detail markup hard-codes slate-on-white */
body.color-1E202D .nizusocial-cal-event-time {
    color: #a5b4fc;
    background: rgba(99, 102, 241, .22);
}

body.color-1E202D .nizusocial-cal-status-badge--published { background: rgba(34, 197, 94, .22); color: #86efac; }
body.color-1E202D .nizusocial-cal-status-badge--failed    { background: rgba(239, 68, 68, .22); color: #fca5a5; }
body.color-1E202D .nizusocial-cal-status-badge--pending   { background: rgba(245, 158, 11, .22); color: #fcd34d; }
body.color-1E202D .nizusocial-cal-status-badge--scheduled { background: rgba(59, 130, 246, .22); color: #93c5fd; }

body.color-1E202D .nizusocial-cal-event-title {
    color: var(--bs-emphasis-color);
}
body.color-1E202D .nizusocial-cal-detail-body p {
    color: var(--bs-body-color);
}
body.color-1E202D .nizusocial-cal-detail-files,
body.color-1E202D .nizusocial-cal-detail-label {
    color: var(--bs-secondary-color);
}
body.color-1E202D .nizusocial-cal-detail-section {
    border-top-color: var(--bs-border-color);
}
body.color-1E202D .nizusocial-cal-detail-account-name {
    color: var(--bs-body-color);
}
