/* =========================================================
   Ni Online Support – Full Frontend Stylesheet
   ========================================================= */

/* ---------- RESET (SCOPED) ---------- */
.ni-os-wrap,
.ni-os-wrap * {
    box-sizing: border-box;
}

/* ---------- GLOBAL WRAPPER ---------- */
.ni-os-wrap {
    max-width: 900px;
    margin: 0px auto;
    padding: 0 15px;
    color: #1f2937;
}

/* =========================================================
   SUBMIT FORM
   ========================================================= */
#ni-os-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

#ni-os-form input,
#ni-os-form textarea,
#ni-os-form select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 15px;
}

input[type="checkbox"] {
    width: 15px !important;
    margin: 0 !important;
    height: 15px;
}

#ni-os-form textarea {
    min-height: 120px;
    resize: vertical;
}

#ni-os-form input:focus,
#ni-os-form textarea:focus,
#ni-os-form select:focus {
    border-color: #2563eb;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

#ni-os-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    color: #374151;
}

#ni-os-form button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    cursor: default;
}

#ni-os-msg {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   SUPPORT POST CARD
   ========================================================= */

.ni-os-form-wrapper {
    position: relative;
}

.ni-os-login-notice {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.90);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 1;
}

.ni-os-login-card {
    text-align: center;
    padding: 30px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ni-os-login-card i {
    font-size: 40px;
    color: #cacaca;
    margin-bottom: 15px;
}

.ni-os-login-card h3 {
    margin: 0;
}

.ni-os-login-card p {
    margin: 20px 0;
}

.ni-os-login-btn {
    padding: 8px 20px;
    border-radius: 8px;
    background: #cacaca;
    color: #374151!important;
    cursor: default;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s ease;
}

.ni-os-login-btn:hover {
    background: #bababa;
    color: #fff;
    text-decoration: none;
}


.ni-os-post {
    background: #ffffff;
    border-radius: 14px;
    padding: 15px 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

/* ---------- HEADER ---------- */
.ni-os-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-bottom: 10px;
}

.ni-os-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}

.ni-os-post-meta {
    flex: 1;
}

.ni-os-author {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.ni-os-date {
    font-size: 12px;
    color: #6b7280;
}

/* ---------- TOPIC ---------- */
.ni-os-topic {
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    padding: 4px 12px;
    height: 25px;
    display: flex;
    border-radius: 999px;
    font-weight: 500;
    justify-content: center;
    align-items: center;
}

/* ---------- TITLE + CONTENT ---------- */
.ni-os-title {
    font-size: 17px;
    font-weight: 500;
    margin: 10px 0 6px;
}

.ni-os-title a {
    color: #0073aa !important;
    cursor: default;
}

.ni-os-title a:hover {
    text-decoration: none;
}

.ni-os-content {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    background: #fafafa;
    padding: 10px 12px;
    border-radius: 12px;
}
.ni-os-content p {
    margin: 0px;
}

/* =========================================================
   COMMENTS HEADER
   ========================================================= */

.ni-os-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 18px 10px;
    border-bottom: 3px solid #f4f7fc;
    margin-bottom: 12px;
}

.ni-os-comments-count {
    font-size: 14px;
    color: #111827;
}


/* =========================================================
   COMMENTS WRAPPER
   ========================================================= */
.ni-os-comments-wrapper {
    margin: 10px -18px 0;
}

