@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

$darkBlack: rgb(28, 32, 37);

// License Activation Bar
.jitsi-meet-licence-activation-area {
    background: #df2a4a;
    padding: 20px;
    text-align: center;
    margin-left: -19.7px;

    h3 {
        color: #fff;
        font-size: 16px;
        font-weight: 400;
        line-height: 0;
        margin: 0;

        a {
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            margin-left: 5px;
            text-decoration: underline;

            &:hover {
                text-decoration: none;
            }
        }
    }
}

.jitsi-wrapper {
    text-align: center;
    background-color: #3a3a3a;
    color: white;
    line-height: 30px;
    padding: 15px;
}

.jitsi-admin-wrap {
    font-family: 'Nunito', sans-serif;
    padding-right: 20px;
    box-sizing: border-box;

    * {
        box-sizing: border-box;
    }

    .title {
        font-size: 32px;
        font-weight: 600;
        margin-bottom: 30px;

        svg {
            display: inline-block;
            vertical-align: middle;
        }

        span {
            display: inline-block;
            vertical-align: middle;
        }
    }

    .option-form-field-wrap {
        display: flex;
        flex-wrap: wrap;
        width: 100%;

        @media (max-width: 768px) {
            flex-direction: column;
        }
    }

    .submit-button-wrapper, .submit {
        margin-top: 40px !important;
        padding-top: 20px;
        width: 100%;
        clear: both;
        
        #submit, .button-primary {
            background: #4F46E5 !important;
            border: none !important;
            padding: 14px 40px !important;
            font-size: 16px !important;
            font-weight: 700 !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
            height: auto !important;
            line-height: 1 !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            color: #ffffff !important;
            cursor: pointer !important;
            margin-bottom: 0 !important;
            display: inline-block !important;
            text-decoration: none !important;

            &:hover {
                background: #4338CA !important;
                box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3) !important;
                transform: translateY(-2px);
            }

            &:active {
                transform: translateY(0);
                box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2) !important;
            }
        }
    }
}


.jitsi-setting-tab-links {
    font-size: 0;
    background-color: $darkBlack;
    line-height: 20px;
    overflow: hidden;
    flex-grow: 0;
    width: 224px;

    @media (max-width: 768px) {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 2px solid #2a2f35;
    }

    a {
        display: block;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        background-color: transparent;
        line-height: inherit;
        color: white;
        padding: 16px;
        transition: all 0.3s ease;
        border: none;
        box-shadow: none;
        border: 0px solid #1c2025;

        svg {
            display: inline-block;
            vertical-align: middle;
            width: 24px;
            height: 24px;
            margin-right: 12px;
            fill: #d1dbe8;
            transition: all 0.3s ease;
        }

        label {
            display: inline-block;
            vertical-align: middle;
            max-width: calc(100% - 36px);
        }

        .jitsi-tab-title {
            font-weight: 600;
            display: block;
            line-height: 1;
            font-size: 14px;
        }

        .jitsi-tab-desc {
            display: block;
            font-size: 11px;
            color: #9b9b9b;
            line-height: 1;
            margin-top: 6px;
        }

        &:focus {
            outline: none;
            border: none;
            box-shadow: none;
        }

        &:hover {
            background-color: rgba(white, 0.2);
        }

        &.active {
            background-color: white;
            color: $darkBlack;
            border-width: 0 0 0 3px;

            @media (max-width: 768px) {
                border-width: 0 0 3px 0;
            }

            svg {
                fill: #1c2025;
            }

            .jitsi-tab-desc {
                color: #7e7e7e;
            }
        }
        
        @media (max-width: 768px) {
            flex: 0 0 auto;
            border-width: 0 0 3px 0 !important;
            border-color: transparent;
            padding: 12px 16px;
            
            svg {
                margin-right: 8px;
            }
            label {
                max-width: 100%;
            }
            .jitsi-tab-desc {
                display: none; // hide description on mobile tabs
            }
        }
    }
}

