/**
 * Questionnaire Control - Complete CSS
 * All styles for questionnaire builder and response forms
 * Supports multiple independent controls on same page
 * Rating stars guaranteed visible and working
 * 
 * Version: 2.0 Final
 */

/* ============================================
   GENERAL STYLES
   ============================================ */

.questionnaire-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e5e7ff;
    margin-bottom: 20px;
    box-sizing: border-box;
    max-width: 100%;
}

.questionnaire-label {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* ============================================
   PAGE FORMAT SELECTOR - COMPACT VERSION
   ============================================ */

.page-format-section {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e5e7ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.page-format-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    white-space: nowrap;
}

.page-format-label i {
    font-size: 18px;
    color: #667eea;
}

.page-format-toggle {
    display: flex;
    gap: 8px;
    background: #f0f2ff;
    padding: 4px;
    border-radius: 10px;
}

.format-option {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.format-option:hover {
    background: rgba(102, 126, 234, 0.1);
}

.format-option.active {
    background-image: linear-gradient(to right, #25aae1, #4481eb, #04befe, #3f86ed);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* ============================================
   QUESTIONNAIRE HEADER
   ============================================ */

.questionnaire-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.question-count {
    color: black;
    font-size: 15px;
    font-weight: 600;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* ============================================
   RESPONSE CONTAINER
   ============================================ */

.response-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #e5e7ff;
}

.response-container h3 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* ============================================
   PROGRESS SECTION
   ============================================ */

.progress-section {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.progress-bar-container {
    background: #e5e7ff;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.progress-text {
    text-align: center;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
}

.step-indicator {
    text-align: center;
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
}

/* ============================================
   RESPONSE QUESTION
   ============================================ */

.response-question {
    background: white;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 20px;
    border: 2px solid #e5e7ff;
    transition: all 0.3s ease;
}

.response-question:hover {
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.12);
}

.response-question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.response-question-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
}

.badge-required {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.response-question-text {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.6;
}

.response-input-area {
    margin-top: 15px;
}

/* ============================================
   TEXT INPUTS
   ============================================ */

.response-input-area input[type="text"],
.response-input-area input[type="number"],
.response-input-area input[type="email"],
.response-input-area input[type="date"],
.response-input-area textarea,
.response-input-area select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7ff;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
}

.response-input-area input:focus,
.response-input-area textarea:focus,
.response-input-area select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.response-input-area textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   RATING STARS - CRITICAL STYLES
   GUARANTEED VISIBLE AND WORKING
   ============================================ */

.rating-container {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    background: #f8f9ff;
    border-radius: 15px;
    margin: 10px 0;
}

.star-wrapper {
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    display: inline-block !important;
}

.star-wrapper:hover {
    transform: scale(1.2);
}

.star-wrapper i.fa-star {
    font-size: 50px !important;
    color: #d0d4e4 !important;
    transition: all 0.3s ease;
    display: block !important;
    line-height: 1 !important;
}

.star-wrapper:hover i.fa-star {
    color: #ffc107 !important;
}

.star-wrapper.selected i.fa-star {
    color: #ffc107 !important;
}

/* Alternative class name support (for backward compatibility) */
.rating-stars-container {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 30px 0;
    background: #f8f9ff;
    border-radius: 15px;
    margin: 10px 0;
}

.rating-star {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    display: inline-block !important;
}

.rating-star i {
    font-size: 48px !important;
    color: #e5e7ff !important;
    transition: all 0.3s ease;
    display: block !important;
    line-height: 1 !important;
}

.rating-star:hover i {
    color: #ffc107 !important;
    transform: scale(1.2);
}

.rating-star.active i {
    color: #ffc107 !important;
    transform: scale(1.1);
}

/* ============================================
   RADIO OPTIONS
   ============================================ */

.radio-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border: 2px solid #e5e7ff;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.radio-option input[type="radio"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-option label {
    flex: 1;
    cursor: pointer;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   CHECKBOX OPTIONS
   ============================================ */

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border: 2px solid #e5e7ff;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.checkbox-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-option label {
    flex: 1;
    cursor: pointer;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   VALIDATION STATES
   ============================================ */

.response-input-area input.error,
.response-input-area textarea.error,
.response-input-area select.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.response-input-area input.success,
.response-input-area textarea.success,
.response-input-area select.success {
    border-color: #00c9a7;
    box-shadow: 0 0 0 4px rgba(0, 201, 167, 0.1);
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* ============================================
   PAGINATION CONTROLS (Step-by-Step)
   ============================================ */

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7ff;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================
   HIDDEN QUESTIONS (for step-by-step)
   ============================================ */

.question-hidden {
    display: none !important;
}

/* ============================================
   ALERTS
   ============================================ */


.alert-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.alert-info {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    color: #1565c0;
}

.alert-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.alert-error {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {

    .create-page-withnotify .notify-controls-placement {
        display: flex !important;
        padding-bottom: 10px !important;
        padding-left: 0px !important;
    }
    .questionnaire-container,
    .response-container {
        padding: 25px 20px;
    }

    .response-question {
        padding: 20px;
    }

    .response-question-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-container {
        gap: 15px;
        padding: 20px 10px;
    }

    .star-wrapper i.fa-star {
        font-size: 40px !important;
    }

    .rating-stars-container {
        gap: 10px;
        padding: 20px 0;
    }

    .rating-star i {
        font-size: 36px !important;
    }

    .pagination-controls {
        flex-direction: column;
    }

    .page-format-section {
        flex-direction: column;
        align-items: stretch;
    }

    .page-format-toggle {
        width: 100%;
    }

    .format-option {
        flex: 1;
        text-align: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .response-container {
        background: white;
        border: 1px solid #ddd;
    }

    .pagination-controls,
    .progress-section {
        display: none;
    }

    .question-hidden {
        display: block !important;
    }

    .response-question {
        page-break-inside: avoid;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.response-question {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ============================================
   QUESTIONNAIRE BUILDER STYLES
   ============================================ */

.question-builder-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 2px solid #e5e7ff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.question-builder-item:hover {
    border-color: #25aae1;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.12);
}

.question-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 20px; */
    padding-bottom: 15px;
    /* border-bottom: 2px solid #e5e7ff; */
}

.question-setup-container {
    border-top: 2px solid #e5e7ff;
}

.question-number {
    background: #3f86ed;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    width: 5%;
}

.question-collapsed-display {
    display: none;
    width: 85%;
    padding-left: 5px;
    font-size: 20px;
    font-weight: 600;
}

.question-collapsed-display.active {
    display: inline-flex;
}

.question-controls {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px 12px;
    border: none;
    background: #f0f2ff;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-icon.btn-danger {
    background: #ffebee;
    color: #f44336;
}

.btn-icon.btn-danger:hover {
    background: #f44336;
    color: white;
}

.btn-icon.expand-btn {
    border-radius: 50%;
    padding: 9px 12px;
    border: 0.5px solid #93929261;
}

.btn-icon.expand-btn:hover {
    background: #93929261;
    border-color: white;
}

.btn-icon.expand-btn i {
    font-size: 16px;
    color: #626262;
    display: none;
}

.btn-icon.expand-btn i.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 14px;
}

/* .form-control {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7ff;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
} */

.options-list {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e7ff;
    gap: 10px;
}

.option-item span {
    flex: 1;
    font-size: 14px;
    color: #1a1a1a;
}

.option-item:last-child {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #1a1a1a;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2e90e4;
}

/* Mobile responsive for builder */
@media (max-width: 768px) {
    .question-builder-header {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 15px;
    }

    .question-controls {
        width: 100%;
        justify-content: flex-end;
        align-self: anchor-center;
    }
}

.weight-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.weight-tile {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2ff;
    border: 2px solid #909096;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #514f4f;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.weight-tile:hover {
    background: #e5e7ff;
    border-color: black;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
}

.weight-tile.active {
    background: #e5e7ff;
    border-color: black;
    color: black;
    transform: scale(1.1);
    /* box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); */
}

/* ============================================
   MODAL & SMALL CONTAINER SUPPORT
   ============================================ */

/* For use inside modals or small containers */
.modal-body .questionnaire-container,
.small-container .questionnaire-container,
.compact-mode .questionnaire-container {
    padding: 15px;
    margin-bottom: 0;
}

.modal-body .question-builder-item,
.small-container .question-builder-item,
.compact-mode .question-builder-item {
    padding: 15px;
    margin-bottom: 12px;
}

.modal-body .page-format-section,
.small-container .page-format-section,
.compact-mode .page-format-section {
    padding: 10px 15px;
    margin-bottom: 15px;
}

.modal-body .format-option,
.small-container .format-option,
.compact-mode .format-option {
    padding: 6px 12px;
    font-size: 12px;
}

.modal-body .form-control,
.small-container .form-control,
.compact-mode .form-control {
    padding: 10px 12px;
    font-size: 14px;
}

.modal-body .questionnaire-label,
.small-container .questionnaire-label,
.compact-mode .questionnaire-label {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Responsive improvements for extra small screens */
@media (max-width: 576px) {
    .questionnaire-container {
        padding: 15px 10px;
    }

    .page-format-section {
        padding: 10px;
        gap: 8px;
    }

    .page-format-label {
        font-size: 12px;
    }

    .page-format-label i {
        font-size: 16px;
    }

    .format-option {
        padding: 6px 10px;
        font-size: 11px;
    }

    .question-builder-item {
        padding: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-icon {
        padding: 6px 10px;
        font-size: 12px;
    }

    .weight-tile {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* For very constrained spaces (like small modals) */
@media (max-width: 400px) {
    .questionnaire-container {
        padding: 10px;
        border-radius: 10px;
    }

    .page-format-section {
        padding: 8px;
        flex-direction: column;
    }

    .page-format-toggle {
        flex-direction: column;
        width: 100%;
    }

    .format-option {
        width: 100%;
        padding: 8px;
        text-align: center;
    }

    .question-builder-item {
        padding: 10px;
    }

    .question-builder-header {
        padding-bottom: 10px;
    }

    .form-control {
        font-size: 13px;
    }
}

/* Modal compatibility */
.modal-body .weight-tiles,
.compact-mode .weight-tiles,
.small-container .weight-tiles {
    gap: 8px;
}

.modal-body .weight-tile,
.compact-mode .weight-tile,
.small-container .weight-tile {
    width: 45px;
    height: 45px;
    font-size: 16px;
}

/**
 * SN Unified Modal System - CSS
 * Version: 2.1 - All classes use sn- prefix
 * 
 * Include this file in your main layout:
 * <link rel="stylesheet" href="path/to/sn-modal.css">
 */

/* ============================================
   MODAL BASE STYLES
   ============================================ */
.sn-unified-modal .modal-dialog {
    transition: transform 0.3s ease-out;
}

.sn-unified-modal.fade .modal-dialog {
    transform: translateY(-30px);
}

.sn-unified-modal.show .modal-dialog {
    transform: translateY(0);
}

/* ============================================
   MODAL CONTENT
   ============================================ */
.sn-modal-content {
    border-radius: 16px 16px 16px 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ============================================
   MODAL HEADER
   ============================================ */
.sn-modal-header {
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.sn-modal-header .close {
    position: absolute;
    right: 15px;
    top: 15px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s;
}

.sn-modal-header .close:hover {
    opacity: 1;
}

.sn-modal-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.sn-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

/* ============================================
   MODAL BODY
   ============================================ */
.sn-modal-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.sn-modal-body strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* ============================================
   MODAL FOOTER
   ============================================ */
.sn-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    /* gap: 10px; */
    justify-content: flex-end;
}

/* ============================================
   MODAL SECTIONS (NEW!)
   ============================================ */
.sn-modal-section {
    margin-bottom: 20px;
}

.sn-modal-section-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sn-modal-section-content {
    background: #f5f5f5;
    border-left: 4px solid #e0e0e0;
    padding: 16px;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* Section Type: Warning (Orange) */
.sn-modal-section.sn-section-warning .sn-modal-section-content {
    background: #fff3e0;
    border-left-color: #ff9800;
}

/* Section Type: Info (Blue) */
.sn-modal-section.sn-section-info .sn-modal-section-content {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

/* Section Type: Success (Green) */
.sn-modal-section.sn-section-success .sn-modal-section-content {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

/* Section Type: Error (Red) */
.sn-modal-section.sn-section-error .sn-modal-section-content {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

/* ============================================
   HELPER CLASSES FOR BODY CONTENT
   ============================================ */
.sn-modal-body-intro {
    color: #5a5a5a;
    margin-bottom: 16px;
    line-height: 1.6;
}

.sn-modal-body-highlight {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 16px;
    border-radius: 6px;
    margin: 16px 0;
}

.sn-modal-body-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 16px;
    border-radius: 6px;
    margin: 16px 0;
}

.sn-modal-body-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 16px;
    border-radius: 6px;
    margin: 16px 0;
}

.sn-modal-body-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 16px;
    border-radius: 6px;
    margin: 16px 0;
}

/* ============================================
   LABEL STYLES
   ============================================ */
.sn-modal-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

/* ============================================
   INSTRUCTIONS LIST
   ============================================ */
.sn-modal-instructions {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
}

.sn-modal-instructions p {
    color: #1565c0;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.sn-modal-instructions p:last-child {
    margin-bottom: 0;
}

.sn-modal-instructions strong {
    font-weight: 600;
    color: #0d47a1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 576px) {
    .sn-modal-header {
        padding: 16px 20px;
    }

    .sn-modal-body {
        padding: 20px;
    }

    .sn-modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }

    .sn-modal-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .sn-modal-title {
        font-size: 16px;
    }

    .sn-modal-section {
        margin-bottom: 15px;
    }
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */
@keyframes snModalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sn-modal-content.sn-animate {
    animation: snModalSlideIn 0.3s ease-out;
}

/* ============================================
   BACKDROP CUSTOMIZATION
   ============================================ */
.sn-unified-modal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.sn-unified-modal .modal-backdrop.show {
    opacity: 0.6;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sn-text-center {
    text-align: center;
}

.sn-text-left {
    text-align: left;
}

.sn-text-right {
    text-align: right;
}

/* ============================================
   JOIN PAGE QUESTIONNAIRE — flex height layout
   ============================================ */
.join-qstn-modal .modal-dialog {
    height: 85vh;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

.join-qstn-modal .sn-modal-content {
    height: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.join-qstn-modal .sn-modal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.join-qstn-modal .questionnaire-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.join-qstn-modal #questionsContainer {
    flex: 1;
    min-height: 150px;
    overflow-y: auto;
}

.join-qstn-modal .modal-footer {
    flex-shrink: 0;
}

.sn-mb-0 {
    margin-bottom: 0 !important;
}

.sn-mb-1 {
    margin-bottom: 8px !important;
}

.sn-mb-2 {
    margin-bottom: 16px !important;
}

.sn-mb-3 {
    margin-bottom: 24px !important;
}

.sn-mt-0 {
    margin-top: 0 !important;
}

.sn-mt-1 {
    margin-top: 8px !important;
}

.sn-mt-2 {
    margin-top: 16px !important;
}

.sn-mt-3 {
    margin-top: 24px !important;
}

/* ============================================
   PAGINATION COMPONENT
   ============================================ */

.pagination-wrapper {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 10px;
}

.pagination-btn,
.pagination-number {
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.pagination-btn {
    background: #f8f9fa;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination-number {
    background: #fff;
    min-width: 44px;
    text-align: center;
}

.pagination-number:hover:not(.active),
.pagination-btn:hover:not(.disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-number.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
    font-weight: 600;
    cursor: default;
}

.pagination-btn.disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-info {
    margin-left: 15px;
    color: #6c757d;
    font-size: 14px;
    white-space: nowrap;
}

/* Alternative Pagination Styles */
.pagination-wrapper.style-rounded .pagination-btn,
.pagination-wrapper.style-rounded .pagination-number {
    border-radius: 50px;
}

.pagination-wrapper.style-square .pagination-btn,
.pagination-wrapper.style-square .pagination-number {
    border-radius: 0;
}

.pagination-wrapper.style-minimal .pagination-btn,
.pagination-wrapper.style-minimal .pagination-number {
    border: none;
    background: transparent;
}

.pagination-wrapper.style-minimal .pagination-number.active {
    background: #007bff;
    color: white;
}

/* Compact Size */
.pagination-wrapper.size-compact .pagination-btn,
.pagination-wrapper.size-compact .pagination-number {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 36px;
}

/* Large Size */
.pagination-wrapper.size-large .pagination-btn,
.pagination-wrapper.size-large .pagination-number {
    padding: 12px 20px;
    font-size: 16px;
    min-width: 50px;
}

/* Color Themes */
.pagination-wrapper.theme-dark .pagination-btn,
.pagination-wrapper.theme-dark .pagination-number {
    background: #2c3e50;
    border-color: #34495e;
    color: #ecf0f1;
}

.pagination-wrapper.theme-dark .pagination-number.active {
    background: #3498db;
    border-color: #3498db;
}

.pagination-wrapper.theme-success .pagination-number.active {
    background: #28a745;
    border-color: #28a745;
}

.pagination-wrapper.theme-danger .pagination-number.active {
    background: #dc3545;
    border-color: #dc3545;
}

.pagination-wrapper.theme-warning .pagination-number.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Loading State */
.pagination-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination-wrapper {
        gap: 5px;
        padding: 15px 5px;
    }

    .pagination-btn,
    .pagination-number {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 38px;
    }

    .pagination-info {
        width: 100%;
        text-align: center;
        margin: 10px 0 0 0;
        font-size: 12px;
    }

    /* Hide middle page numbers on mobile */
    .pagination-numbers>.pagination-number:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }
}

@media (max-width: 480px) {
    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-btn {
        padding: 8px;
    }
}

.pagination-number:hover:not(.active),
.pagination-btn:hover:not(.disabled) {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   PAGINATION COMPONENT ENDS
   ============================================ */

/* ============================================
   FEED RECOMMENDATION CONTAINER STYLES
   Use this when inserting recommendation panels between feed posts
   ============================================ */

/* Main container for recommendation in feed */
.sn-suggestions-panel {
    padding: 0 12px;
    border-radius: 12px;
    background: #f4f6decf;
}
/* Main container */
.feed-recommendation {
    margin: 0 -10px 0 -10px;
    padding: 0 10px 0 10px;
    background: #ebedeb91;
}


.feed-recommendation-cards {
    margin: 20px 0;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Header */
.feed-rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.feed-rec-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.feed-rec-view-all {
    font-size: 14px;
    font-weight: 600;
    color: #0095f6;
    text-decoration: none;
    transition: opacity 0.2s;
}

.feed-rec-view-all:hover {
    opacity: 0.7;
}

/* Card Grid */
.feed-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Individual Card */
.feed-rec-card {
    position: relative;
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.feed-rec-card:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Dismiss Button (X) */
.feed-rec-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    z-index: 10;
}

.feed-rec-dismiss:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.feed-rec-dismiss svg {
    width: 12px;
    height: 12px;
    fill: #8e8e8e;
}

.feed-rec-dismiss:hover svg {
    fill: #262626;
}

/* Avatar */
.feed-rec-avatar-wrapper {
    margin-bottom: 12px;
}

.feed-rec-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dbdbdb;
    margin: 0 auto;
    display: block;
}

/* User Info */
.feed-rec-user-info {
    margin-bottom: 12px;
}

.feed-rec-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.feed-rec-name {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    text-decoration: none;
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-rec-name:hover {
    text-decoration: underline;
}

.feed-rec-verified {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.feed-rec-headline {
    font-size: 12px;
    color: #8e8e8e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
}

/* Follow Button */
.feed-rec-follow-btn {
    width: 100%;
    padding: 8px 16px;
    background: #0095f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.feed-rec-follow-btn:hover {
    background: #1877f2;
}

.feed-rec-follow-btn:disabled {
    background: #b2dffc;
    cursor: not-allowed;
}

.feed-rec-follow-btn.following {
    background: #efefef;
    color: #262626;
}

.feed-rec-follow-btn.following:hover {
    background: #dbdbdb;
}

/* Fade Out Animation (for dismiss) */
@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.feed-rec-card.dismissing {
    animation: fadeOutScale 0.3s ease-out forwards;
    pointer-events: none;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-recommendation-cards {
    animation: fadeInUp 0.3s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .feed-recommendation-cards {
        padding: 12px;
        border-radius: 0;
        margin: 16px 0;
    }
    
    .feed-rec-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .feed-rec-card {
        padding: 12px;
    }
    
    .feed-rec-avatar {
        width: 56px;
        height: 56px;
    }
    
    .feed-rec-name {
        font-size: 13px;
        max-width: 120px;
    }
    
    .feed-rec-headline {
        font-size: 11px;
    }
    
    .feed-rec-follow-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .feed-rec-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feed-rec-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 10px;
    }
    
    .feed-rec-dismiss {
        top: 6px;
        right: 6px;
    }
    
    .feed-rec-avatar-wrapper {
        margin-bottom: 0;
        margin-right: 12px;
    }
    
    .feed-rec-avatar {
        width: 44px;
        height: 44px;
    }
    
    .feed-rec-user-info {
        flex: 1;
        margin-bottom: 0;
        text-align: left;
    }
    
    .feed-rec-name-wrapper {
        justify-content: flex-start;
    }
    
    .feed-rec-headline {
        padding: 0;
        text-align: left;
    }
    
    .feed-rec-follow-btn {
        margin-left: auto;
        width: auto;
        min-width: 80px;
    }
}

/* Empty State (when all cards dismissed) */
.feed-recommendation-cards.empty {
    display: none;
}

/* Optional: Add subtle background pattern */
.feed-recommendation-cards {
    position: relative;
}

.feed-recommendation-cards::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dbdbdb 20%, #dbdbdb 80%, transparent);
}

.feed-recommendation::after {
    height: 10px;
    display: block;
    width: calc(100% + 20px);
    border-bottom: 6px solid #eef0f4;
    content: '';
    margin-left: -10px;
    margin-right: -10px;
}

.sn-rec-panel-horizontal {
    /* background: #ffffff; */
    border-radius: 8px;
    padding: 15px 10px 7px 10px;
    /* margin: 20px 0; */
    /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);     */
}

.sn-rec-panel-horizontal .sn-rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sn-rec-panel-horizontal .sn-rec-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.sn-rec-panel-horizontal .sn-rec-view-all {
    font-size: 12px;
    font-weight: 600;
    color: #0095f6;
    text-decoration: none;
}

.sn-rec-panel-horizontal .sn-rec-view-all:hover {
    opacity: 0.7;
}

/* Horizontal scroll container */
.sn-rec-horizontal-scroll {
    justify-content: center;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 8px 0;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
}

/* Hide scrollbar but keep functionality */
.sn-rec-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

/* Required field marker */
.sn-required {
    color: #e53935;
}

/* "Select all" toggle above a module checkbox grid */
.sn-select-all-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color, #eee);
}

.sn-select-all-row label {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
}

/* Chapters listing page */
.ch-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted, #888);
}

.ch-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.ch-empty-icon {
    color: var(--sn-primary, #6c5ce7);
    opacity: 0.6;
    margin-bottom: 14px;
}

.ch-empty-state h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ch-empty-state p {
    margin: 0 0 20px;
    max-width: 420px;
    color: var(--text-muted, #888);
    font-size: 13px;
}

.ch-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--sn-info-bg, #eef4ff);
    color: var(--sn-info-text, #2563eb);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
}

.ch-info-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.ch-info-box strong {
    display: block;
    margin-bottom: 4px;
    color: inherit;
}

.ch-info-box p {
    margin: 0;
    color: inherit;
    opacity: 0.9;
}

/* Chapters listing — row actions menu */
.ch-row-actions {
    position: relative;
}

.ch-three-dot-btn {
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ch-row-dropdown {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid var(--border-color, #eee);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    z-index: 9999;
    min-width: 150px;
    padding: 6px 0;
}

.ch-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 13px;
    color: inherit;
}

.ch-dropdown-item-danger {
    color: #e02d2d;
}

.sn-rec-horizontal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sn-rec-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #dbdbdb;
    border-radius: 4px;
}

.sn-rec-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #c4c4c4;
}

/* Individual card - FIXED SIZE */
.sn-rec-horizontal-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 16px;
    min-width: 180px;
    max-width: 180px;
    flex-shrink: 0;
    text-align: center;
    transition: all 0.2s;
}

.sn-rec-horizontal-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Dismiss button (X) */
.sn-rec-horizontal-card .sn-rec-dismiss {
    position: absolute;
    /* position: relative; */
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    transition: all 0.2s;
    order: 2;
}

.sn-rec-horizontal-card .sn-rec-dismiss:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.sn-rec-horizontal-card .sn-rec-dismiss svg {
    width: 10px;
    height: 10px;
}

/* Avatar */
.sn-rec-horizontal-card .sn-rec-avatar-link {
    display: block;
    /* margin-bottom: 12px; */
}

.sn-rec-horizontal-card .sn-rec-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid #dbdbdb;
    margin: 0 auto;
}

/* Name and info */
.sn-rec-horizontal-card .sn-rec-info-wrapper {
    display: flex;
    flex-direction: column;
}
.sn-rec-horizontal-card .sn-rec-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    /* margin-bottom: 4px; */
}

.sn-rec-horizontal-card .sn-rec-name {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    text-decoration: none;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.sn-rec-horizontal-card .sn-rec-name:hover {
    text-decoration: underline;
}

.sn-rec-horizontal-card .sn-rec-verified {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.sn-rec-horizontal-card .sn-rec-headline {
    font-size: 12px;
    color: #8e8e8e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* margin-bottom: 12px; */
    min-height: 18px;
}

/* Follow button */
.sn-rec-horizontal-card .sn-rec-btn {
    width: 100%;
    padding: 6px 16px;
    background: #0095f6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sn-rec-horizontal-card .sn-rec-btn:hover {
    background: #1877f2;
}

.sn-rec-horizontal-card .sn-rec-btn:disabled {
    background: #b2dffc;
    cursor: not-allowed;
}

.sn-rec-horizontal-card .sn-rec-btn.sn-rec-btn-following {
    background: #efefef;
    color: #262626;
}

.sn-rec-horizontal-card .sn-rec-btn.sn-rec-btn-following:hover {
    background: #dbdbdb;
}

/* Dismiss animation */
@keyframes cardSlideOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.sn-rec-horizontal-card.sn-dismissing {
    animation: cardSlideOut 0.3s ease-out forwards;
    pointer-events: none;
}

.sn-rec-footer {
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sn-rec-panel-horizontal {
        padding: 12px;
        border-radius: 0;
        /* margin: 16px 0; */
    }
    
    .sn-rec-horizontal-scroll {
        flex-direction: column;
        overflow: hidden;
    }
    .sn-rec-horizontal-card {
        min-width: unset;
        max-width: unset;
        padding: 12px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .sn-rec-horizontal-card .sn-rec-dismiss{
        position: relative;
        order: 2;
        top: 0;
    }
    .sn-rec-panel-horizontal .sn-rec-title {
        font-size: 14px;
        font-weight: 600;
        color: #262626;
        margin: 0;
    }

    .sn-rec-horizontal-card .sn-rec-avatar {
        width: 56px;
        height: 56px;
    }
    
    .sn-rec-horizontal-card .sn-rec-info-wrapper {
        min-width: 35%;
        justify-content: center;
        align-items: flex-start;
        /* padding-left: 8px; */
    }

    .sn-rec-horizontal-card .sn-rec-name {
        font-size: 13px;
        max-width: 120px;
    }
    
    .sn-rec-horizontal-card .sn-rec-headline {
        font-size: 11px;
    }
    
    .sn-rec-horizontal-card .sn-rec-button {
        align-content: center;
        width: 30%;
        text-align: right;
        padding-top: 8px;
        padding-right: 10px;
    }

    .sn-rec-horizontal-card .sn-rec-button button {
        min-width: 0px;
        padding: 5px 10px;
    }
    .sn-rec-horizontal-card .sn-rec-button button svg {
        margin-right: 0px;
    }
    .sn-rec-horizontal-card .sn-rec-button a {
        min-width: 0px;
        padding: 5px 10px;
    }
    .sn-rec-horizontal-card .sn-rec-button a svg {
        margin-right: 0px;
    }

    .sn-rec-horizontal-card .sn-rec-btn {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* ─── Notify dropdown (right side) ─── */
.notify-controls-placement {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 0 0 10px 15px;
}
.create-page-withnotify .notify-controls-placement
{
    display: inline-flex !important;
    float: inline-start !important;
    padding-bottom: 0px;
}
.notify-wrapper {
    position: relative;
  }

  .notify-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1.5px solid #dddfe2;
    background: #fff;
    color: #65676b;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
  }
  .notify-trigger:hover { background: #f0f2f5; }

  .notify-trigger svg { flex-shrink: 0; }

  /* chevron rotation */
  .notify-trigger .chevron { transition: transform 0.2s; }
  .notify-wrapper.open .chevron { transform: rotate(180deg); }

  /* ─── Notify label pill ─── */
  .notify-label {
    font-size: 13px;
    color: #65676b;
    background: #f0f2f5;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
  }

  /* ─── Dropdown menu ─── */
  .notify-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    /* right: 0; */
    min-width: 230px;
    background: #fff;
    border: 1px solid #dddfe2;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 9999;
    overflow: hidden;
    padding: 0px;
  }
  .notify-wrapper.open .notify-dropdown { display: block; }

  .notify-dropdown li {
    list-style: none;
    padding: 10px 16px;
    font-size: 13.5px;
    color: #1c1e21;
    cursor: pointer;
    transition: background 0.12s;
    text-align: left;
  }
  .notify-dropdown li:hover { background: #f0f2f5; }
  .notify-dropdown li.active { color: #1877f2; font-weight: 600; }

  /* divider between options */
  .notify-dropdown li + li { border-top: 1px solid #f0f2f5; }

  /* ─── Admin per-post notify trigger (post header) ─── */
  .admin-community-notify-trigger {
    padding: 4px 8px;
    align-self: center;
    vertical-align: middle;
    width: 34px;
    height: 34px;
  }

  /* ─── Admin per-post notify modal ─── */
  .admin-post-notify-dialog.modal-sm {
    width: 420px;
  }
  .admin-post-notify-question {
    font-size: 14px;
    color: #65676b;
    margin-bottom: 14px;
  }
  .admin-post-notify-controls {
    padding: 0;
  }
  .admin-post-notify-select {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid #dddfe2;
    font-size: 13.5px;
    color: #1c1e21;
  }
  .admin-post-notify-select:focus {
    border-color: #1877f2;
    outline: none;
    box-shadow: none;
  }
  .admin-post-notify-error {
    display: none;
    margin-top: 10px;
    font-size: 12.5px;
    color: #e02b2b;
  }
  .admin-post-notify-error.show { display: block; }