/* ---------- COMMENT LIST ---------- */
.ni-os-comments-list {
    padding: 0 18px 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ni-os-comments-list > .ni-os-comment-thread:not(:first-child) {
    border-top: 3px solid #f4f7fc;
    padding: 0 18px;
    margin: 0 -18px;
}

/* Each comment container */
.ni-os-comment {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    align-items: flex-start;
}

/* Avatar */
.ni-os-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

/* Comment bubble */
.ni-os-comment-body {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #edf1f5;
    display: flex;
    flex-direction: column;
}

/* Header */
.ni-os-comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ni-os-comment-body strong {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
}

.ni-os-comment-date {
    font-size: 11px;
    color: #9ca3af;
}

/* Content */
.ni-os-comment-content {
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
}

/* Edit button */
.ni-os-comment-edit-btn {
    font-size: 11px;
    color: #6366f1;
    background: transparent;
    border: none;
    cursor: default;
    padding: 3px 6px;
    border-radius: 5px;
    align-self: flex-end;
    transition: background 0.2s ease;
}

.ni-os-comment-edit-btn:hover {
    background: #eef2ff;
}

/* Inline edit textarea */
.ni-os-comment-edit-textarea {
    width: 100%;
    min-height: 60px;
    margin: 6px 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    resize: vertical;
}

/* Save / Cancel */
.ni-os-comment-save-btn,
.ni-os-comment-cancel-btn {
    font-size: 11px;
    padding: 5px 10px;
    margin-right: 4px;
    border-radius: 6px;
    border: none;
    cursor: default;
}

.ni-os-comment-save-btn {
    background: #10b981;
    color: #fff;
}

.ni-os-comment-save-btn:hover {
    background: #059669;
}

.ni-os-comment-cancel-btn {
    background: #f3f4f6;
    color: #374151;
}

.ni-os-comment-cancel-btn:hover {
    background: #e5e7eb;
}

/* ===== Empty Comments State ===== */

.ni-os-empty-comments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px dashed #e5e7eb;
    text-align: center;
    margin-top: 18px;
}