.jitsi-setting-tabs {
    position: relative;
    background-color: white;
    padding: 35px;
    flex-grow: 1;
    overflow: visible !important; // Force visible for sticky support
    max-width: calc(100% - 224px);

    @media (max-width: 768px) {
        max-width: 100%;
        padding: 20px 15px;
    }

    // Scoped Overrides for API Settings Tab
    #jaasOptionFormApi {
        width: 100%;
        display: block; // Prevents side-by-side with preview

        & + #meeting-ui-preview {
            display: none !important; // Hide preview ONLY on API tab
        }
    }

    // Default Side-by-side for other tabs
    .jitsi-pro-option-form:not(#jaasOptionFormApi) {
        width: 50%;
        display: inline-block;
        vertical-align: top;
    }

    // Professional API Tab Design Overhaul
    #jaasOptionFormApi {
        padding: 0;
        
        .jitsi-config-panel {
            background-color: #F9FAFB;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            border: 1px solid #F3F4F6;
            margin-bottom: 0;
            overflow: hidden;
            animation: slideUp 0.4s ease-out;
        }

        .jitsi-panel-header {
            background-color: #F9FAFB;
            padding: 24px 32px;
            border-bottom: 1px solid #F3F4F6;
            margin-bottom: 0;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;

            h3 {
                font-size: 18px;
                font-weight: 700;
                color: #111827;
                letter-spacing: -0.02em;
                margin: 0;
            }

            .panel-badge-pill {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                background-color: #ECFDF5; // Emerald 50
                color: #047857; // Emerald 700
                font-size: 13px;
                font-weight: 800;
                padding: 6px 14px;
                border: 1px solid #10B981; // Emerald 500
                border-radius: 9999px;
                text-transform: none;
                letter-spacing: -0.015em;
                line-height: 1;
                user-select: none;
                
                // Tailwind-style Premium Glow
                box-shadow: 0 0 12px 1px rgba(16, 185, 129, 0.08); 
                
                svg {
                    width: 15px;
                    height: 15px;
                    fill: #10B981; // Vibrant Emerald 500
                    stroke: none;
                    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.2));
                }
            }
        }

        .jitsi-main-config {
            padding: 32px;

            @media (max-width: 768px) {
                padding: 20px;
            }
        }

        .jitsi-config-panel-branded .jitsi-main-config {
            padding-top: 10px !important;
        }

        .jitsi-form-field-row {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            // padding: 24px 0;
            border-bottom: none;
            gap: 12px;

            @media (max-width: 768px) {
                padding: 16px 0;
                margin-bottom: 24px;
            }

            .field-label-cell {
                width: 100%;
                max-width: 100%;

                label {
                    display: block;
                    font-size: 15px;
                    font-weight: 700;
                    color: #111827;
                    margin-bottom: 6px;
                }

                .description {
                    font-size: 13.5px;
                    color: #6B7280;
                    line-height: 1.5;
                    margin-bottom: 12px;
                }
            }

            .field-input-cell {
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                justify-content: flex-start;

                select, input:not([type="checkbox"]):not([type="radio"]) {
                    width: 100% !important;
                    max-width: 480px !important;
                    height: 44px !important;
                    border-radius: 8px !important;
                    border: 1px solid #D1D5DB !important;
                    background-color: #FFFFFF !important;
                    padding: 0 16px !important;
                    font-size: 14px !important;
                    transition: all 0.2s ease !important;
                    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;

                    &:focus {
                        border-color: #4F46E5 !important;
                        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
                        outline: none !important;
                    }
                }

                select {
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 9l4 4 4-4'%3E%3C/path%3E%3C/svg%3E");
                    background-repeat: no-repeat;
                    background-position: right 12px center;
                    background-size: 20px;
                    padding-right: 40px !important;
                    appearance: none;
                }
            }
        }

        .jitsi-input-with-button {
            display: flex;
            gap: 12px;
            width: 100%;
            max-width: 720px;
            align-items: center;

            input {
                flex: 1 1 auto;
                max-width: 480px;
                margin: 0 !important;
            }

            @media (max-width: 768px) {
                flex-direction: column;
                align-items: stretch;
                
                input {
                    max-width: 100% !important;
                    flex: 1 1 auto;
                }
            }

            .jitsi-btn-save-test {
                flex: 0 0 auto;
                background: #8B5CF6;
                color: white;
                height: 44px;
                border-radius: 8px;
                padding: 0 20px;
                font-weight: 600;
                font-size: 14px;
                border: none;
                cursor: pointer;
                transition: background 0.2s;

                &:hover {
                    background: #7C3AED;
                }
            }
        }
    }

    @keyframes slideUp {
        from { opacity: 0; transform: translateY(15px); }
        to { opacity: 1; transform: translateY(0); }
    }

    // Jitsi Hosted Section SCSS - Properly Neste

    // Keyframe animations
    @keyframes jitsi-pulse {
        0%, 100% { 
            transform: scale(1); 
        }
        50% { 
            transform: scale(1.05); 
        }
    }

    @keyframes jitsi-float {
        0%, 100% { 
            transform: translateY(0px); 
        }
        50% { 
            transform: translateY(-10px); 
        }
    }

    // Reactive Config Panel Styles
    .jitsi-config-panel {
        display: block;
        width: 100%;
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .panel-desc {
        font-size: 15px;
        color: #6B7280;
        line-height: 1.6;
        margin-bottom: 32px;
        max-width: 800px;
    }

    .jitsi-section-title {
        font-size: 24px;
        font-weight: 700;
        color: #111827;
        margin: 0 0 32px 0;
        padding-top: 10px;
    }

    .jitsi-grid-left-col {
        display: flex;
        flex-direction: column;
        gap: 24px;
        min-width: 0; // Fix grid blowout

        @media (max-width: 1200px) {
            display: contents;
        }
    }

    .jitsi-panel-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 0;
        border-bottom: none;

        @media (max-width: 640px) {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
            
            h3 {
                font-size: 20px;
                line-height: 1.3;
            }
        }

        h3 {
            font-size: 24px;
            font-weight: 800;
            color: #111827;
            margin: 0;
        }

    }

    .jitsi-layout-grid {
        display: grid;
        grid-template-columns: 1.8fr 1fr;
        gap: 0;
        align-items: stretch;

        @media (max-width: 1200px) {
            grid-template-columns: 1fr;
        }
    }

    .jitsi-main-config {
        padding: 32px;
        background: white;

        @media (max-width: 640px) {
            padding: 16px;
        }
    }

    .jitsi-form-field-row {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 32px;
        margin-bottom: 32px;
        align-items: flex-start;

        &:last-child {
            margin-bottom: 0;
        }

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 12px;
        }
    }

    .field-label-cell {
        label {
            display: block;
            font-size: 14px;
            font-weight: 700;
            color: #374151;
            margin-bottom: 4px;
        }

        .description {
            font-size: 13px;
            color: #6B7280;
            line-height: 1.5;
            margin: 0;
            
            a {
                color: #4F46E5 !important;
                text-decoration: none !important;
                font-weight: 600 !important;
                &:hover { text-decoration: underline !important; }
            }
        }
    }

    .label-with-tooltip {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
        position: relative;

        label {
            margin-bottom: 0 !important;
        }
    }

    .jitsi-tooltip-trigger {
        display: inline-flex;
        align-items: center;
        color: #9CA3AF;
        cursor: help;
        transition: color 0.2s;
        position: relative;

        &:hover {
            color: #4F46E5;
            
            .jitsi-admin-tooltip {
                opacity: 1;
                visibility: visible;
                transform: translateY(-50%) translateX(10px);
            }
        }

        svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }
    }

    .jitsi-admin-tooltip {
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%) translateX(20px);
        background: #111827;
        color: white;
        padding: 16px;
        border-radius: 12px;
        width: 480px;
        z-index: 1000;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

        .tooltip-arrow {
            position: absolute;
            left: -8px;
            top: 50%;
            transform: translateY(-50%);
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            border-right: 8px solid #111827;
        }

        img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            margin-bottom: 12px;
            display: block;
        }

        strong {
            display: block;
            text-align: center;
            font-size: 14px;
            font-weight: 600;
            color: #F9FAFB;
        }
    }

    .jitsi-input-with-button {
        display: flex;
        gap: 12px;
        max-width: 100%;
        align-items: center;

        @media (max-width: 640px) {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }

        input {
            flex-grow: 1;
            width: 100%;
            height: 48px;
            border-radius: 8px;
            border: 1px solid #D1D5DB;
            padding: 0 16px;
            font-size: 15px !important;
            background: white;
            margin: 0 !important;
            box-sizing: border-box;

            &:focus {
                border-color: #8B5CF6;
                outline: none;
                box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
            }
        }
    }


    .field-sub-link {
        font-size: 13px;
        color: #6B7280;
        margin-top: 4px;
        
        a {
            color: #4F46E5;
            text-decoration: none;
            font-weight: 500;
            &:hover { text-decoration: underline; }
        }
    }

    .jitsi-connection-status-msg {
        margin-top: 4px;
        font-size: 14px;
        min-height: 0;

        span {
            display: flex;
            align-items: center;
            padding: 4px 0;
            font-weight: 600;
        }

        .jitsi-msg-icon {
            margin-right: 8px;
            font-size: 16px;
        }

        .jitsi-domain-badge {
            background: #f1f5f9;
            color: #0f172a;
            padding: 2px 8px;
            border-radius: 4px;
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            margin-left: 6px;
            font-size: 12px;
            border: 1px solid #e2e8f0;
        }

        .jitsi-status-win {
            color: #10b981;
            display: inline-flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px;
            font-weight: 600;
            background: transparent !important;
            padding: 0 !important;
            border: none !important;
            box-shadow: none !important;
            word-break: break-word;

            @media (max-width: 640px) {
                .jitsi-domain-badge {
                    margin-left: 0;
                }
            }
        }

        .jitsi-status-warning {
            color: #d97706;
            display: inline-flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px;
            font-weight: 600;
            background: transparent !important;
            padding: 0 !important;
            border: none !important;
            box-shadow: none !important;
            word-break: break-word;
        }

        .jitsi-status-error {
            color: #dc2626;
            display: inline-flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px;
            font-weight: 600;
            background: transparent !important;
            padding: 0 !important;
            border: none !important;
            box-shadow: none !important;
            word-break: break-word;
        }
    }

    .jitsi-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        padding: 0 28px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
        white-space: nowrap;

        &-save-test {
            background: #8B5CF6;
            color: white;
            &:hover { background: #7C3AED; }

            &.is-connected {
                background: #22c55e !important;
                color: #fff !important;
                border: 1px solid #22c55e !important;
                cursor: default;
                opacity: 1 !important;
                pointer-events: none;
            }
        }

        &-disconnect {
            background: rgba(244, 81, 98, 0.08) !important;
            color: #F45162 !important;
            border: 1px solid rgba(244, 81, 98, 0.2) !important;
            margin-left: 12px;
            font-weight: 700;
            padding: 8px 20px !important; // User requested padding
            height: auto !important; // Allow padding to determine height
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

            @media (max-width: 640px) {
                margin-left: 0;
                width: 100%;
                margin-top: 0;
            }

            &:hover {
                background: #F45162 !important;
                border-color: #F45162 !important;
                color: #ffffff !important;
                box-shadow: 0 4px 12px rgba(244, 81, 98, 0.2);
                transform: translateY(-1px);
            }

            &:active {
                transform: translateY(0);
                box-shadow: none;
                opacity: 0.9;
            }
        }

        &-cta {
            background: #6366F1;
            color: white;
            width: fit-content;
            padding: 0 32px;
            margin-top: 20px;
            border-radius: 6px;
            &:hover { background: #4F46E5; }
        }
        &:disabled,
        &.is-disabled {
            opacity: 0.6;
            background: #E5E7EB !important;
            color: #9CA3AF !important;
            cursor: not-allowed;
            pointer-events: none;
            filter: blur(0.5px);
        }
    }

    // Guide section
    .jitsi-setup-guide {
        padding-top: 0;
        overflow-wrap: break-word;
        word-wrap: break-word;

        .guide-toggle {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            width: fit-content;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 700;
            color: #8B5CF6;
            transition: all 0.2s ease;
            user-select: none;
            margin-bottom: 0;

            &:hover { 
                background: transparent;
                color: #7C3AED;
            }
            
            svg { 
                transition: transform 0.3s ease;
                stroke: currentColor;
            }
        }

        &.is-active {
            .guide-toggle svg {
                transform: rotate(90deg);
            }
        }

        .guide-steps-wrap {
            padding: 24px 8px;
            animation: fadeIn 0.3s ease-out;
        }

        .numbered-steps {
            list-style: none;
            padding: 0;
            margin: 0;
            counter-reset: step-counter;
            
            li {
                position: relative;
                padding-left: 44px;
                font-size: 14.5px;
                color: #4B5563;
                margin-bottom: 20px;
                line-height: 1.6;
                display: block;
                overflow-wrap: break-word;
                word-wrap: break-word;
                white-space: normal !important;
                word-break: break-word;

                @media (max-width: 480px) {
                    padding-left: 32px;
                    font-size: 13.5px;
                }

                &:last-child {
                    margin-bottom: 0;
                }

                &::before {
                    content: counter(step-counter);
                    counter-increment: step-counter;
                    position: absolute;
                    left: 0;
                    top: -2px;
                    width: 24px;
                    height: 24px;
                    background: #EEF2FF;
                    color: #4F46E5;
                    font-weight: 800;
                    font-size: 12px;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 1px solid rgba(79, 70, 229, 0.1);
                }
                
                strong {
                    color: #111827;
                    font-weight: 700;
                    margin-right: 4px;
                }

                a {
                    color: #8B5CF6;
                    text-decoration: none;
                    font-weight: 600;
                    border-bottom: 1px dashed rgba(139, 92, 246, 0.3);
                    transition: all 0.2s;

                    &:hover { 
                        color: #7C3AED;
                        border-bottom-style: solid;
                        border-bottom-color: #7C3AED;
                    }
                }
            }
        }

        .guide-footer {
            margin-top: 24px;
            font-size: 14px;
            color: #4B5563;
            font-weight: 500;
            line-height: 1.6;
        }
    }

    // SaaS Dashboard Grid Layout Overrides
    #jaasOptionFormApi {
        .form-table {
            display: block;
            border-collapse: collapse;
            
            tbody {
                display: block;
                width: 100%;
            }

            tr {
                display: block;
                width: 100%;
                margin-bottom: 0;
                
                th {
                    display: none; // Hide the empty/squeezed th
                    padding: 0;
                    width: 0;
                }

                td {
                    display: block;
                    width: 100%;
                    padding: 0;
                    box-sizing: border-box;
                }
            }
        }
    }

    .jitsi-admin-field-hosting-cards {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 40px;
        width: 100%;

        @media (max-width: 1200px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width: 640px) {
            grid-template-columns: 1fr;
        }
    }

    .jitsi-layout-grid {
        display: grid;
        grid-template-columns: 1.8fr 1fr;
        gap: 32px;
        align-items: flex-start;
        position: relative;
        margin-top: 32px;
        overflow: visible !important; // Must be visible for children to stick

        @media (max-width: 1200px) {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }
    }

    // Side Info / Benefits Card
    .jitsi-side-info {
        background: #F9FAFB;
        padding: 32px;
        border-radius: 12px;
        border: 1px solid #F3F4F6;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        position: sticky !important;
        top: 80px !important; // 32px WP Admin Bar + 48px padding
        z-index: 100 !important;
        align-self: flex-start; // Ensure it stays its own height and doesn't stretch
        box-sizing: border-box;

        @media (max-width: 1200px) {
            position: relative !important;
            top: 0 !important;
            margin-top: 24px;
            width: 100%; // Ensure it doesn't break layout width on mobile
        }

        h4 {
            font-size: 18px;
            font-weight: 800;
            color: #111827;
            margin: 0 0 24px 0;
            display: flex;
            align-items: center;
            gap: 12px;

            .emoji-wrapper {
                background: transparent;
                width: 32px;
                height: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 24px; // Increased for better prominence
            }
        }

        .benefits-list {
            list-style: none;
            padding: 0;
            margin: 0;

            li {
                display: flex;
                align-items: center; // Align center for better one-line balance
                gap: 12px;
                margin-bottom: 5px;

                &:last-child {
                    margin-bottom: 0;
                }

                .benefit-icon {
                    color: #10B981;
                    flex-shrink: 0;
                    width: 32px; // Match emoji-wrapper width for perfect alignment
                    height: 32px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    
                    svg {
                        width: 18px;
                        height: 18px;
                    }
                }

                .benefit-text {
                    font-size: 14px;
                    color: #4B5563;
                    line-height: 1.5;
                    font-weight: 500;
                }
            }
        }

        .jitsi-cta-box {
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid #e1e7f3;

            p.cta-help-text {
                font-size: 14px !important;
                color: #111827 !important;
                margin-bottom: 16px !important;
                font-weight: 800 !important;
                display: block;
                text-align: center;
                
                strong {
                    font-weight: 800 !important;
                }
            }

            .jitsi-btn-cta {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
                background: #6366F1;
                color: white;
                padding: 14px 20px;
                border-radius: 10px;
                text-decoration: none;
                font-weight: 700;
                font-size: 14px;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                width: 100%;
                border: none;
                cursor: pointer;
                box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
                white-space: normal;
                text-align: center;
                height: auto;
                line-height: 1.4;

                @media (max-width: 640px) {
                    font-size: 13px;
                    padding: 12px 14px;
                }

                &:hover {
                    background: #4F46E5;
                    transform: translateY(-2px);
                    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
                }
                
                svg {
                    stroke: white;
                    width: 20px;
                    height: 20px;
                }
            }
        }
    }

    // FAQ Section
    .jitsi-faq-section {
        background: #F9FAFB;
        border-radius: 12px;
        padding: 24px;
        margin-top: 32px;

        @media (max-width: 1200px) {
            order: 4;
            margin-top: 0;
            padding: 20px;
        }

        .faq-title {
            font-size: 28px;
            font-weight: 800;
            color: #111827;
            margin-bottom: 32px;
            text-align: left;
            letter-spacing: -0.02em;
        }

        .faq-accordion {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .faq-item {
            background: #FFFFFF;
            border: 1px solid #E5E7EB;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

            &.is-active {
                border-color: #3B82F6;
                box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

                .faq-toggle {
                    background: #EEF2FF !important; // More distinct light blue background
                    color: #1D4ED8;
                    
                    svg {
                        transform: rotate(180deg);
                        color: #1D4ED8;
                    }
                }

                .faq-content {
                    border-top: 1px solid #E5E7EB;
                    background: #FFFFFF; // Ensure content stays white
                }
            }

            .faq-toggle {
                width: 100%;
                padding: 24px 32px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                background: #FFFFFF;
                border: none;
                cursor: pointer;
                text-align: left;
                font-size: 16px;
                font-weight: 700;
                color: #374151;
                transition: all 0.3s ease;
                gap: 16px;

                &:hover {
                    background: #F9FAFB;
                }

                span {
                    flex: 1;
                }

                svg {
                    width: 20px;
                    height: 20px;
                    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                    color: #9CA3AF;
                    flex-shrink: 0;
                }
            }

            .faq-content {
                display: none;
                padding: 15px; // Balanced padding
                font-size: 15px;
                line-height: 1.625;
                color: #4B5563;
                animation: fadeIn 0.4s ease-out;

                p {
                    margin: 0;
                }
            }
        }
    }


    // Media query for header at mobile
    @media (max-width: 768px) {
        .jitsi-hosted-header {
            padding: 12px 15px;
        }
    }
}

