/* Comments Styles */
.scdev-sb-v2-comments-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--scdev-border-light);
}

.scdev-sb-v2-comment-form {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.scdev-sb-v2-comment-form .scdev-sb-v2-avatar {
    width: 32px;
    height: 32px;
}

.scdev-sb-v2-comment-text {
    flex: 1;
    border: 1px solid var(--scdev-border, #cbd5e1);
    border-radius: 16px;
    padding: 8px 14px;
    font-size: 14px;
    resize: none;
    min-height: 36px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background: #ffffff;
    color: #1e293b;
}

.scdev-sb-v2-comment-text:focus {
    outline: none;
    border-color: #2563eb;
}

/* Dark mode for comment textarea and form */
body.dark-mode .scdev-sb-v2-comment-text,
body.night-mode .scdev-sb-v2-comment-text,
body.sheer-dark .scdev-sb-v2-comment-text,
body.sheer-dark-mode .scdev-sb-v2-comment-text,
body.wp-dark-mode-active .scdev-sb-v2-comment-text,
html.dark .scdev-sb-v2-comment-text,
[data-theme="dark"] .scdev-sb-v2-comment-text,
[data-color-scheme="dark"] .scdev-sb-v2-comment-text {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}

body.dark-mode .scdev-sb-v2-comment-text:focus,
body.night-mode .scdev-sb-v2-comment-text:focus,
body.sheer-dark .scdev-sb-v2-comment-text:focus,
body.sheer-dark-mode .scdev-sb-v2-comment-text:focus,
body.wp-dark-mode-active .scdev-sb-v2-comment-text:focus,
html.dark .scdev-sb-v2-comment-text:focus,
[data-theme="dark"] .scdev-sb-v2-comment-text:focus,
[data-color-scheme="dark"] .scdev-sb-v2-comment-text:focus {
    border-color: #3b82f6 !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

.scdev-sb-v2-comment {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-start !important;
}

.scdev-sb-v2-comment .scdev-sb-v2-avatar-wrap,
.scdev-sb-v2-comment-form .scdev-sb-v2-avatar-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
    line-height: 0 !important;
}

.scdev-sb-v2-comment .scdev-sb-v2-avatar,
.scdev-sb-v2-comment-form .scdev-sb-v2-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
}

.scdev-sb-v2-comment .scdev-sb-v2-avatar img,
.scdev-sb-v2-comment-form .scdev-sb-v2-avatar img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.scdev-sb-v2-avatar-wrap .scdev-online-bullet {
    position: absolute !important;
    bottom: 0px !important;
    right: 0px !important;
    width: 9px !important;
    height: 9px !important;
    border: 2px solid var(--scdev-card-bg, #1e1f2b) !important;
    border-radius: 50% !important;
    z-index: 10 !important;
    pointer-events: none !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) !important;
}

.scdev-sb-v2-comment-content {
    flex: 1;
  /*  background: var(--scdev-bg-secondary); */
    border-radius: 12px;
    padding: 8px 12px;
}

.scdev-sb-v2-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.scdev-sb-v2-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scdev-sb-v2-comment-content strong {
    font-size: 13px;
    color: var(--scdev-text-primary);
}

.scdev-sb-v2-comment-content p {
    margin: 0;
    font-size: 14px;
    color: var(--scdev-text-primary);
    line-height: 1.2 !important;
}

.scdev-sb-v2-comment-date {
    font-size: 12px;
    color: var(--scdev-text-muted);
}

.scdev-sb-v2-comment-actions {
    display: flex;
    gap: 8px;
}

.scdev-sb-v2-comment-edit,
.scdev-sb-v2-comment-delete {
    background: transparent !important;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px !important;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.scdev-sb-v2-comment-edit:hover,
.scdev-sb-v2-comment-delete:hover {
    opacity: 1;
}


/* Confirm Modal */
.scdev-sb-v2-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.scdev-sb-v2-confirm-modal.show {
    opacity: 1;
}

.scdev-sb-v2-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.scdev-sb-v2-confirm-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scdev-sb-v2-confirm-box h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #fff;
    line-height: 1.2 !important;
}

.scdev-sb-v2-confirm-box p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #ccc;
    line-height: 1.2 !important;
}

.scdev-sb-v2-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.scdev-sb-v2-confirm-cancel,
.scdev-sb-v2-confirm-delete {
    padding: 8px 20px !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.scdev-sb-v2-confirm-cancel {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.scdev-sb-v2-confirm-cancel:hover {
    background: #e0e0e0 !important;
}

.scdev-sb-v2-confirm-delete {
    background: #e74c3c !important;
    color: white !important;
}

.scdev-sb-v2-confirm-delete:hover {
    background: #c0392b !important;
}