.ni-os-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5!important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.ni-os-empty-text {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.ni-os-empty-subtext {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* ===== Login Prompt ===== */

.ni-os-login-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    margin: 18px 18px 5px;
}

.ni-os-login-prompt.ni-os-empty-comments {
    margin: 18px 0 0!important;
}

.ni-os-login-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5!important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ni-os-login-text {
    display: flex;
    flex-direction: column;
}

.ni-os-login-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.ni-os-login-subtext {
    font-size: 13px;
    color: #6b7280;
}

.ni-os-login-subtext a {
    color: #4f46e5!important;
    text-decoration: none;
    font-weight: 500;
}

.ni-os-login-subtext a:hover {
    text-decoration: underline;
}


/* =========================================================
   COMMENT FORM
   ========================================================= */
form.ni-os-comment-form.comment {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px 18px 12px;
    border-bottom: 3px solid #f4f7fc;
}

.ni-os-comment-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

/* Textarea */
.ni-os-comment-form textarea {
    flex: 1;
    resize: none;
    overflow: hidden;
    min-height: 38px;
    max-height: 190px;
    padding: 9px 12px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.45;
    transition: all 0.15s ease;
    background: #fff;
}

.ni-os-comment-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* Submit Button */
.ni-os-comment-submit {
    height: 38px;
    width: 38px;
    border-radius: 20px;
    border: none;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: all 0.15s ease;
}

.ni-os-comment-submit:hover {
    background: #e2e8f0;
}

.ni-os-comment-submit i {
    font-size: 14px;
    color: #475569;
}

/* =========================================================
   REPLIES DISPLAY OUTSIDE PARENT COMMENT
   ========================================================= */

.ni-os-replies-list {
    position: relative;
    margin-left: 10px;
    padding-left: 0;
    border-left: 1px solid #ddd;
}

/* Each reply floats visually outside the parent */
.ni-os-comment.ni-os-reply {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-left: 10px;
}

/* Smaller avatar for replies */
.ni-os-comment.ni-os-reply .ni-os-avatar {
    width: 32px;
    height: 32px;
}

/* Reply bubble styling */
.ni-os-comment.ni-os-reply .ni-os-comment-body {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Header styling for replies */
.ni-os-comment.ni-os-reply .ni-os-comment-header strong {
    font-size: 12px;
    font-weight: 600;
}

.ni-os-comment.ni-os-reply .ni-os-comment-date {
    font-size: 10px;
    color: #9ca3af;
}

/* Mention styling */
.ni-os-comment-content .ni-os-mention {
    color: #4f46e5!important;
    font-weight: 500;
    margin-right: 4px;
}

/* Inline reply form */
.ni-os-reply-form {
    margin-top: 8px;
    margin-left: 50px;
}

.ni-os-reply-form textarea {
    min-height: 36px;
    font-size: 13px;
    border-radius: 16px;
    padding: 6px 10px;
}

.ni-os-reply-form button {
    height: 32px;
    width: 32px;
    border-radius: 16px;
    font-size: 12px;
}


.ni-os-comment-actions {
    margin-top: 6px;
    display: flex;
    gap: 10px;
}

.ni-os-comment-actions button, button.ni-os-comment-action, .ni-os-comment-actions a {
    color: #9b9b9b!important;
    cursor: default;
    font-size: 13px;
    padding: 4px 7px;
    border: none;
    border-radius: 100px;
    background: #eee;
}

.ni-os-comment-actions button:hover, button.ni-os-comment-action:hover, .ni-os-comment-actions a:hover {
    color: #797878;
    background: #dfdfdf;
    text-decoration: none;
}

/* Reply Icon */
.ni-os-comment-reply-btn::before {
    content: "\f112";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 4px;
    font-size: 10px;
}

/* Copy Icon */
.ni-os-comment-copy-btn::before {
    content: "\f0c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 4px;
    font-size: 10px;
}


/* =========================================================
   AVATAR SWITCHER
   ========================================================= */
.ni-os-avatar-switcher {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
}

.ni-os-avatar.img {
    width: 38px;
    height: 38px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.ni-os-avatar-switcher .ni-os-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay icon */
.ni-os-avatar-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #fff;
    color: #625c5c;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   TOOLTIP
   ========================================================= */
.ni-os-tooltip {
    position: absolute;
    top: -32px;
    left: 0;              /* ← anchor from left */
    right: auto;          /* ← remove right control */
    
    background: #111827;
    color: #fff;
    font-size: 12px;
    padding: 5px 9px;
    border-radius: 6px;

    white-space: nowrap;  /* keep content in one line */
    width: max-content;   /* width based on content */

    opacity: 0;
    pointer-events: none;

    transform: translateX(-6px);  /* subtle slide from left */
    transition: opacity 0.2s ease, transform 0.2s ease;

    z-index: 999;
}

.ni-os-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}



/* -----------------------------
   MODERN COMMENT FILTER UI
-------------------------------*/

.ni-os-comment-manage-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f8fffd;
    padding: 12px 15px;
    border-radius: 12px;
}

/* Filter rows */
.ni-os-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Inputs and selects */
.ni-os-filter-row input, .ni-os-filter-row select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
    width: calc(33% - 6px);
}
select#ni-os-filter-post, input#ni-os-search {
    width: 100%;
}
/* Input focus */
.ni-os-filter-row input:focus,
.ni-os-filter-row select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
    outline: none;
}

/* Search input with icon */
#ni-os-search {
    position: relative;
    padding: 12px 10px 12px 32px;
    border-radius: 8px;
}

#ni-os-search::placeholder {
    color: #9ca3af;
}

/* Optional: add a search icon inside input */
#ni-os-search {
    background-image: url('data:image/svg+xml,%3Csvg fill="none" stroke="%239ca3af" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" d="M21 21l-4.35-4.35m0 0A7.5 7.5 0 1110.5 3a7.5 7.5 0 016.15 13.65z"%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 16px;
}



/* =========================================================
   COMMENT MANAGEMENT (ADMIN) - 4 ROW LAYOUT
========================================================= */

.ni-os-comment-manage {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Comment Card */
.ni-os-comment-manage-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
}