.jitsi-setting-tab {
    position: relative;
    display: none;

    &.active {
        display: block;
    }
}

#jitsi_pro__meeting_settings .inside,
.jitsi-pro-option-form {
    width: 100%;
    display: block;

    td {
        padding: 15px 10px;
    }

    th {
        min-width: 200px;
        text-align: left;

        label {
            font-size: 16px;
            font-weight: 600;
            font-family: "Nunito", sans-serif;
            color: $darkBlack;
            position: relative;
            display: block;

            svg {
                width: 14px;
                height: 14px;
                line-height: inherit;
                display: inline-block;
                vertical-align: middle;
                fill: #1c2025;
                margin-left: 3px;
            }

            .description {
                font-size: 13px;
                font-weight: 400;
                display: block;
                color: #888888;

                a {
                    color: inherit;
                    text-decoration: underline;
                }
            }

            .jitsi-admin-tooltip {
                position: absolute;
                background-color: #1c2025;
                box-sizing: border-box;
                top: 0;
                left: 100%;
                padding: 16px;
                z-index: 1;
                width: 532px;
                box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;

                .tooltip-arrow {
                    content: '';
                    position: absolute;
                    width: 0;
                    height: 0;
                    left: -8px;
                    top: 10px;
                    border-right: 8px solid #1c2025;
                    border-top: 8px solid transparent;
                    border-bottom: 8px solid transparent;
                }

                img {
                    max-width: 100%;
                    height: auto;
                }

                strong {
                    color: white;
                    font-size: 12px;
                    margin-top: 8px;
                    display: block;
                    text-align: center;
                }
            }

            &:hover {
                .jitsi-admin-tooltip {
                    opacity: 1;
                    visibility: visible;
                }
            }
        }
    }

    [type=text],
    [type=number] {
        max-width: 100%;
        width: 100%;
        border-radius: 6px;
        background-color: #F9FAFB;
        transition: all 0.3s ease;
        border: 1px solid rgb(209, 219, 232);
        box-sizing: border-box;
        font-size: 15px;
        line-height: 24px;
        outline: none;
        padding: 12px 16px;
        margin: 0;

        &:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
            border-color: #2271b1;
            background-color: white;
        }
    }

    textarea {
        max-width: 100%;
        width: 100%;
        border-radius: 6px;
        background-color: #F9FAFB;
        transition: all 0.3s ease;
        border: 1px solid rgb(209, 219, 232);
        box-sizing: border-box;
        font-size: 15px;
        line-height: 24px;
        outline: none;
        padding: 12px 16px;
        margin: 0;

        &:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
            border-color: #2271b1;
            background-color: white;
        }
    }

    [type=button] {
        transition: all 0.3s ease;
        border: 1px solid rgb(209, 219, 232);
        box-sizing: border-box;
        font-size: 15px;
        line-height: 20px;
        outline: none;
        padding: 8px;
        color: rgb(28, 32, 37);

        &.jitsi-uploader-button {
            text-align: center;
            line-height: 24px;
            min-width: 42px;
            position: relative;
            cursor: pointer;

            &:before {
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;
            }

            * {
                pointer-events: none;
            }

            svg {
                width: 20px;
                height: 20px;
                fill: rgb(94, 109, 122);
                vertical-align: middle;
            }
        }

        &.jitsi-uploader-reset {
            text-align: center;
            line-height: 24px;
            min-width: 42px;

            svg {
                width: 20px;
                height: 20px;
                fill: rgb(94, 109, 122);
                vertical-align: middle;
            }
        }
    }

    .jitsi-admin-field-hosting-cards {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        @media (max-width: 1024px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width: 640px) {
            grid-template-columns: 1fr;
        }
        margin-bottom: 40px;

        > label {
            position: relative;
            cursor: pointer;
            transition: all 0.3s ease;

            input {
                position: absolute;
                opacity: 0;
                width: 0;
                height: 0;
            }

            .hosting-card-inner {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                text-align: left;
                padding: 24px 16px;
                border-radius: 12px;
                background: #F3F4F6;
                border: 2px solid #E5E7EB;
                height: 100%;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                position: relative;

                .card-icon {
                    width: 80px;
                    height: 80px;
                    border-radius: 20px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-bottom: 24px;
                    transition: all 0.3s ease;
                    overflow: hidden;

                    svg {
                        width: 100%;
                        height: 100%;
                        display: block;
                    }
                }

                .card-label {
                    font-size: 18px;
                    font-weight: 700;
                    color: #111827;
                    margin-bottom: 8px;
                    line-height: 1.2;
                }

                .card-desc {
                    font-size: 13px;
                    font-weight: 400;
                    color: #6B7280;
                    line-height: 1.4;
                }

                .recommended-badge {
                    display: none;
                }

                .jitsi-new-tag {
                    display: none;
                    background: #10B981;
                    color: #fff;
                    font-size: 10px;
                    font-weight: 700;
                    padding: 6px 8px;
                    border-radius: 30px;
                    text-transform: uppercase;
                    letter-spacing: 0.05em;
                    margin-left: 8px;
                    vertical-align: middle;
                    line-height: 1;
                }

                .selected-check {
                    position: absolute;
                    top: 12px;
                    right: 12px;
                    width: 20px;
                    height: 20px;
                    background: #10B981;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: #fff;
                    opacity: 0;
                    transform: scale(0.5);
                    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

                    svg {
                        width: 12px;
                        height: 12px;
                    }
                }
            }

            // Card Types
            &.card-free .card-icon { background: transparent; }
            &.card-branded {
                .card-icon { background: transparent; }
                .jitsi-new-tag { display: inline-block; }
            }
            &.card-jaas .card-icon { background: transparent; }
            &.card-self .card-icon { background: transparent; }

            &:hover .hosting-card-inner {
                border-color: #D1D5DB;
                transform: translateY(-4px);
                box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            }

            input:checked + .hosting-card-inner {
                border-color: #10B981;
                border-width: 2px;
                background: #ECFDF5; // Deepened background to light emerald green
                
                .selected-check {
                    opacity: 1;
                    transform: scale(1);
                    background: #10B981; // Keep check circle green
                }
            }

            // Special handling for FlexMeeting Hosted (Branded)
            &.card-branded {
                input:checked + .hosting-card-inner {
                    border-color: #10B981;
                    background: #F0FDF4; // Even deeper for branded
                    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1), 0 2px 4px -1px rgba(16, 185, 129, 0.06);
                }
            }
        }
    }

    .jitsi-meet-welcome & {
        .jitsi-admin-field-multiswitch {
            display: flex;
            justify-content: center;
            margin: 0 -15px;

            >label {
                position: relative;
                margin: 0 15px;
                flex: 33.333333%;

                >span {
                    display: block;
                    background-color: #cccccc;
                    color: #1c2025;
                    line-height: 26px;
                    font-weight: 400;
                    text-align: left;
                    border-radius: 8px;
                    overflow: hidden;
                    font-size: 0;

                    >svg {
                        display: inline-block;
                        margin: 0 10px 0 0;
                        fill: #4083FF;
                        vertical-align: middle;
                    }

                    >span {
                        vertical-align: middle;
                        display: inline-block;
                        font-size: 18px;
                        font-weight: 700;

                        +svg {
                            position: absolute;
                            top: 5px;
                            right: 5px;
                            opacity: 0;
                            margin: 0;
                        }

                        &.desc {
                            font-size: 14px;
                            font-weight: 400;
                            display: block;
                            width: 100%;
                            line-height: 20px;
                            margin-top: 13px;
                        }
                    }
                }
            }
        }
    }
}

.jisti-uploader-btn-group {
    display: flex;
    flex-wrap: wrap;
    left: -4px;
    right: -4px;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    position: absolute;

    [type=text] {
        flex-grow: 1;
        width: auto;
        margin: 0 4px !important;
        opacity: 0;
    }

    button {
        flex-grow: 0;
        margin: 0 4px !important;
    }
}

.jitsi-uploader-preview {
    max-width: 360px;
    width: 100%;
    position: relative;

    .jitsi-uploader-preview-img {
        background-repeat: no-repeat;
        border-radius: 3px;
        border: 1px solid rgb(164, 184, 209);
        background-size: cover;
        background-color: #1c2025;
        text-align: center;
        overflow: hidden;

        >img {
            height: auto;
            max-width: 100%;
            vertical-align: middle;
        }

        +.jitsi-uploader-preview-placehold {
            display: none;

            +.jisti-uploader-btn-group {
                opacity: 1;
                visibility: visible;
                position: static;
                margin-left: -4px;
                margin-right: -4px;
                margin-top: 8px;
            }
        }
    }

    .jitsi-uploader-preview-placehold {
        align-items: center;
        background: rgb(240, 243, 247);
        border: 1px dashed rgb(164, 184, 209);
        border-radius: 3px;
        display: flex;
        height: 118px;
        -webkit-box-pack: center;
        justify-content: center;
        text-align: center;
        position: relative;
        cursor: pointer;

        * {
            pointer-events: none;
        }

        &:before {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
        }

        h5 {
            color: rgb(3, 118, 218);
            font-weight: 600;
            font-size: 15px;
            line-height: 24px;
            margin: 8px 0px 2px;
        }

        p {
            color: rgb(94, 109, 122);
            font-size: 13px;
            line-height: 20px;
            margin: 0;
        }
    }
}