/* ROW 1: Avatar + Name + Date + Status */
.ni-os-row-1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ni-os-row-1 .ni-os-avatar img.ni-os-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.ni-os-name-date-status {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ni-os-author {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.ni-os-approval-status {
    font-weight: 600;
    color: #22c55e; /* green for published */
}

.ni-os-visibility-status {
    font-weight: 500;
    color: #3b82f6; /* blue for public */
}

/* =========================================================
   FRONTEND POST MANAGEMENT (COMMENT-LIKE CARD)
   ========================================================= */
.ni-os-manage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 12px 16px;
    transition: box-shadow 0.2s, background 0.2s;
    margin-bottom: 10px;
}

.ni-os-manage-item:hover {
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    background: #fff;
}

/* ROW 1: Avatar + Name + Date + Status */
.ni-os-row-1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ni-os-row-1 .ni-os-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.ni-os-name-date-status {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.ni-os-author {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.ni-os-date-status-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ni-os-datetime {
    font-size: 11px;
    color: #6b7280;
}

.ni-os-statuses {
    font-size: 11px;
    color: #374151;
    margin-top: 2px;
    display: flex;
    gap: 6px;
}

.ni-os-post-status {
    color: #22c55e;
}

.ni-os-visibility-status {
    font-weight: 500;
    color: #3b82f6; /* blue for public */
}

/* ROW 2: Post Title */
.ni-os-row-2 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

/* ROW 3: Post Content */
.ni-os-row-3 {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    background: #f7f7f7;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* ROW 4: Action Buttons */
.ni-os-row-4 {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

button.ni-os-action {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: default;
    transition: transform 0.15s, opacity 0.15s, background 0.2s;
}

button.ni-os-action:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

button.ni-os-action[data-action="publish"] { background: #22c55e; color: #fff; }
button.ni-os-action[data-action="pending"] { background: #f59e0b; color: #fff; }
button.ni-os-action[data-action="delete"] { background: #ef4444; color: #fff; }
button.ni-os-action[data-action="trash"] { background: #9ca3af; color: #fff; }

/* Trash remaining days */
.ni-os-post-status .trash-days {
    font-weight: 600;
    color: #ef4444;
    margin-left: 4px;
}

/* =========================================================
   MANAGEMENT TABS (keep as-is)
========================================================= */
.ni-os-manage-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ni-os-manage-tab {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: #fff;
    text-decoration: none;
    cursor: default;
    border-bottom: 0px;
    position: relative;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    border: 1px solid #f0f0f0;
    border-bottom-width: 2px;
}

.ni-os-manage-tab.active, .ni-os-manage-tab:hover {
    color: #111827;
    background: #fff;
    border-bottom: 2px solid #3b82f6!important;
    border: 1px solid #f0f0f0;
}

.ni-os-no-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 20px 0;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    gap: 12px;
    transition: background 0.2s, box-shadow 0.2s;
}

.ni-os-no-posts-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: #9ca3af;
}

/* Loading overlay for tab content */
.ni-os-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    margin: 0 0 10px;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    gap: 12px;
    transition: background 0.2s, box-shadow 0.2s;
}

/* Spinner animation */
.spinner {
    border: 4px solid #f3f3f3; /* Light gray background */
    border-top: 4px solid #3b82f6; /* Blue spinner */
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optional: error message style */
.ni-os-error {
    display: flex;
    padding: 80px 20px;
    margin: 0 0 10px;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

button.ni-os-try-again {
    padding: 7px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    color: #555;
    background: #ececec;
    border: 1px solid #ccc;
    font-size: 14px;
}


/* Confirmation modal overlay */
.ni-os-confirm {
    display: none;               /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;     /* Horizontal center */
    align-items: center;         /* Vertical center */
    padding: 12px;
    box-sizing: border-box;
}

/* When modal is active, JS will add 'flex' display */
.ni-os-confirm.active {
    display: flex;
}

/* Modal box */
.ni-os-confirm-box {
    background: #fff;
    padding: 28px 24px;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;                 /* Full width up to max-width */
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.2s ease-out;
    position: relative;
}

/* Optional icon above the message */
.ni-os-confirm-icon {
    font-size: 36px;
    color: #f59e0b;
    margin-bottom: 16px;
}

/* Modal message */
.ni-os-confirm-message {
    font-size: 15px;
    color: #111827;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Action buttons container */
.ni-os-confirm-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Buttons common styles */
.ni-os-confirm-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: default;
    transition: all 0.2s;
}

/* OK / Confirm button */
.ni-os-confirm-ok {
    background: #22c55e;
    color: #fff;
}

.ni-os-confirm-ok:hover {
    opacity: 0.9;
}

/* Cancel button */
.ni-os-confirm-cancel {
    background: #e5e7eb;
    color: #111827;
}

.ni-os-confirm-cancel:hover {
    background: #d1d5db;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive: smaller modal on tiny screens */
@media (max-width: 480px) {
    .ni-os-confirm-box {
        padding: 20px 16px;
    }
    .ni-os-confirm-message {
        font-size: 14px;
    }
    .ni-os-confirm-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }
}

/* ----------------------------
   POST SUBMISSION MESSAGE
---------------------------- */
#ni-os-msg {
    display: none;
    margin: 20px 0;
    padding: 12px 16px;
    background: #d4edda;
    color: #555;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 300;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Error state */
#ni-os-msg.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Smooth fade-in */
#ni-os-msg.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#ni-os-msg.hide {
    opacity: 0;
    transform: translateY(-5px);
    display: none;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {

    .ni-os-post-header {
        align-items: flex-start;
    }

    .ni-os-topic {
        top: 0;
        right: 0;
    }

    .ni-os-manage {
        flex-direction: column;
        align-items: flex-start;
    }

    .ni-os-manage-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .ni-os-app {
        margin: 0 auto 0 !important;
        padding: 20px 15px !important;
    }
}

/* =========================================================
   INLINE EDIT POST STYLES
   ========================================================= */

/* Textarea for inline post editing */
.ni-os-post-edit-textarea {
    width: 100%;
    min-height: 100px;
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    line-height: 1.5;
    color: #111827;
    resize: vertical;
    background: #f9fafb;
}

.ni-os-post-edit-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Save / Cancel buttons */
.ni-os-post-save-btn,
.ni-os-post-cancel-btn {
    font-size: 13px;
    padding: 8px 16px;
    margin-right: 6px;
    border: none;
    border-radius: 999px;
    cursor: default;
    font-weight: 600;
    transition: all 0.2s;
}

.ni-os-post-save-btn {
    background: #22c55e;
    color: #fff;
}

.ni-os-post-save-btn:hover {
    background: #16a34a;
}

.ni-os-post-cancel-btn {
    background: #f3f4f6;
    color: #374151;
}

.ni-os-post-cancel-btn:hover {
    background: #e5e7eb;
}

/* Inline edit container spacing */
.ni-os-content .ni-os-post-edit-textarea,
.ni-os-content .ni-os-post-save-btn,
.ni-os-content .ni-os-post-cancel-btn {
    display: inline;
}

/* Ensure buttons align nicely */
.ni-os-content .ni-os-post-save-btn,
.ni-os-content .ni-os-post-cancel-btn {
    margin: 0 0 10px;
}


/* ---------- MORE MENU ---------- */
.ni-os-more-wrapper {
    top: 12px;
    right: 12px;
}

.ni-os-more-btn {
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: default;
    color: #6b7280;
    background: #eef2ff;
    padding: 0;
    width: 25px;
    height:25px;
    border-radius: 50px;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ni-os-more-btn:hover {
    background: #f3f4f6;
}

.ni-os-more-tooltip {
    display: none;
    position: absolute;
    top: 28px;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    min-width: 120px;
}

.ni-os-more-tooltip ul {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.ni-os-more-tooltip li {
    margin: 0;
}

.ni-os-more-tooltip button {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 13px;
    cursor: default;
    color: #374151;
    transition: background 0.2s;
}

.ni-os-more-tooltip button:hover {
    background: #f3f4f6;
}

/* Show tooltip when active */
.ni-os-more-wrapper.active .ni-os-more-tooltip {
    display: block;
}