#jitsi_pro__meeting_settings .inside {
    width: 100%;
    box-sizing: border-box;
}

.jitsi-field-single-image {
    position: relative;

    [type=text] {
        width: calc(100% - 130px);
    }
}

.jitsi-field-switch {
    display: inline-block;
    cursor: pointer;
    white-space: nowrap;
    vertical-align: middle;
    transition: background-color 150ms ease-in-out 0s;
    border-radius: 15px;
    height: 30px;
    width: 60px;
    padding: 2px;
    color: rgb(255, 255, 255);
    background-color: rgb(94, 109, 122);
    box-shadow: none;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    position: relative;
    box-sizing: border-box;

    input {
        opacity: 0;
        visibility: hidden;
        position: absolute;
    }

    span {
        position: absolute;
        left: 2px;
        top: 2px;
        background-color: white;
        width: 26px;
        height: 26px;
        border-radius: 15px;
    }

    &.active {
        background-color: rgb(3, 118, 218);

        span {
            left: auto;
            right: 2px;
        }
    }
}

.jitsi-setting-tabs-wrapper, #jaasOptionFormApi, .jitsi-config-panel-wrap, .jitsi-setting-tab {
    overflow: visible !important; // Critical for position: sticky
    width: 100%;
}

.jitsi-setting-tabs-wrapper {
    display: none;
    font-size: 0;

    &.active {
        display: block;
    }

    .form-table {
        max-width: 100%;
        margin: 0;
    }
}

.description {
    &.desc-pro {
        &:after {
            content: 'Premium';
            display: block;
            background-color: #e64e08;
            color: white;
            width: max-content;
            line-height: 1;
            padding: 3px 8px;
            font-size: 12px;
            margin-top: 3px;
            border-radius: 3px;
        }
    }
}

// Disabled hosting card styling
.hosting-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;

    input[type="radio"] {
        cursor: not-allowed;
    }

    .hosting-card-inner {
        pointer-events: none;
    }

    &::after {
        content: '🔒';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 20px;
        z-index: 1;
    }
}

// Disabled input fields styling (matching old version)
.disabled {
    cursor: pointer;
    opacity: 0.7;

    * {
        pointer-events: none;
    }
}

// Increase width of input fields
.jitsi-admin-field[type="text"],
.jitsi-admin-field[type="url"] {
    width: 100%;
    max-width: 600px;
    min-width: 0;
    box-sizing: border-box;
}

.jitsi-new {
    background-color: #188038;
    color: #fff;
    width: max-content;
    line-height: 1;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 12px;
    margin-top: 3px;
    margin-left: 10px;
    border-radius: 30px;
}

.jitsi-preview-loader {
    text-align: center;
}

.jitsi-preview-loading {
    animation: 900ms linear 0s infinite normal none running spin;
    vertical-align: middle;
}

.other-admin-setting {
    background: rgb(240, 243, 247);
    border: 1px dashed rgb(164, 184, 209);
    border-radius: 3px;
    padding: 15px;
}

#woocommerce-product-data,
#woocommerce-coupon-data,
.woocommerce {
    ul {
        &.wc-tabs {
            li {

                &.meeting_info_options,
                &.meeting_booking_info_options {
                    a::before {
                        content: "\f235";
                    }
                }
            }
        }
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.jitsi-preview-people-mock {
    font-size: 0;
    margin: -3px;
    text-align: center;
    display: none;

    >div {
        margin: 3px;
        width: calc(33.333333% - 6px);
        display: inline-block;
        vertical-align: middle;

        >div {
            height: 0;
            padding-top: 56.5%;
            background-size: cover;
        }
    }
}

.jitsi-preview-message {
    color: white;
    font-size: 20px;
    text-align: center;
    display: none;
}

#meeting-ui-preview {
    width: 580px;
    max-width: calc(50% - 30px);
    margin-left: 30px;
    background-color: #1c2025;
    padding: 64px;
    display: inline-block;
    vertical-align: top;

    &.preview-success {
        .jitsi-preview-people-mock {
            display: block;
        }

        .jitsi-preview-loader {
            display: none;
        }
    }

    &.preview-error {
        .jitsi-preview-loader {
            display: none;
        }

        .jitsi-preview-message {
            display: block;
        }
    }

    &.preview-block {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
}

.mce-toolbar .mce-i-dashicons {
    font-family: dashicons !important;
    font-size: 24px !important;
    width: auto !important;
    line-height: 20px !important;
}

.jitsi-pro-admin-avatar {
    position: relative;

    .jitsi-icon {
        position: absolute;
        text-align: center;

        svg {
            vertical-align: middle;
            margin: 0;
        }

        &.icon-gsm-bars {
            background-color: #f1ad33;
            display: inline-block;
            line-height: 12px;
            min-width: 12px;
            border-radius: 12px;
            top: 2px;
            left: 2px;
        }
    }
}

.jitsi-pro-admin-avatar-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 22px;
    overflow: hidden;
    background-size: cover;
}

.embed-on-list {
    list-style: none;
    margin: 0;

    li {
        margin: 0;
    }
}

.jitsi-shortcode-copy {
    position: relative;

    input {
        position: absolute;
        opacity: 0;
        height: 0;
        z-index: -1;
    }
}

.jitsi-shortcode-copied {
    position: fixed;
    top: 40px;
    background-color: #1d2327;
    color: white;
    line-height: 24px;
    padding: 10px 15px;
    width: 340px;
    max-width: calc(100% - 30px);
    text-align: center;
    border-radius: 3px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;

    &.fade-in {
        opacity: 1;
        visibility: visible;
    }
}

.jitsi-copy-sc {
    border: none;
    background-color: transparent;
    cursor: pointer;
    vertical-align: middle;

    * {
        pointer-events: none;
    }

    svg {
        width: 20px;
        height: 20px;
    }
}

.jitsi-meet-welcome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    min-height: 100vh;
    background-color: #f0f0f1;
    z-index: 10000;

    .jitsi-meet-welcome-content {
        position: relative;
        padding: 100px 0;
        width: 928px;
        text-align: center;
        margin: 0 auto;
    }

    .jitsi-welcome-option-form {
        display: block;
        background-color: #f5f8ff;
        width: 100%;
        margin-top: 25px;
        padding: 45px 75px 120px;
        box-sizing: border-box;

        .wc-title {
            margin: 0 0 10px;
            font-size: 36px;
            font-weight: 800;
        }

        .wc-text {
            margin: 0 auto 32px;
            max-width: 370px;
        }

        p.submit {
            text-align: right;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        tr {

            td,
            th {
                display: block !important;
                padding: 0 !important;
            }

            &:first-child {
                th {
                    display: none !important;
                }

                td {
                    display: block !important;
                    padding: 0 !important;
                    margin-bottom: 25px;
                }
            }

            +tr {
                th {
                    margin-top: 20px;
                    float: left;
                }

                td {
                    margin-top: 15px;
                    float: left;
                    width: calc(100% - 200px);
                }

                &:after {
                    content: '';
                    display: table;
                    clear: both;
                }
            }
        }
    }

    .jitsi-welcome-video {
        margin-top: 60px;

        .jitsi-welcome-video-title {
            font-size: 30px;
            font-weight: 800;
            text-align: left;
            margin: 0 0 20px;
        }
    }

    .wp-core-ui & {
        .button-primary {
            background: #2271B1;
            border-radius: 4px;
            font-family: 'Nunito', sans-serif;
            font-weight: 600;
            line-height: 48px;
            padding: 0 48px;
        }

        .button-secondary {
            border-radius: 4px;
            font-family: 'Nunito', sans-serif;
            font-weight: 600;
            line-height: 48px;
            padding: 0 48px;
            margin-right: 20px;
        }
    }
}

// Addon scss
.jitsi-wrap-add-ons {
    margin: 20px;

    .jitsi-add-ons-wrapper {
        width: 100%;

        .top {
            margin-bottom: 30px;

            h3 {
                font-weight: 600;
                font-size: 30px;
                margin: 0;
            }

            p {
                font-size: 16px;
                font-weight: 600;
                color: #645f5fdd;
                line-height: 1.4;
                margin-top: 10px;
            }
        }

        .addons-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            
            @media (max-width: 1024px) {
                grid-template-columns: repeat(2, 1fr);
            }
            
            @media (max-width: 768px) {
                grid-template-columns: 1fr;
            }
        }

        .addon-card {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s, box-shadow 0.2s;
            display: flex;
            flex-direction: column;
            
            &:hover {
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            }

            .addon-content {
                padding: 20px;
                flex-grow: 1;

                .bottom-top {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 20px;

                    .icon img {
                        width: 100px;
                        height: 60px;
                        object-fit: contain;
                    }

                    a {
                        color: #5e6d7ae3;
                        transition: color 0.2s;
                        display: flex;
                        align-items: center;

                        &:hover {
                            color: #0376da;
                        }

                        &:focus {
                            outline: none;
                            box-shadow: none;
                        }
                    }
                }

                .jitsi-bottom-footer {
                    h3 {
                        font-size: 20px;
                        font-weight: 700;
                        margin-bottom: 12px;
                        color: #333;
                    }
                
                    p {
                        color: #555;
                        font-weight: 500;
                        font-size: 14px;
                        line-height: 1.5;
                        margin-bottom: 12px;
                    }
                
                    .jitsi-shortcode-wrapper {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        margin-bottom: 15px;
                
                        .jitsi-copy-input {
                            border: 1px solid #ccc;
                            padding: 8px;
                            font-size: 14px;
                            width: 220px;
                            background: #f9f9f9;
                            color: #333;
                            text-align: center;
                            border-radius: 4px;
                            cursor: pointer;
                
                            &:focus {
                                outline: none;
                                border-color: #007cba;
                            }
                        }
                
                        .jitsi-copy-button {
                            background: #0376da;
                            color: #fff;
                            border: none;
                            padding: 8px 12px;
                            font-size: 14px;
                            font-weight: 600;
                            cursor: pointer;
                            border-radius: 4px;
                            transition: background 0.2s, color 0.2s;
                
                            &:hover {
                                background: #007cba;
                            }
                
                            &.copied {
                                background: #aaa !important;
                                color: #fff;
                            }
                        }
                    }
                
                    a {
                        display: inline-flex;
                        align-items: center;
                        text-decoration: none;
                        font-size: 14px;
                        font-weight: 600;
                        color: #0376da;
                
                        .dashicons {
                            margin-left: 5px;
                            transition: transform 0.2s;
                        }
                
                        &:hover {
                            color: #007cba;
                            .dashicons {
                                transform: translateX(3px);
                            }
                        }
                    }

                    a.config{
                        .dashicons {
                            margin-left: 0;
                            margin-right: 5px;
                            transition: none;
                        }

                        &:hover {
                            color: #007cba;
                            .dashicons {
                                transform: none;
                            }
                        }
                    }
                }
                
                
            }

            .switcher-card, .free-switcher-card {
                padding: 15px 20px;
                background: #fff;
                border-top: 1px solid #eee;
                margin-top: auto;
                border-radius: 0px 0px 8px 8px;

                .switcher-wrapper {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    .sc-wrapper{
                        display: flex;
                        align-items: center;
                        .jitsi-addon-config{
                            margin-right: 10px;
                            font-size: 16px;
                            color: #0376da;
                            cursor: pointer;
                            font-weight: 600;
                        }
                    }

                    .status {
                        padding: 5px 0;
                        font-weight: 700;
                        color: #747474d1;
                        font-size: 16px;

                        &.update-color {
                            color: #07C175;
                        }

                        &.fail-color {
                            color: red;
                        }
                    }

                    .button-switcher-wrapper {
                        display: flex;
                        align-items: center;
                        gap: 10px;

                        .jitsi-addon-update-available {
                            margin: 0;
                            height: 30px;
                            padding: 0 12px;
                            border-radius: 30px;
                            font-size: 14px;
                            font-weight: 600;
                            color: #04B86E;
                            border: 2px solid #60c79de8;
                            background: #fff;
                            cursor: pointer;
                            transition: all 0.2s;

                            &.updating {
                                cursor: not-allowed;
                            }

                            &.hover:hover {
                                background: #04B86E;
                                color: #fff;
                                border-color: #04B86E;
                            }
                        }

                        .jitsi-field-switcher, .jitsi-vendor-field-switcher{
                            position: relative;
                            display: inline-block;
                            width: 60px;
                            height: 30px;
                            border-radius: 15px;
                            background-color: #5e6d7ae3;
                            cursor: pointer;
                            transition: background-color 0.2s;

                            &.active {
                                background-color: #0376da;
                            }

                            &.disabled-switcher {
                                cursor: not-allowed;
                                opacity: 0.7;
                            }

                            input {
                                opacity: 0;
                                width: 0;
                                height: 0;
                            }

                            .switcher-round, .switchertwo-round {
                                position: absolute;
                                top: 2px;
                                left: 2px;
                                width: 26px;
                                height: 26px;
                                background-color: #fff;
                                border-radius: 50%;
                                transition: transform 0.2s;

                                &.checked {
                                    transform: translateX(30px);
                                }
                            }
                        }
                    }

                    .btn-wrapper {
                        .install {
                            padding: 8px 20px;
                            border-radius: 30px;
                            background: #fff;
                            color: #0376da;
                            border: 2px solid #0376da90;
                            font-weight: 700;
                            font-size: 14px;
                            cursor: pointer;
                            transition: all 0.2s;
                            position: relative;

                            &.install-hover:hover {
                                background: #0376da;
                                color: #fff;
                            }

                            &.start-install {
                                padding-right: 40px;
                                cursor: not-allowed;
                                background: #bbb5b52e;
                            }

                            .install-jitsi-loader {
                                position: absolute;
                                right: 10px;
                                top: 50%;
                                transform: translateY(-50%);
                            }
                        }
                    }
                }
            }
        }
    }
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


body.modal-active {
    overflow: hidden;
}

.wp-admin #jitsi_frontend_setting_popup {
    margin-top: -32px;
}

@media screen and (max-width: 782px) {
    #jitsi_frontend_setting_popup {
        .popup-content {
            padding: 20px;
        }
    }

    .wp-admin #jitsi_frontend_setting_popup {
        margin-top: -46px;
    }
}


.activate-jitsi-loader,
.install-jitsi-loader {
    &:after {
        content: " ";
        display: block;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 2px solid #a19f9f;
        border-color: #a19f9f transparent #a19f9f transparent;
        animation: lds-dual-ring 1.2s linear infinite;
    }
}

// Modal
.jitsi-multivendor-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .35);
    z-index: 100000;
    display: flex;
    animation: edit-post__fade-in-animation .2s ease-out 0s;
    animation-fill-mode: forwards;
    align-items: center;
    justify-content: center;

    .jitsi-multivendor-popup {
        background: linear-gradient(298.38deg, #F9F8FF -12.86%, #FFFEFF 33.14%, #FFFFFF 52.11%, #FFFEFF 69.41%, #FFF3FD 123.17%);
        border: 1px solid #EBE6EE;
        box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
        border-radius: 5px;
        position: relative;

        .modal_content {
            margin-top: 0;
            padding: 60px 50px 50px 50px;
            flex: 1;
            overflow: auto;
            width: 500px;
            .close_btn {
                position: absolute;
                right: 30px;
                top: 20px;
                height: 25px;
                width: 25px;
                display: inline-block;
                cursor: pointer;
                // transition: all 0.3s ease;
                transition: transform .3s ease-in-out;

                &:hover {
                    transform: rotate(180deg);
                }

                .bar {
                    height: 100%;
                    width: 2px;
                    background: #8d8c8c;
                    display: inline-block;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                }

                .bar.bar-1 {
                    transform: translate(-50%, -50%) rotate(45deg);
                }

                .bar.bar-2 {
                    transform: translate(-50%, -50%) rotate(-45deg);
                }

            }

            .activate-multivendor-content {
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                width: 100%;

                .bottom-content {
                    margin-top: 10px;

                    h1 {
                        font-weight: 700;
                        font-size: 20px;
                        line-height: 27px;
                        text-align: center;
                        color: #1E1E1E;
                    }

                    p {
                        font-weight: 400;
                        font-size: 14px;
                        text-align: center;
                        color: #5A5A5A;

                    }
                }

                .popup-btn-wrapper {
                    margin-top: 30px;
                    text-align: center;

                    .proceed-btn {
                        padding: 10px 38px 10px 15px;
                        position: relative;
                        cursor: pointer;
                        border-radius: 8px;
                        font-size: 14px;
                        border: 1px solid #0a47fec9;
                        background: #0a47fec9;
                        text-decoration: none;
                        color: #FFFFFF;
                        font-weight: 700;

                        &:focus {
                            outline: none;
                            box-shadow: none;
                        }

                        &:hover {
                            background: #0a47fe;
                            border-color: #0a47fe;
                        }

                        span {
                            position: absolute;
                            right: 7%;
                            top: 28%;
                        }
                    }
                }
            }

        }
    }
}

.jitsi-multivendor-disable-modal, .jitsi-frontend-disable-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .35);
    z-index: 100000;
    display: flex;
    animation: edit-post__fade-in-animation .2s ease-out 0s;
    animation-fill-mode: forwards;
    align-items: center;
    justify-content: center;

    .jitsi-disable-multivendor-popup , .jitsi-disable-frontend-popup{
        background: linear-gradient(298.38deg, #F9F8FF -12.86%, #FFFEFF 33.14%, #FFFFFF 52.11%, #FFFEFF 69.41%, #FFF3FD 123.17%);
        border: 1px solid #EBE6EE;
        box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
        border-radius: 5px;
        position: relative;

        .modal_content {
            margin-top: 0;
            padding: 40px 30px 30px 30px;
            flex: 1;
            overflow: auto;
            width: 500px;

            .close_btn {
                position: absolute;
                right: 15px;
                top: 10px;
                height: 25px;
                width: 25px;
                display: inline-block;
                cursor: pointer;
                // transition: all 0.3s ease;
                transition: transform .3s ease-in-out;

                &:hover {
                    transform: rotate(180deg);
                }

                .bar {
                    height: 100%;
                    width: 2px;
                    background: #8d8c8c;
                    display: inline-block;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                }

                .bar.bar-1 {
                    transform: translate(-50%, -50%) rotate(45deg);
                }

                .bar.bar-2 {
                    transform: translate(-50%, -50%) rotate(-45deg);
                }

            }

            .activate-multivendor-content, .activate-frontend-content {
                display: flex;
                // align-items: center;
                justify-content: center;
                flex-direction: column;
                width: 100%;

                .header {
                    position: relative;

                    .heading-img {
                        position: absolute;
                        left: -15px;
                        bottom: 15%;
                    }

                    h1 {
                        font-weight: 700;
                        font-size: 20px;
                        text-align: left;
                        color: #1e1e1e;
                        margin-left: 2rem
                    }

                }

                .bottom-content {
                    margin-top: 10px;

                    p {
                        font-weight: 400;
                        font-size: 14px;
                        text-align: left;
                        color: #5A5A5A;
                        padding: 0;
                        margin: 0;

                    }
                }

                .popup-btn-wrapper {
                    margin-top: 30px;
                    text-align: right;

                    button {
                        cursor: pointer;
                        font-size: 14px;
                        border-radius: 5px;
                        font-size: 14px;
                    }

                    .cancel-btn {
                        width: 86px;
                        height: 35px;
                        margin-right: 15px;
                        background: #dadada;
                        color: #333333e6;
                        font-weight: 500;
                        border: 1px solid #dadada;

                        &:focus {
                            outline: none;
                            box-shadow: none;
                        }

                        &:hover {
                            background: #9b98988c;
                            border-color: #9b98988c;
                        }
                    }

                    .proceed-btn {
                        width: 130px;
                        height: 35px;
                        border: 1px solid #FC4486;
                        background: #FC4486;
                        color: #FFFFFF;
                        font-weight: 700;

                        &:focus {
                            outline: none;
                            box-shadow: none;
                        }

                        &:hover {
                            background-color: #f81868;
                            border-color: #f81868;
                        }

                    }
                }
            }

        }
    }
}

.jitsi-meet-add-ons-admin-menu {
    display: flex;
    align-items: justify-between;
    gap: 5px;
}

.jitsi-meet-add-ons-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 1.6px 6px;
    border-radius: 50px;
    /* background: #f5621d; */
    color: white;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(180deg, #EE5913 0%, #FF6F2C 100%);

    svg {
        width: 11px;
        height: 11px;
        fill: currentColor;
    }
}

#jitsi_opt_free_domain{
    border-radius: 5px;
    height: 35px;
    width: 135px;
}

.jisti-admin-tab-links {
    font-size: 0;
    display: block;
    border-bottom: 1px solid #dddddd;

    a {
        display: inline-block;
        font-size: 16px;
        text-align: center;
        padding: 16px;
        text-decoration: none;
        font-weight: 700;
        color: #999999;
        background-color: #f1f1f1;
        border: 1px solid #dddddd;
        margin: 0 -1px -1px 0;
        min-width: 150px;

        svg {
            fill: #999999;
            width: 48px;
            height: 48px;
            display: block;
            margin: 0 auto 10px;
        }

        &:focus {
            outline: none;
            box-shadow: none;
        }

        &.active-jitsi-tab-link {
            color: #3a3a3a;
            background-color: white;
            border-bottom-color: white;

            svg {
                fill: #3a3a3a;
            }
        }
    }
}

.jisti-admin-box {
    background-color: white;
    padding: 35px 0 0;
    border-radius: 2px;
    overflow: hidden;

    .jitsi-tab {
        display: none;

        &.active-jitsi-tab {
            display: block;
        }
    }
}

.toplevel_page_jitsi-meet,
.jitsi-meet_page_jitsi-pro-settings {
    div.updated {
        margin: 20px 20px 20px 0;
    }

    .jitsi-video {
        margin-bottom: 50px;
        position: relative;
        max-width: 700px;
        height: 0;
        padding-top: 394px;

        iframe {
            max-width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    }

    .jitsi-wrap {
        .title {
            font-size: 35px;
            font-weight: 600;
            margin-bottom: 24px;
            line-height: 50px;

            span {
                display: inline-block;
                vertical-align: middle;
            }

            svg {
                display: inline-block;
                vertical-align: middle;
            }
        }

        h4 {
            font-size: 32px;
            font-weight: 700;
        }

        .text-docs {
            font-size: 16px;

            h4 {
                margin: 0;
            }

            p {
                margin-bottom: 35px;
                font-size: 18px;
                font-weight: 700;
            }

            ul {
                list-style: initial;
                padding-left: 18px;

                ul {
                    margin-top: 25px;

                    li {
                        +li {
                            margin-top: 10px;
                        }
                    }
                }
            }

            li {
                +li {
                    margin-top: 35px;
                }

                span {
                    display: block;
                    font-weight: 500;
                    font-size: 18px;
                }
            }

            img {
                margin-top: 15px;
                display: block;
                max-width: 700px;
            }
        }

        #setup-jitsi-shortcode {
            .text-docs {
                ul {
                    li {
                        +li {
                            margin-top: 10px;
                        }
                    }
                }
            }
        }
    }
}
.jitsi-pre {
    position: relative;
    padding-bottom: 16px;

    code {
        padding: 15px;
    }

    .inline-copy-message {
        position: absolute;
        bottom: 0;
        left: 0;
        font-size: 13px;
        color: #888888;
    }
}

.floating-snackbar {
    position: fixed;
    top: 50px;
    right: 20px;
    background-color: #1c2025;
    color: white;
    line-height: 1;
    font-size: 16px;
    padding: 16px 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);

    &.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}