/* ************************************************************/
@import url('library.css');


.icon-btn-op-default {
    color: var(--mu-page-card-btn-text) !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -ms-appearance: none !important;
    -o-appearance: none !important;
    font-size: 12px !important;
    background-color: var(--mu-page-card-btn-background) !important;
    font-weight: 600 !important;
}

.icon-btn-op-default:hover {
    background-color: var(--mu-page-card-btn-background-hover) !important;
    color: var(--mu-page-card-btn-hover-text) !important;
    border: var(--mu-page-card-btn-border-hover);
}

/* Custom Search Select Dropdown UI/UX Enhancement */
.dropdown-menu-search-select {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
}

.template-option-item,
.group-option-item,
.drip-option-item {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
}

.template-option-item:hover,
.group-option-item:hover,
.drip-option-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.template-option-item.active-template-option,
.group-option-item.active-group-option,
.drip-option-item.active-drip-option {
    background-color: #f0fdf4 !important;
    color: var(--color-exp-UIu) !important;
    font-weight: 600 !important;
}

.template-option-item.active-template-option:hover,
.group-option-item.active-group-option:hover,
.drip-option-item.active-drip-option:hover {
    background-color: #dcfce7 !important;
    color: var(--color-exp-UIu) !important;
}

.border-dashed-bottom {
    border-bottom: 2px dashed #e2e8f0;
}
.mn-input {
    width: 100% !important;
    height: 42px !important;
    padding: 10px 16px !important;
    font-family: var(--font-primary) !important; 
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--input-text-color) !important;
    background-color: var(--input-background) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 8px !important; 
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: all 0.15s ease !important;
}

/* Custom Textarea Dynamic Height Shield */
textarea.mn-input {
    height: auto !important;
    min-height: 100px !important;
    resize: vertical !important;
}

/* Meta WhatsApp Template Message Editor Box & Toolbar Architecture */
.mn-editor-box {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.mn-editor-box:hover {
    border-color: #cbd5e1 !important;
}

.mn-editor-box:focus-within {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 1px #0f172a !important;
    outline: none !important;
}

.mn-editor-toolbar {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top-left-radius: 7px !important;
    border-top-right-radius: 7px !important;
    padding: 6px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
}

.mn-editor-tool-group {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    position: relative !important;
}

.mn-editor-tool-btn {
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #334155 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    min-width: 34px !important;
}

.mn-editor-tool-btn:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.mn-editor-tool-btn-primary {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.mn-editor-tool-btn-primary:hover {
    background-color: #f1f5f9 !important;
    border-color: #0f172a !important;
}

.mn-editor-divider {
    width: 1px !important;
    height: 18px !important;
    background-color: #cbd5e1 !important;
    margin: 0 4px !important;
}

/* Custom Variable Badge Pill for Description Headers */
.mn-variable-badge {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    line-height: 1.3 !important;
    vertical-align: baseline !important;
}

.mn-editor-textarea {
    border: none !important;
    border-top: none !important;
    border-radius: 0 0 7px 7px !important;
    padding: 14px 16px !important;
    background-color: #ffffff !important;
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #0f172a !important;
    resize: vertical !important;
    min-height: 130px !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    display: block !important;
}

.mn-editor-textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: #ffffff !important;
}

.mn-policy-banner {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-family: var(--font-primary) !important;
    margin-top: 8px !important;
}

.mn-policy-banner-info {
    background-color: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
}

.mn-policy-banner-warning {
    background-color: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #b45309 !important;
}

.mn-policy-banner-danger {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #b91c1c !important;
}

/* Emoji Panel Group Popover Styling */
.mn-emoji-popover {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    z-index: 1070 !important;
}

.mn-emoji-item {
    font-size: 18px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.12s ease-in-out, transform 0.1s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
}

.mn-emoji-item:hover {
    background-color: #f1f5f9 !important;
    transform: scale(1.25) !important;
}

/* Custom Dropdown Chevron Arrow for Select elements using mn-input */
select.mn-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px 12px !important;
    padding-right: 40px !important;
}


/* Google Focus & Hover Micro-Interactions */
.mn-input:hover {
    border-color: var(--input-border-hover) !important;
}
.mn-input:focus {
    border-color: var(--input-focus-border) !important; /* Unified Brand Green */
    background-color: var(--input-background) !important;
    box-shadow: var(--input-focus-shadow) !important; /* Translucent elegant focus ring */
}
.mn-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Rigid Layout Lock for the new Custom Input Group Rows */
.mn-input-group {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    position: relative !important;
}

/* Ensure flex items grow correctly */
.mn-input-group > .mn-input {
    flex: 1 1 auto !important;
    width: 1% !important;
}

/* Default styling for group texts and buttons inside groups */
.mn-input-group-text {
    border: 1.5px solid var(--input-border);
    border-radius: 8px;
    background-color: #f8fafc;
    padding: 0 16px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--body-text-color);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.mn-input-group > .mn-input-group-text,
.mn-input-group > .btn {
    border: 1.5px solid var(--input-border) !important;
    background-color: #f8fafc !important;
    padding: 0 16px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
}

/* Handle borders overlap to prevent double borders */
.mn-input-group > *:not(:first-child) {
    margin-left: -1.5px !important;
}

/* Rounding corners dynamically based on child position */

/* 1. Elements that are NOT the last child get flat right corners */
.mn-input-group > *:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* 2. Elements that are NOT the first child get flat left corners */
.mn-input-group > *:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}


/* 3. Focus state z-index override to show focus ring on top */
.mn-input-group > *:focus,
.mn-input-group > *:focus-within {
    z-index: 3 !important;
}

/* Merged / Unified Input Group Engine to prevent double borders and handle focus globally */
.mn-input-group:has(.border-end-0),
.mn-input-group:has(.border-start-0),
.mn-input-group-merged {
    border: 1.5px solid var(--input-border) !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
}

.mn-input-group:has(.country-code-picker),
.mn-input-group:has(.country-flag-select-wrapper) {
    overflow: visible !important;
}

/* Modal Overflow Override for Popups */
#profileModal .mn-modal-content,
#profileModal .mn-modal-content > form,
#profileModal .mn-modal-body,
.mn-modal:has(.country-code-picker) .mn-modal-content,
.mn-modal:has(.country-code-picker) .mn-modal-body {
    overflow: visible !important;
}

/* Country Picker Custom Dropdown Styling */
.country-code-picker {
    overflow: visible !important;
}

.country-picker-dropdown {
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
    border: 1.5px solid #e2e8f0 !important;
}

.country-options-list::-webkit-scrollbar {
    width: 5px !important;
}
.country-options-list::-webkit-scrollbar-track {
    background: transparent !important;
}
.country-options-list::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}
.country-options-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.country-option-item {
    transition: background-color 0.12s ease, color 0.12s ease !important;
}
.country-option-item:hover {
    background-color: #f1f5f9 !important;
}
.country-option-item.active {
    background-color: #f0fdf4 !important;
}


/* When any child inside the merged group gets focus, apply the focus ring to the wrapper group */
.mn-input-group:has(.border-end-0):focus-within,
.mn-input-group:has(.border-start-0):focus-within,
.mn-input-group-merged:focus-within {
    border-color: #095F3E !important;
    box-shadow: 0 0 0 4px rgba(9, 95, 62, 0.08) !important;
}

/* Remove all internal borders and background colors from children */
.mn-input-group:has(.border-end-0) > *,
.mn-input-group:has(.border-start-0) > *,
.mn-input-group-merged > * {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Specific margins and paddings for text / icon wrappers */
.mn-input-group:has(.border-end-0) > .mn-input-group-text,
.mn-input-group:has(.border-start-0) > .mn-input-group-text,
.mn-input-group-merged > .mn-input-group-text {
    padding-left: 12px !important;
    padding-right: 8px !important;
    color: #64748b !important;
    background-color: transparent !important;
}

/* Specific layout adjustments for inputs inside merged groups */
.mn-input-group:has(.border-end-0) > .mn-input,
.mn-input-group:has(.border-start-0) > .mn-input,
.mn-input-group-merged > .mn-input {
    padding-left: 4px !important;
    background-color: transparent !important;
}


/* ==========================================================================
   3. ROCK-SOLID CUSTOM CHECKBOX ENGINE
   -------------------------------------------------------------------------- */
/* Standard Square Checkboxes ONLY (Excludes switches) */
input[type="checkbox"]:not(.form-switch *):not(.form-switch),
.form-check:not(.form-switch) .form-check-input[type="checkbox"],
.mn-data-table .form-check:not(.form-switch) .form-check-input,
.mn-data-table .mn-checkbox {
    all: unset !important; /* Completely destroys native browser and Bootstrap style layers */
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #0F172A !important;
    border-radius: 4px !important;
    background-color: #FFFFFF !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    transition: all 0.15s ease-in-out !important;
}

input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked,
.form-check:not(.form-switch) .form-check-input[type="checkbox"]:checked,
.mn-data-table .form-check:not(.form-switch) .form-check-input:checked,
.mn-data-table .mn-checkbox:checked {
    background-color: #FFFFFF !important;
    border-color: #0F172A !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    background-size: 85% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

input[type="checkbox"]:not(.form-switch *):not(.form-switch):focus-visible {
    box-shadow: 0 0 0 3px rgba(9, 95, 62, 0.15) !important;
}

/* Custom interactive input elements */
.custom-input:focus {
    border-color: var(--input-focus-border) !important;
    box-shadow: 0 0 0 3px var(--input-focus-shadow) !important;
    outline: none;
}

/* ==========================================================================
   UNIVERSAL HIGH-FIDELITY TOGGLE SWITCH (.form-switch)
   Strict compliance with Munnottu Minimalist SaaS Design System
   ========================================================================== */
.form-switch {
    display: inline-flex !important;
    align-items: center !important;
    padding-left: 0 !important;
    margin: 0 !important;
    min-height: 20px !important;
}

.form-switch .form-check-input,
input[type="checkbox"].form-check-input:is(.form-switch *),
.form-switch input[type="checkbox"] {
    all: unset !important;
    width: 36px !important;
    height: 20px !important;
    min-width: 36px !important;
    min-height: 20px !important;
    max-width: 36px !important;
    max-height: 20px !important;
    display: inline-flex !important;
    position: relative !important;
    background-color: #CBD5E1 !important; /* Soft Slate-300 when OFF */
    border-radius: 9999px !important;
    border: 1px solid #CBD5E1 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    background-image: none !important; /* Strictly purge any checkmark SVG */
    box-shadow: none !important;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Sliding Circular White Knob / Thumb */
.form-switch .form-check-input::after,
.form-switch input[type="checkbox"]::after {
    content: "" !important;
    position: absolute !important;
    top: 1px !important;
    left: 1px !important;
    width: 16px !important;
    height: 16px !important;
    background-color: #FFFFFF !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2) !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
}

/* ACTIVE / CHECKED (ON) STATE */
.form-switch .form-check-input:checked,
input[type="checkbox"].form-check-input:is(.form-switch *):checked,
.form-switch input[type="checkbox"]:checked {
    background-color: #0F172A !important; /* Solid Slate-900 / Black when ON */
    border-color: #0F172A !important;
    background-image: none !important; /* NEVER display checkmark SVG */
}

/* Slide Knob to Right */
.form-switch .form-check-input:checked::after,
.form-switch input[type="checkbox"]:checked::after {
    transform: translateX(16px) !important;
    background-color: #FFFFFF !important;
}

/* Focus Visibility Ring */
.form-switch .form-check-input:focus-visible,
.form-switch input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.15) !important;
}

/* Disabled Switch State */
.form-switch .form-check-input:disabled,
.form-switch input[type="checkbox"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Date and Time calendar icons brand coloration */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(24%) sepia(90%) saturate(600%) hue-rotate(115deg) brightness(90%) contrast(98%) !important; /* Brand green #095F3E filter from black */
    cursor: pointer !important;
}

*::-moz-selection {
  background: var(--black);
  color: var(--white);
  text-shadow: none;
}

::-moz-selection {
  background: var(--black);
  color: var(--white);
  text-shadow: none;
}

::selection {
  background: var(--black);
  color: var(--white);
  text-shadow: none;
}

*::-moz-placeholder {
  color: var(--black);
  font-size: 14px;
  opacity: 1;
}

*::placeholder {
  color: var(--black);
  font-size: 14px;
  opacity: 1;
}


/* 3. Luxury Layout Cards & Modals */
.card,
.premium-card,
.luxury-card {
    background: #ffffffa6;
    border: 1.5px solid var(--gray-200) !important;
    border-radius: 12px !important;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important; */
    /* transition: all 0.2s ease-in-out; */
}
.card:hover,
.premium-card:hover,
.luxury-card:hover {
    /* transform: translateY(-1px); */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important; */
}
.modal-content {
    border-radius: 16px !important;
    /* border: 1px solid var(--gray-200) !important; */
    /* box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important; */
}


/* Modern Card & Panel Utilities (Mockup-style Cards) */
.premium-card {
    background: #ffffff;
    border: none !important;
    border-radius: 16px !important;
    /* box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02) !important; */
    /* transition: all 0.2s ease-in-out; */
}

/* .premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05) !important;
} */

.modern-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.modern-card-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--dark);
    margin: 0;
}

.modern-card-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.modern-card-action:hover {
    background-color: #e2e8f0;
    color: var(--dark);
    transform: scale(1.05);
}

.modern-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-card-item {
    background-color: #f3f4f6;
    border-radius: 20px !important;
    padding: px 37px !important;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: none !important;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.modern-card-item:hover {
    background-color: #e5e7eb !important;
    transform: translateY(-1px);
}

.modern-card-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1.5px solid #121824; /* Solid fine black line icon wrapper border */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #121824;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.modern-card-item:hover .modern-card-item-icon {
    background-color: #121824;
    color: #ffffff;
}

.modern-card-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modern-card-item-title {
    font-family: var(--font-primary);
    font-size: 14.5px;
    font-weight: var(--font-weight-semibold);
    color: #121824;
    margin: 0;
    line-height: 1.4;
}

.modern-card-item-subtitle {
    font-family: var(--font-primary);
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

/* Customized scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Active sidebar custom look */
.sidebar-wrapper .sidebar-list.active {
    background-color: var(--primary-light) !important;
    border-radius: 12px !important;
}

.sidebar-wrapper .sidebar-list.active .sidebar-link {
    color: var(--primary) !important;
    font-weight: 600 !important;
}


/* Progress check list animations */
.step-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Custom badges */
.badge-light-success {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

.badge-light-primary {
    background-color: #e0f2fe;
    color: #0284c7;
    font-weight: var(--font-weight-semibold);
}

.badge-light-warning {
    background-color: #fef3c7;
    color: #d97706;
    font-weight: var(--font-weight-semibold);
}

.badge-light-danger {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: var(--font-weight-semibold);
}

/* Micro-animations */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .8; transform: scale(1.02); }
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite ease-in-out;
}

/* WhatsApp connect tabs */
#whatsappConnectTabs .nav-link {
    color: var(--gray-700);
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease-in-out;
}
#whatsappConnectTabs .nav-link:hover {
    color: var(--primary);
    background-color: var(--gray-50);
}
#whatsappConnectTabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
    background-color: transparent !important;
}

/* Custom Premium Toasts */
.custom-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.custom-toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}
.custom-toast.show {
    transform: translateX(0);
}
.custom-toast.success {
    border-left-color: var(--primary);
}
.custom-toast.danger {
    border-left-color: #dc2626;
}
.custom-toast.warning {
    border-left-color: #d97706;
}
.custom-toast-icon {
    font-size: 18px;
}
.custom-toast.success .custom-toast-icon {
    color: var(--primary);
}
.custom-toast.danger .custom-toast-icon {
    color: #dc2626;
}
.custom-toast.warning .custom-toast-icon {
    color: #d97706;
}
.custom-toast-message {
    color: var(--dark);
    font-weight: var(--font-weight-medium);
    font-size: 13.5px;
    font-family: var(--font-primary);
}

/* ==========================================
   1. LAYOUT, SIDEBAR, & HEADER (header.php)
   ========================================== */
.sidebar-wrapper {
    width: var(--sidebar-width);
    background: #ffffff;
    height: 100vh;
    border-right: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.main-content {
    margin-left: var(--sidebar-width);
    height: calc(100vh - 60px);
    margin-top: 60px;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.main-content-inner {
    flex-grow: 1;
    overflow-y: auto;
    background: #adadad29;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

/* --- New Desktop Header Navbar --- */
.desktop-header-navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 60px;
    background-color: #ffffff;
    border-bottom: none;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Force dark text and elements on white navbar */
.desktop-header-navbar .logo-brand-text span {
    color: #0f172a !important;
}
.desktop-header-navbar .logo-brand-text span.text-success {
    color: #10b981 !important;
}
.desktop-header-navbar .sidebar-toggle-btn {
    color: #64748b !important;
}
.desktop-header-navbar .sidebar-toggle-btn:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}
.desktop-header-navbar .btn-link i {
    color: #475569 !important;
}
.desktop-header-navbar .btn-link:hover i {
    color: #0f172a !important;
}

/* Navbar Search Input Redesign (Exact Pill Style System) */
.navbar-search-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    max-width: 400px;
}
@media (max-width: 1200px) {
    .navbar-search-container {
        width: 250px;
    }
}
.navbar-search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.navbar-search-input {
    width: 100% !important;
    height: 38px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    border-radius: 9999px !important;
    padding-left: 40px !important;
    padding-right: 76px !important;
    font-family: var(--font-primary)!important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 38px !important;
    transition: all 0.15s ease-in-out !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
}
.navbar-search-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}
.navbar-search-wrapper:hover .navbar-search-input,
.navbar-search-input:focus {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}
.navbar-search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
    transition: color 0.15s ease !important;
}
.navbar-search-wrapper:hover .navbar-search-icon {
    color: #64748b !important;
}
.navbar-search-shortcuts {
    position: absolute !important;
    right: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    pointer-events: none !important;
}
.navbar-shortcut-key {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 5px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    color: #64748b !important;
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02) !important;
}

/* Alerts / Notifications Dropdown */
.alerts-dropdown-menu {
    width: 360px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}
.alerts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.alerts-title {
    font-weight: var(--font-weight-bold);
    font-size: 14.5px;
    color: #0f172a;
    margin: 0;
}
.alerts-actions {
    display: flex;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
}
.alerts-actions i {
    cursor: pointer;
    transition: color 0.2s;
}
.alerts-actions i:hover {
    color: #0f172a;
}
.alerts-list {
    max-height: 280px;
    overflow-y: auto;
}
.alert-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    transition: background-color 0.2s;
    text-decoration: none;
}
.alert-item:hover {
    background-color: #f8fafc;
}
/* .alert-unread-dot {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
} */
.alert-content {
    flex-grow: 1;
}
.alert-meta {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}
.alert-text-title {
    font-weight: var(--font-weight-semibold);
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 3px;
    line-height: 1.3;
}
.alert-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    margin: 0;
}
.alerts-footer {
    padding: 10px 16px;
    background-color: #f8fafc;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
}

/* User & Tenant Profile Dropdown */
.profile-dropdown-menu {
    width: 290px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    padding: 12px 0;
}
.store-list-section {
    padding: 4px 12px;
}
.store-list-heading {
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px 8px 8px;
    margin: 0;
}
.store-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}
.store-item:hover {
    background-color: #f8fafc;
}
.store-item.active {
    background-color: #e8f7f0;
    color: var(--color-exp-UIu);
    font-weight: var(--font-weight-semibold);
}
.store-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.store-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 12px;
    transition: all 0.2s ease;
}
.store-item.active .store-avatar {
    background-color: var(--color-exp-UIu);
    color: #ffffff;
}
.store-name {
    font-size: 13.5px;
}
.create-store-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #64748b;
    font-size: 13.5px;
    transition: all 0.2s ease;
}
.create-store-link:hover {
    background-color: #f8fafc;
    color: #0f172a;
}
.profile-info-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
}
.profile-avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e8f7f0;
    color: var(--color-exp-UIu);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    border: 1px solid rgba(9, 95, 62, 0.1);
}
.profile-details {
    line-height: 1.3;
    overflow: hidden;
}
.profile-name {
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}
.profile-email {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}
.profile-logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: #ef4444;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    transition: all 0.2s ease;
}
.profile-logout-link:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* Fixed positioning for bottom-bar wrapper layout on mobile headers */
@media (max-width: 991.98px) {
    .desktop-header-navbar {
        display: none !important;
    }
    .sidebar-wrapper {
        top: 0 !important;
        height: 100vh !important;
    }
}
.nav-item-link,
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 10.5px !important;
    height: 38px !important;
    color: #1f1f1f; /* Gemini dark color */
    text-decoration: none;
    border-radius: 50px; /* Gemini pills */
    margin: 3px 12px;
    font-weight: 500 !important;
    transition: background-color 0.2s ease, color 0.2s ease, gap 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding-right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 13.5px;
    font-family: var(--font-primary) !important;
    letter-spacing: 0.1px;
    width: calc(100% - 24px) !important;
}
/* Enforce Premium Shading when a sidebar item is Active */
.sidebar-menu li a.active,
.sidebar-menu li button.active,
.sidebar-list a.active,
.sidebar-list button.active,
.nav-item-link.active {
    background-color: var(--sidebar-active-bg) !important; /* Premium light yellow-green accent background */
    color: var(--sidebar-active-text) !important; /* High-contrast dark text color for readability */
    font-weight: 600 !important;
}

/* Ensure the SVG icon inside the active button inherits the dark color state */
.sidebar-menu li a.active .sidebar-icon-svg,
.sidebar-menu li button.active .sidebar-icon-svg,
.sidebar-menu li a.active .material-symbols-rounded,
.sidebar-menu li button.active .material-symbols-rounded,
.nav-item-link.active .sidebar-icon-svg,
.nav-item-link.active .material-symbols-rounded {
    color: #18181a !important;
    fill: #18181a !important;
}

/* Smooth Hover Track Feedback for inactive elements */
.sidebar-menu li a:not(.active):hover,
.sidebar-menu li button:not(.active):hover,
.sidebar-list a:not(.active):hover,
.sidebar-list button:not(.active):hover,
.nav-item-link:not(.active):hover {
    background-color: #e5e5e5 !important; /* Soft brand green translucent tint */
    color: #000000 !important; /* Brand green text pop */
}

.sidebar-menu li a:not(.active):hover .sidebar-icon-svg,
.sidebar-menu li button:not(.active):hover .sidebar-icon-svg,
.nav-item-link:not(.active):hover .sidebar-icon-svg {
    color: #000000 !important;
}
.nav-item-link .material-symbols-rounded,
.nav-item-link i,
.nav-item-link .sidebar-icon-svg,
.sidebar-menu li a .material-symbols-rounded,
.sidebar-menu li a i,
.sidebar-menu li a .sidebar-icon-svg {
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20 !important;
    margin-right: 0 !important;
    color: inherit;
    transition: color 0.2s ease !important;
}
.nav-item-link span:not(.material-symbols-rounded):not(.sidebar-icon-svg),
.sidebar-menu li a span:not(.material-symbols-rounded):not(.sidebar-icon-svg) {
    display: inline-block;
    max-width: 200px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.15s ease, max-width 0.15s ease;
}
.sidebar-wrapper .text-uppercase {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    padding-left: 28px !important;
    padding-bottom: 4px !important;
}

/* Mobile & Tablet Responsive Layout Rules */
@media (max-width: 991.98px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .sidebar-wrapper.show {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0,0,0,0.15);
    }
    .main-content {
        margin-left: 0 !important;
        height: calc(100vh - 60px);
        margin-top: 60px;
        padding: 0 !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: #ffffff;
    }
    .main-content-inner {
        padding: 16px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    .desktop-header {
        display: none !important;
    }
    .mobile-header-bar {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        z-index: 999;
        padding: 0 16px;
        align-items: center;
        justify-content: space-between;
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 998;
    }
    .sidebar-backdrop.show {
        display: block;
    }
}
@media (min-width: 992px) {
    .mobile-header-bar {
        display: none !important;
    }
    .sidebar-backdrop {
        display: none !important;
    }
}

/* ==========================================
   2. LEGAL PAGES (terms.php, privacy.php)
   ========================================== */
.navbar-brand-custom {
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand-custom:hover {
    color: var(--primary-hover);
}
.legal-header {
    background: linear-gradient(135deg, #095F3E 0%, #032917 100%);
    color: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 4rem 2rem;
}
.section-number {
    color: var(--primary);
    font-weight: var(--font-weight-bold);
    margin-right: 8px;
}
.badge-scope {
    background-color: #e2f5ec;
    color: var(--color-exp-UIu);
    font-family: var(--font-mono);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ==========================================
   3. CONTACTS & GROUPS (contacts.php, contact_groups.php)
   ========================================== */
.tab-pill-btn {
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    color: #0F172A;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    padding: 8px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}
.tab-pill-btn.active {
    background-color: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}
.tab-pill-btn:hover:not(.active) {
    background-color: #F1F5F9;
    color: #0F172A;
}
.badge-tag {
    background-color: #F1F5F9;
    color: #475569;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 4px;
    display: inline-block;
}

/* ==========================================
   4. TEAM DIRECTORY (team.php)
   ========================================== */
/* Tab Buttons & Action Bar Uniformity (Linear / ElevenLabs Pill System) */
.mn-tabs-pills-nav {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background-color: #F8FAFC !important;
    padding: 4px !important;
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    list-style: none !important;
}

.mn-tabs-pills-nav .nav-link,
.mn-tabs-pills-nav .nav-link-pill {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #475569 !important;
    border-radius: 8px !important;
    height: 36px !important;
    padding: 6px 14px !important;
    border: none !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.mn-tabs-pills-nav .nav-link.active,
.mn-tabs-pills-nav .nav-link-pill.active {
    background-color: #0F172A !important; /* Solid Black per screenshot reference & 2-button system */
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15) !important;
}

.mn-tabs-pills-nav .nav-link:hover:not(.active),
.mn-tabs-pills-nav .nav-link-pill:hover:not(.active) {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.mn-tabs-pills-nav .nav-link .badge,
.mn-tabs-pills-nav .nav-link-pill .badge {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 7px !important;
    border-radius: 9999px !important;
    transition: all 0.2s ease-in-out !important;
}

.mn-tabs-pills-nav .nav-link.active .badge,
.mn-tabs-pills-nav .nav-link-pill.active .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.role-badge {
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    padding: 4px 10px;
    border-radius: 20px;
}
.role-badge-owner { background-color: #E6F4EA; color: #095F3E; }
.role-badge-admin { background-color: #E0F2FE; color: #0369A1; }
.role-badge-manager { background-color: #FEF3C7; color: #D97706; }
.role-badge-agent { background-color: #F1F5F9; color: #475569; }

/* ==========================================
   5. SETTINGS PANEL (settings.php)
   ========================================== */
.settings-sidebar .nav-link {
    color: #475569;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
}
.settings-sidebar .nav-link:hover {
    background-color: #f8fafc;
    color: var(--primary);
}
.settings-sidebar .nav-link.active {
    background-color: #e8f7f0 !important;
    color: var(--primary) !important;
    font-weight: var(--font-weight-semibold);
    border-left-color: var(--primary);
}
.inbox-style-card {
    cursor: pointer;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}
.inbox-style-card:hover {
    border-color: #cbd5e1;
}
.inbox-style-card.selected {
    border-color: transparent !important;
    background-color: #F4F4F4 !important;
}
.toggle-switch {
    width: 44px;
    height: 24px;
}

/* ==========================================
   6. UNIFIED CHAT INBOX (inbox.php)
   ========================================== */
.filter-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 480px;
    overflow-y: auto;
}
.filter-section-title {
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 3px;
}
.filter-label {
    font-size: 12px;
    color: #334155;
    font-weight: var(--font-weight-medium);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.inbox-contact-item {
    border-radius: 12px !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 6px !important;
}
.inbox-contact-item:hover {
    background-color: #f8fafc !important;
}
.inbox-contact-item.active,
.inbox-contact-item.active:hover,
.inbox-contact-item.active:focus {
    background-color: #f0fdf4 !important;
    border: 1px solid rgba(9, 95, 62, 0.2) !important;
    border-left: 1px solid rgba(9, 95, 62, 0.2) !important;
    color: #0f172a !important;
}
.inbox-contact-item.active .text-dark,
.inbox-contact-item.active .fw-bold {
    color: var(--color-exp-UIu) !important;
}
.inbox-contact-item.active .text-muted,
.inbox-contact-item.active small,
.inbox-contact-item.active .text-xs {
    color: #475569 !important;
}
.badge-unread {
    color: #ffffff;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #059669;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    line-height: 1;
}

/* ==========================================
   7. FLOWS CANVAS BUILDER (flows.php)
   ========================================== */
.canvas-node {
    position: absolute;
    width: 300px;
    z-index: 10;
    cursor: move;
}
.port-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 100;
}
.port-input {
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
}
.port-output {
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}
.btn-brand-500 {
    background-color: #095F3E;
}
.btn-brand-500:hover {
    background-color: #074d2f;
}
.text-brand-500 {
    color: #095F3E;
}
.bg-brand-50 {
    background-color: #e8f7f0;
}

/* ==========================================
   8. DEVELOPER WORKSPACES (developers/index.php)
   ========================================== */
.developer-sidebar-container {
    padding: 0;
}
.developer-sidebar-container h2 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    color: #0f172a;
    font-size: 24px;
    margin-bottom: 24px;
    padding-left: 8px;
}
.developer-sidebar-container .nav-link {
    color: #475569;
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    border: none;
    background: transparent;
    text-align: left;
    display: block;
    text-decoration: none;
}
.developer-sidebar-container .nav-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}
.developer-sidebar-container .nav-link.active {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: var(--font-weight-semibold);
}
.key-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}
.key-card:hover {
    border-color: #cbd5e1;
}
.btn-generate-key {
    background-color: #09090b;
    color: #ffffff;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    width: 100%;
    transition: background-color 0.2s ease;
}
.btn-generate-key:hover {
    background-color: #18181b;
    color: #ffffff;
}
.btn-trash {
    background-color: #dc2626;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
.btn-trash:hover {
    background-color: #b91c1c;
}
.endpoint-card {
    border-left: 4px solid #09090b;
}
.json-preview {
    background-color: #0f172a;
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 1rem;
    border-radius: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

/* ==========================================
   9. PREVIEWS & MOCKUPS (create_template.php, create_campaign.php, settings.php)
   ========================================== */
.btn-pill-selector {
    background-color: #FFFFFF;
    border: 1px solid #dee2e6;
    color: #475569;
    font-weight: var(--font-weight-semibold);
    font-size: 13px;
    border-radius: 8px;
    padding: 8px 18px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-pill-selector:hover {
    background-color: #f8fafc;
    border-color: var(--color-exp-UIu);
}
.btn-pill-selector.active {
    background-color: #e8f7f0 !important;
    border-color: var(--color-exp-UIu) !important;
    color: var(--color-exp-UIu) !important;
    box-shadow: 0 0 0 1px var(--color-exp-UIu);
}
.preview-phone-container {
    width: 100%;
    max-width: 320px;
    height: 580px;
    background: #efeae2;
    border: 11px solid #1e293b;
    border-radius: 40px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    font-family: var(--font-primary);
}
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 18px;
    background: #1e293b;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}
.phone-status-bar {
    height: 38px;
    background: #095F3E;
    padding: 18px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: var(--font-weight-medium);
}
.phone-chat-header {
    height: 52px;
    background: #095F3E;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}
.phone-chat-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}
.phone-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.phone-chat-avatar img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.phone-chat-info {
    display: flex;
    flex-direction: column;
}
.phone-chat-name {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: 4px;
}
.phone-chat-status {
    font-size: 9px;
    opacity: 0.8;
}
.phone-chat-actions {
    display: flex;
    gap: 12px;
    font-size: 13px;
    opacity: 0.9;
}
.phone-chat-body {
    height: calc(100% - 38px - 52px - 52px);
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
    background-position: center;
}
.phone-chat-date-badge {
    align-self: center;
    background: rgba(225, 230, 235, 0.95);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    color: #5b6e76;
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
}
.phone-msg-bubble {
    align-self: flex-start;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 0px 12px 12px 12px;
    max-width: 88%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.phone-msg-text {
    font-size: 12px;
    color: #1f2937;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
.phone-msg-text strong {
    color: #0f172a;
    font-weight: var(--font-weight-semibold);
}
.phone-msg-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: 9px;
    color: #64748b;
}
.phone-chat-footer {
    height: 52px;
    background: #f1f5f9;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.phone-mic-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #095F3E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.phone-header {
    height: 48px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}
.whatsapp-bubble {
    border-radius: 12px;
    background-color: #ffffff;
    max-width: 90%;
    margin-left: 5%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    padding: 8px 12px;
    align-self: flex-start;
    position: relative;
    font-size: 14px;
    color: #111b21;
}
.whatsapp-bubble.preview-styled-chat::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid #ffffff;
    border-left: 10px solid transparent;
}
.whatsapp-bubble.preview-styled-chat-green {
    background-color: #d9fdd3;
    border-radius: 8px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    padding: 8px 12px;
    max-width: 85%;
    align-self: flex-start;
    position: relative;
    font-size: 14px;
    color: #111b21;
}
.whatsapp-bubble.preview-styled-chat-green::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid #d9fdd3;
    border-left: 10px solid transparent;
}
.whatsapp-btn {
    background-color: #ffffff;
    color: #008069;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    margin-top: 4px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.1);
    cursor: default;
}
.btn-preview-action {
    width: 100%;
    text-align: center;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    color: #0d6efd;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    padding: 9px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-preview-action:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}
.card-add-btn:hover {
    border-color: var(--color-exp-UIu) !important;
    background-color: #e8f7f0 !important;
}
.card-editor-card {
    width: 220px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    flex-shrink: 0;
}
.card-editor-card .remove-card-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background-color: #ffefef;
    color: #dc3545;
    border-radius: 50%;
    width: 20px;
}
.btn-attribute-pill {
    border: 1px solid #10b981 !important;
    color: #10b981 !important;
    background-color: transparent !important;
    border-radius: 50px !important;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
}
.btn-attribute-pill:hover {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
    border-color: #059669 !important;
}
.drip-preview-step-row:hover {
    border-color: var(--color-exp-UIu) !important;
    background-color: #f7faf8 !important;
}
.whatsapp-preview-chat {
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 250px;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ==========================================
   10. ACCEPT INVITATION Standalone (accept_invite.php)
   ========================================== */
.invitation-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    max-width: 480px;
    width: 100%;
}
.btn-brand {
    background-color: #095F3E;
    color: #ffffff;
    font-weight: var(--font-weight-semibold);
}
.btn-brand:hover {
    background-color: #07472E;
    color: #ffffff;
}

/* ==========================================
   11. FACEBOOK OAUTH INTEGRATION
   ========================================== */
.oauth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.1), 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    max-width: 550px;
    width: 100%;
    overflow: hidden;
}
.oauth-header {
    background-color: #1877f2;
    color: #ffffff;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.oauth-body {
    padding: 32px;
}
.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.permission-icon {
    color: #65676b;
    font-size: 20px;
    width: 24px;
    text-align: center;
}
.btn-facebook {
    background-color: #1877f2;
    color: #ffffff;
    font-weight: var(--font-weight-semibold);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.btn-facebook:hover {
    background-color: #166fe5;
    color: #ffffff;
}
.btn-cancel {
    background-color: #e4e6eb;
    color: #050505;
    font-weight: var(--font-weight-semibold);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.btn-cancel:hover {
    background-color: #d8dadf;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.error {
    color: #ef4444;
}
.success {
    color: #059669;
}

/* ==========================================
   12. BILLING INVOICE PANEL (download_invoice.php)
   ========================================== */
.invoice-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
}
@media print {
    .invoice-card {
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        max-width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

/* ==========================================
   13. OTP DEMO PORTAL (otp-demo/index.php)
   ========================================== */
.otp-demo-body {
    --dark: #09090b;
    --card-dark: #18181b;
    --accent-green: #22c55e;
    --accent-green-hover: #16a34a;
    --border-color: #27272a;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --card-glass: rgba(24, 24, 27, 0.85);
}
.otp-demo-body {
    background-color: var(--dark);
    color: var(--text-primary);
}
.otp-demo-body header {
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-glass);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.otp-demo-body .header-title h1 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: 22px;
    letter-spacing: -0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.otp-demo-body .header-title p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 2px;
}
.badge-live {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.otp-demo-body .main-container {
    display: grid;
    grid-template-columns: 460px 1fr;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}
.otp-demo-body .simulator-panel {
    padding: 40px 30px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(9, 9, 11, 0.5);
}
.otp-demo-body .sim-card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.otp-demo-body .sim-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.otp-demo-body .sim-icon-wrapper i,
.otp-demo-body .sim-icon-wrapper svg {
    color: var(--accent-green);
    font-size: 24px;
    width: 28px;
    height: 28px;
}
.otp-demo-body .sim-card h2 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: 24px;
    margin-bottom: 8px;
    color: #ffffff;
}
.otp-demo-body .sim-card p.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.otp-demo-body .form-group {
    margin-bottom: 20px;
}
.otp-demo-body .form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.otp-demo-body .input-wrapper {
    position: relative;
}
.otp-demo-body .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.otp-demo-body .form-input, .otp-demo-body .form-select {
    width: 100%;
    background-color: rgba(9, 9, 11, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 14px 12px 42px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
}
.otp-demo-body .form-select {
    appearance: none;
    padding-left: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.otp-demo-body .form-input:focus, .otp-demo-body .form-select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.otp-demo-body .btn-submit {
    width: 100%;
    background-color: var(--accent-green);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.otp-demo-body .btn-submit:hover {
    background-color: var(--accent-green-hover);
}
.otp-demo-body .btn-submit:active {
    transform: scale(0.98);
}
.otp-demo-body .alert {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.otp-demo-body .alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
}
.otp-demo-body .success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.otp-demo-body .success-checkmark i,
.otp-demo-body .success-checkmark svg {
    color: var(--accent-green);
    font-size: 38px;
    width: 40px;
    height: 40px;
}
.otp-demo-body .btn-reset {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    margin-top: 16px;
}
.otp-demo-body .btn-reset:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}
.otp-demo-body .developer-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}
.otp-demo-body .section-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.otp-demo-body .config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.otp-demo-body .config-card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
}
.otp-demo-body .config-card label {
    display: block;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.otp-demo-body .config-card .value {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
}
.otp-demo-body .settings-card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}
.otp-demo-body .settings-card h4 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.otp-demo-body .settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.otp-demo-body .settings-form-grid .full {
    grid-column: span 2;
}
.otp-demo-body .settings-card .form-input {
    padding: 10px 14px;
    font-size: 13px;
    background-color: rgba(9, 9, 11, 0.4);
}
.otp-demo-body .btn-save-settings {
    padding: 10px 16px;
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.otp-demo-body .btn-save-settings:hover {
    background-color: #e4e4e7;
}
.otp-demo-body .terminal {
    background-color: #0c0c0e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
    min-height: 250px;
}
.otp-demo-body .terminal-header {
    background-color: #141416;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.otp-demo-body .terminal-dots {
    display: flex;
    gap: 6px;
}
.otp-demo-body .terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.otp-demo-body .terminal-dot.red { background-color: #ef4444; }
.otp-demo-body .terminal-dot.yellow { background-color: #f59e0b; }
.otp-demo-body .terminal-dot.green { background-color: #10b981; }
.otp-demo-body .terminal-title {
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.otp-demo-body .terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    color: #e4e4e7;
}
.otp-demo-body .terminal-body .comment { color: var(--text-muted); }
.otp-demo-body .terminal-body .method { color: #f43f5e; font-weight: var(--font-weight-semibold); }
.otp-demo-body .terminal-body .url { color: #38bdf8; }
.otp-demo-body .terminal-body .json-key { color: #a5b4fc; }
.otp-demo-body .terminal-body .json-string { color: #86efac; }
.otp-demo-body .terminal-body .json-num { color: #fca5a5; }
.otp-demo-body .terminal-body .json-val { color: #fbbf24; }
.otp-demo-body .terminal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 12px;
    text-align: center;
    padding: 40px;
}
.otp-demo-body .terminal-empty i {
    font-size: 28px;
    opacity: 0.5;
}
.otp-demo-body .sandbox-hint {
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #93c5fd;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.otp-demo-body .sandbox-hint .otp-reveal {
    font-family: var(--font-mono);
    background-color: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: var(--font-weight-semibold);
}
.otp-demo-body .template-fields {
    display: none;
    border-left: 2px solid var(--border-color);
    padding-left: 14px;
    margin-top: 14px;
}

/* ==========================================
   14. CHRISTINJOSEPH-DEMO PORTAL (christinjoseph-demo/index.php)
   ========================================== */
.christin-demo-body {
    --bg-base: #0b0f19;
    --bg-card: #151c2c;
    --bg-input: #1f293d;
    --color-primary: #ffffff;
    --color-secondary: #94a3b8;
    --color-border: #2d3748;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-purple: #8b5cf6;
    --font-mono: 'JetBrains Mono', monospace;
}
.christin-demo-body {
    background-color: var(--bg-base);
    color: var(--color-primary);
}
.christin-demo-body header {
    padding: 24px 40px;
    background-color: rgba(21, 28, 44, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.christin-demo-body .logo-wrap h1 {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}
.christin-demo-body .logo-wrap span {
    color: var(--accent-purple);
}
.christin-demo-body .logo-wrap p {
    font-size: 12px;
    color: var(--color-secondary);
    margin-top: 2px;
}
.christin-demo-body .domain-tag {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-mono);
}
.christin-demo-body .content-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}
.christin-demo-body .form-side {
    padding: 40px;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.2);
}
.christin-demo-body .auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.christin-demo-body .card-header-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.christin-demo-body .card-header-icon i {
    color: var(--accent-purple);
    font-size: 20px;
}
.christin-demo-body .auth-card h2 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
    color: #ffffff;
}
.christin-demo-body .auth-card p.subtitle {
    font-size: 14px;
    color: var(--color-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}
.christin-demo-body .form-group {
    margin-bottom: 18px;
}
.christin-demo-body .form-label {
    display: block;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-secondary);
    margin-bottom: 8px;
}
.christin-demo-body .form-input,
.christin-demo-body .form-select {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
}
.christin-demo-body .form-input:focus,
.christin-demo-body .form-select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.christin-demo-body .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.christin-demo-body .btn-action {
    width: 100%;
    background-color: var(--accent-purple);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: var(--font-weight-bold);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.christin-demo-body .btn-action:hover {
    background-color: #7c3aed;
}
.christin-demo-body .btn-action:active {
    transform: scale(0.98);
}
.christin-demo-body .btn-reset {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    margin-top: 14px;
}
.christin-demo-body .btn-reset:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-primary);
}
.christin-demo-body .alert {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.christin-demo-body .success-checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.christin-demo-body .success-checkmark i {
    color: var(--accent-green);
    font-size: 32px;
}
.christin-demo-body .inspector-side {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}
.christin-demo-body .panel-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}
.christin-demo-body .tabs-header {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    gap: 8px;
}
.christin-demo-body .tab-btn {
    background: none;
    border: none;
    color: var(--color-secondary);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    position: relative;
}
.christin-demo-body .tab-btn.active {
    color: var(--color-primary);
}
.christin-demo-body .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-purple);
}
.christin-demo-body .tab-content {
    display: none;
    flex: 1;
}
.christin-demo-body .tab-content.active {
    display: flex;
    flex-direction: column;
}
.christin-demo-body .terminal-box {
    background-color: #080b11;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}
.christin-demo-body .terminal-topbar {
    background-color: #101520;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.christin-demo-body .terminal-indicators {
    display: flex;
    gap: 6px;
}
.christin-demo-body .terminal-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.christin-demo-body .terminal-indicator.red { background-color: #ef4444; }
.christin-demo-body .terminal-indicator.yellow { background-color: #f59e0b; }
.christin-demo-body .terminal-indicator.green { background-color: #10b981; }
.christin-demo-body .terminal-header-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-secondary);
    text-transform: uppercase;
}
.christin-demo-body .terminal-code {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    color: #e2e8f0;
    overflow-y: auto;
    flex: 1;
}
.christin-demo-body .terminal-code .comment { color: #64748b; }
.christin-demo-body .terminal-code .keyword { color: #f43f5e; font-weight: var(--font-weight-semibold); }
.christin-demo-body .terminal-code .string { color: #10b981; }
.christin-demo-body .terminal-code .function { color: #3b82f6; }
.christin-demo-body .terminal-code .param { color: #a855f7; }
.christin-demo-body .terminal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-secondary);
    gap: 12px;
    text-align: center;
    padding: 40px;
}
.christin-demo-body .terminal-empty i {
    font-size: 32px;
    opacity: 0.3;
}
.christin-demo-body .sandbox-bypass {
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 10px;
}
.christin-demo-body .sandbox-bypass .code-badge {
    background-color: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: var(--font-weight-semibold);
}
.christin-demo-body .template-fields-box {
    display: none;
    border-left: 2px solid var(--color-border);
    padding-left: 14px;
    margin-top: 14px;
}

/* Sandbox index.html page style */
.sandbox-index-body {
    font-family: var(--font-primary);
    background: #f8fafc;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;  
    margin: 0;
    text-align: center;
}
.sandbox-index-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 400px;
    margin: auto;
}
.sandbox-index-title {
    color: #095F3E;
    margin-bottom: 10px;
    font-size: 24px;
}
.sandbox-index-text {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Gemini Style settings dropdown menu */
.sidebar-profile-footer {
    position: relative !important;
    z-index: 1050;
}

.sidebar-profile-footer .dropup {
    position: static !important;
}

.sidebar-settings-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.15), 0 4px 6px -2px rgba(15, 23, 42, 0.05) !important;
    padding: 8px !important;
    color: var(--gray-700) !important;
    z-index: 2000 !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
}

/* Expanded Sidebar: position flyout menu cleanly within sidebar boundaries */
body:not(.sidebar-collapsed) .sidebar-settings-menu {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
    bottom: 100% !important;
    top: auto !important;
    transform: none !important;
    margin-bottom: 8px !important;
}

.sidebar-settings-menu .dropdown-item {
    color: var(--gray-700) !important;
    font-size: 13.5px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: background-color 0.2s, color 0.2s;
    font-family: var(--font-primary);
}
.sidebar-settings-menu .dropdown-item:hover {
    background-color: var(--gray-100) !important;
    color: var(--primary) !important;
}
.sidebar-settings-menu .dropdown-item i {
    width: 18px;
    font-size: 14px;
    color: var(--gray-700) !important;
    margin-right: 8px;
}
.sidebar-settings-menu .dropdown-divider {
    border-top: 1px solid var(--gray-200) !important;
    margin: 8px 0;
}
.sidebar-settings-menu .dropdown-item.text-danger {
    color: #dc2626 !important;
}
.sidebar-settings-menu .dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}
.sidebar-settings-gear-btn {
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}
.sidebar-settings-gear-btn:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}


/* ==========================================================================
   ELEVENLABS COMMAND PALETTE SEARCH POPUP REDESIGN
   ========================================================================== */
.search-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url(https://persistent.oaistatic.com/chatgpt/tpp/nux-modal-background.webp) !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 2100 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 80px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.search-modal-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.search-modal-container {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 620px !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.14) !important;
    overflow: hidden !important;
    transform: scale(0.97) translateY(-10px) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
}
.search-modal-overlay.active .search-modal-container {
    transform: scale(1) translateY(0) !important;
}

/* Modal Input Header (No border color, no inner box, seamless flow) */
.search-modal-header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 18px 22px 10px 22px !important;
    border-bottom: none !important;
    background: #ffffff !important;
}
.search-modal-icon {
    width: 18px !important;
    height: 18px !important;
    color: #64748b !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}
input.search-modal-input,
.search-modal-input,
.search-modal-input:focus,
.search-modal-input:active,
.search-modal-input:focus-visible,
.search-modal-input:hover {
    flex-grow: 1 !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    height: auto !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #0f172a !important;
    font-family: var(--font-primary) !important;
    padding: 0 !important;
    margin: 0 !important;
}
.search-modal-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Spinner Loader */
.search-modal-spinner {
    width: 16px !important;
    height: 16px !important;
    color: #94a3b8 !important;
    animation: searchSpinnerRotate 0.75s linear infinite !important;
    flex-shrink: 0 !important;
    margin-left: 12px !important;
}

@keyframes searchSpinnerRotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Skeleton Loading State (Zero gap alignment) */
.search-skeleton-row {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    margin-bottom: 2px !important;
    border-radius: 12px !important;
}
.search-skeleton-badge {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background-color: #f1f5f9 !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    animation: searchSkeletonPulse 1.4s ease-in-out infinite !important;
}
.search-skeleton-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.search-skeleton-line {
    height: 10px !important;
    border-radius: 9999px !important;
    background-color: #f1f5f9 !important;
    animation: searchSkeletonPulse 1.4s ease-in-out infinite !important;
}
.search-skeleton-line.short {
    width: 38% !important;
}
.search-skeleton-line.long {
    width: 72% !important;
}

@keyframes searchSkeletonPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.9;
    }
}

/* Modal Scrollable Body (Seamless alignment with top search bar) */
.search-modal-body {
    padding: 0 16px 16px 16px !important;
    max-height: 440px !important;
    overflow-y: auto !important;
}
.search-section-block {
    display: flex !important;
    flex-direction: column !important;
}
.search-section-label {
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.01em !important;
    padding: 8px 10px 6px 10px !important;
}

/* Result Rows (Pill list items) */
.search-result-row {
    display: flex !important;
    align-items: center !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: #0f172a !important;
    transition: background-color 0.12s ease-in-out !important;
    margin-bottom: 2px !important;
    cursor: pointer !important;
}
.search-result-row:hover,
.search-result-row.active-row {
    background-color: #f1f5f9 !important;
    text-decoration: none !important;
}
.search-row-icon-badge {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background-color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-right: 12px !important;
    color: #475569 !important;
    transition: background-color 0.12s ease-in-out !important;
}
.search-result-row.active-row .search-row-icon-badge,
.search-result-row:hover .search-row-icon-badge {
    background-color: #e2e8f0 !important;
}
.search-row-avatar-badge {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-right: 12px !important;
}
.search-row-content {
    flex-grow: 1 !important;
    min-width: 0 !important;
}
.search-row-title {
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.search-row-subtitle {
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.search-row-action-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 4px 3px 9px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(4px) !important;
    transition: opacity 0.12s ease-in-out, transform 0.12s ease-in-out, visibility 0.12s ease-in-out !important;
}

.search-action-kbd {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    color: #64748b !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.search-result-row:hover .search-row-action-badge,
.search-result-row.active-row .search-row-action-badge {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* Location dot indicator in settings dropdown */
.location-dot-indicator {
    width: 6px;
    height: 6px;
    background-color: #64748b;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
/* Dropdown submenus */
.submenu-parent {
    position: relative;
}
.dropdown-submenu-list {
    display: none;
    position: absolute;
    left: 100%;
    bottom: 0;
    margin-left: 6px;
    background-color: #1e1f20;
    border: 1px solid #2d2f31;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    padding: 6px;
    width: 160px;
    list-style: none;
    z-index: 2200;
}
.submenu-parent:hover .dropdown-submenu-list {
    display: block;
}

/* Gemini style circular toggle button */
.gemini-toggle-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    border: none !important;
    color: #1f2024 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}
.gemini-toggle-btn:hover {
    background-color: #f1f3f4 !important;
    color: #000000 !important;
}
.gemini-toggle-btn svg {
    color: currentColor;
}

/* Circular style for desktop collapse and expand hover buttons */
.sidebar-close-btn, .sidebar-expand-hover-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: #f1f3f4 !important; /* light gray circle background */
    color: #1f2024 !important; /* dark/black icon color */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
.sidebar-close-btn:hover, .sidebar-expand-hover-btn:hover {
    background-color: #e8eaed !important; /* slightly darker on hover */
    color: #000000 !important;
}

/* Dynamic hover effect: show chevron path only on hover of the button */
.sidebar-chevron-path {
    opacity: 0;
    transition: opacity 0.15s ease-in-out !important;
}
.sidebar-close-btn:hover .sidebar-chevron-path,
.sidebar-expand-hover-btn:hover .sidebar-chevron-path {
    opacity: 1 !important;
}

/* Narrow collapsible sidebar rules (desktop only) */
@media (min-width: 992px) {
    body.sidebar-collapsed .sidebar-expanded-logo {
        display: none !important;
    }
    body.sidebar-collapsed .sidebar-collapsed-logo {
        display: block !important;
    }
    body.sidebar-collapsed .sidebar-header {
        justify-content: center !important;
        padding: 12px 0 !important;
    }
    /* Default hidden state for collapsed expand button in expanded mode */
    .sidebar-expand-hover-btn {
        display: none !important;
    }

    /* Sidebar header buttons in collapsed mode */
    body.sidebar-collapsed .sidebar-header .sidebar-close-btn {
        display: none !important;
    }
    body.sidebar-collapsed .sidebar-header .sidebar-collapsed-logo {
        display: block !important;
    }
    body.sidebar-collapsed .sidebar-header .sidebar-expand-hover-btn {
        display: none !important;
    }

    /* Hover state: when hovering over the collapsed header, hide star logo and show expand button */
    body.sidebar-collapsed .sidebar-header:hover .sidebar-collapsed-logo {
        display: none !important;
    }
    body.sidebar-collapsed .sidebar-header:hover .sidebar-expand-hover-btn {
        display: flex !important;
    }
    body.sidebar-collapsed .sidebar-wrapper .nav-item-link span:not(.material-symbols-rounded):not(.sidebar-icon-svg),
    .sidebar-collapsed .sidebar-menu li a span:not(.material-symbols-rounded):not(.sidebar-icon-svg) {
        max-width: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        display: inline-block !important;
        transition: opacity 0.15s ease, max-width 0.15s ease !important;
    }
    body.sidebar-collapsed .sidebar-wrapper .text-uppercase {
        position: relative !important;
        height: 25px !important; /* Preserves explicit layout height so Team never shifts up */
        margin: 10px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body.sidebar-collapsed .sidebar-wrapper .text-uppercase span,
    body.sidebar-collapsed .sidebar-wrapper .text-uppercase h6 {
        display: none !important; /* Hides the actual word */
    }
    /* Injects a sleek premium divider bar line exactly inside the empty height track */
    body.sidebar-collapsed .sidebar-wrapper .text-uppercase::after {
        content: "" !important;
        display: block !important;
        width: 24px !important; /* Small micro-bar width matching the minimized track */
        height: 2px !important;
        background-color: var(--gray-200, rgba(0, 0, 0, 0.08)) !important; /* Premium subtle gray tone */
        border-radius: 999px !important;
    }
    body.sidebar-collapsed .sidebar-wrapper .nav-item-link,
    .sidebar-collapsed .sidebar-menu li a {
        width: calc(100% - 24px) !important;
        height: 38px !important; /* Keep exact same height */
        padding: 12px 10.5px !important; /* Keep exact same vertical padding & left padding */
        display: flex !important;
        align-items: center !important; 
        justify-content: flex-start !important; /* Align content to start to keep left-alignment consistent */
        border-radius: 50px !important;
        margin: 3px 12px !important; /* Keep exact same margin as expanded */
        text-align: center !important;
        gap: 0 !important; /* Collapse gap when text is gone */
    }
    body.sidebar-collapsed .sidebar-wrapper .nav-item-link i,
    body.sidebar-collapsed .sidebar-wrapper .nav-item-link .material-symbols-rounded,
    body.sidebar-collapsed .sidebar-wrapper .nav-item-link .sidebar-icon-svg,
    .sidebar-collapsed .sidebar-menu li a i,
    .sidebar-collapsed .sidebar-menu li a .material-symbols-rounded,
    .sidebar-collapsed .sidebar-menu li a .sidebar-icon-svg {
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: normal !important;
        margin: 0 !important;
    }

    /* Footer layout for narrow collapsed sidebar */
    body.sidebar-collapsed .sidebar-profile-footer {
        padding: 16px 0 !important;
    }
    body.sidebar-collapsed .sidebar-profile-footer > .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        width: 100% !important;
    }
    body.sidebar-collapsed .sidebar-profile-footer > .d-flex div[style*="line-height"] {
        display: none !important;
    }

    body.sidebar-collapsed .sidebar-profile-footer .dropup {
        order: -1; /* place settings gear icon above the user avatar */
    }
    body.sidebar-collapsed .sidebar-profile-footer .sidebar-settings-gear-btn {
        background-color: transparent !important;
        border: 1.5px solid transparent !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    body.sidebar-collapsed .sidebar-profile-footer .sidebar-settings-gear-btn:hover {
        background-color: rgba(9, 95, 62, 0.05) !important;
        border-color: var(--primary) !important;
    }
    body.sidebar-collapsed .sidebar-profile-footer .sidebar-settings-gear-btn i {
        color: var(--primary) !important;
    }

    /* Position settings dropdown menu to the right of the narrow collapsed sidebar */
    body.sidebar-collapsed .sidebar-wrapper,
    body.sidebar-collapsed .sidebar-profile-footer {
        overflow: visible !important;
    }
    body.sidebar-collapsed .sidebar-profile-footer .dropup {
        position: relative !important;
    }
    body.sidebar-collapsed .sidebar-settings-menu {
        position: absolute !important;
        left: 58px !important;
        bottom: 0px !important;
        top: auto !important;
        right: auto !important;
        width: 240px !important;
        transform: none !important;
        margin-bottom: 0 !important;
        z-index: 99999 !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.2), 0 4px 6px -2px rgba(15, 23, 42, 0.1) !important;
    }
}

/* Sidebar settings menu fixes (Global) */
.sidebar-settings-menu .dropdown-item {
    font-family: var(--font-primary) !important;
    font-size: 13.5px;
    font-weight: var(--font-weight-medium);
    color: #334155;
    padding: 8px 16px;
    display: flex !important;
    align-items: center !important;
}
.sidebar-settings-menu .dropdown-item:hover {
    background-color: #f0f4f9;
    color: #1f1f1f;
}
.sidebar-settings-menu .dropdown-item .material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20 !important;
    font-size: 20px !important;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px !important;
}
.sidebar-settings-menu .dropdown-item.text-danger {
    color: #dc2626 !important;
}

/* Standardize the Dropdown Item Row Container */
.sidebar-dropdown-menu .dropdown-item,
.profile-dropdown-menu .dropdown-item,
.profile-dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 16px !important; /* Premium vertical breathing room */
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important; /* Soft premium slate gray text */
    border-radius: 6px !important;
    transition: all 0.2s ease-in-out !important;
}

/* Lock Dropdown Icon Dimensions and Right Spacing Gap */
.dropdown-icon-svg {
    width: 20px !important; /* Sleek, micro-sub menu vector size */
    height: 20px !important;
    min-width: 18px !important;
    fill: currentColor !important;
    margin-right: 12px !important; /* Critical: Creates perfect breathing gap before words */
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
}

.dropdown-icon-svg path {
    fill: currentColor !important;
}

/* Beautiful Hover Feedback matching Brand Colors */
.profile-dropdown-menu .dropdown-item:hover,
.profile-dropdown-menu a:hover {
    background-color: rgba(9, 95, 62, 0.06) !important; /* Brand green subtle tint */
    color: #095F3E !important; /* Brand green text highlight */
}

/* Custom Bootstrap Tooltip style overrides (capsule design) */
.tooltip {
    opacity: 1 !important;
}
.tooltip-inner {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: var(--font-heading) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    letter-spacing: -0.1px !important;
}
.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #000000 !important;
}
.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #000000 !important;
}
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #000000 !important;
}
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #000000 !important;
}

/* Compact Page Title Style matching 'Keep activity' style */
.header-left-title,
.page-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: var(--font-primary)!important;
    color: var(--dark, #0f172a) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}

/* Message Templates Custom CSS styling overrides */
.nav-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px !important;
    padding: 6px 14px !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
}
.nav-link-pill:hover {
    background-color: #f8fafc;
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}
.dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.dot-marketing {
    background-color: #9333EA;
}
.dot-utility {
    background-color: #3B82F6;
}
.dot-auth {
    background-color: #14B8A6;
}
.btn-meta-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    color: #334155;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-meta-action:hover {
    background-color: #f8fafc;
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}
.btn-meta-action .material-symbols-rounded {
    font-size: 18px;
}
.btn-meta-action i, .btn-meta-action span {
    vertical-align: middle;
}

/* Gated Feature Visual Locking styling */
.gated-feature-container {
    position: relative;
    overflow: hidden;
}
.gated-feature-blur {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}
.gated-feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    border-radius: inherit;
}
.gated-feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   Brand Typography and Button Styles (Munnottu SaaS Standards)
   ========================================================================== */

.saas-page-title {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}

.saas-section-header {
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.saas-card-title {
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.saas-body-regular {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #334155 !important;
    line-height: 1.5 !important;
}

.saas-meta-small {
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #64748b !important;
}

/* Branded Button Overhaul: Sleek pill design with 500/600 font weight and scale padding transitions on hover */
.btn-brand-green {
    background-color: var(--color-exp-UIu) !important;
    border-color: var(--color-exp-UIu) !important;
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 10px rgba(9, 95, 62, 0.15) !important;
}

.btn-brand-green:hover,
.btn-brand-green:focus,
.btn-brand-green:active {
    background-color: #074a30 !important;
    border-color: #074a30 !important;
    color: #ffffff !important;
    transform: scale(1.025) !important;
    box-shadow: 0 6px 14px rgba(9, 95, 62, 0.25) !important;
}

.btn-brand-green-light {
    background-color: #e6f4ea !important;
    border-color: var(--color-exp-UIu) !important;
    color: var(--color-exp-UIu) !important;
    font-family: var(--font-heading) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--color-exp-UIu) !important;
}

.btn-brand-green-light:hover,
.btn-brand-green-light:focus,
.btn-brand-green-light:active {
    background-color: #d2edd9 !important;
    color: #074a30 !important;
    border-color: #074a30 !important;
    transform: scale(1.025) !important;
}

/* Campaign Creation Selection Cards and Icons */
.selection-card {
    /* border: 1px solid #cbd5e1 !important; */
    transition: all 0.2s ease-in-out !important;
}
/* .selection-card:hover {
    border-color: var(--color-exp-UIu) !important;
} */
.selection-card.selected {
    background-color: #F4F4F4 !important;
}
.icon-container-brand {
    background-color: #BAF2B1 !important;
    color: var(--color-exp-UIu) !important;
}

/* ==========================================================================
   UNIFIED ICONIC MOBILE PREVIEW & SIDEBAR DRAWER SYSTEM
   ========================================================================== */

/* Preview Toggle Button */
.preview-toggle-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
    border-radius: 20px 0 0 20px !important;
    padding: 12px 18px !important;
    background-color: var(--color-exp-UIu) !important;
    border: 1px solid rgba(9, 95, 62, 0.2) !important;
    border-right: none !important;
    color: #ffffff !important;
    box-shadow: -4px 4px 16px rgba(9, 95, 62, 0.25) !important;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.preview-toggle-btn:hover {
    background-color: #053b23 !important;
    padding-right: 24px !important;
    color: #ffffff !important;
}

/* Off-canvas Preview Drawer overrides with float styling */
.preview-drawer {
    top: 75px !important;
    height: calc(100vh - 90px) !important;
    width: 380px !important;
    border-radius: 16px 0 0 16px !important;
    margin-top: 10px !important;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08) !important;
    border-left: 1px solid rgba(226, 232, 240, 0.8) !important;
    z-index: 1045 !important;
    background-color: #ffffff !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.preview-drawer .offcanvas-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

.preview-drawer .offcanvas-body {
    overflow: hidden !important; /* Fixed viewport - NO outer scroll! */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8fafc !important;
    padding: 1.5rem !important;
}

/* Unified Iconic Phone Viewport Mockup */
.iconic-phone-container {
    width: 320px !important;
    height: 580px !important;
    min-height: 580px !important;
    max-height: 580px !important;
    aspect-ratio: 9 / 18.5 !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    border: 12px solid #1e293b !important; /* Dark Premium Bezel */
    border-radius: 40px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08) !important; /* Subtle premium elevation shadow */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Subtle Notch/Island Bar */
.iconic-phone-container::after {
    content: "" !important;
    position: absolute !important;
    top: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 14px !important;
    background-color: #1e293b !important;
    border-radius: 10px !important;
    z-index: 100 !important;
}

/* Status Bar styling */
.iconic-phone-container .phone-status-bar {
    background-color: #ffffff !important;
    color: #1e293b !important;
    padding: 10px 24px 4px 24px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 10px !important;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    height: 26px !important;
}

.iconic-phone-container .phone-status-bar .battery-capsule {
    border: 1px solid #1e293b;
    border-radius: 3px;
    padding: 0px 3px;
    font-size: 7.5px;
    font-weight: var(--font-weight-bold);
    background: #1e293b;
    color: #ffffff;
    height: 11px;
    display: inline-flex;
    align-items: center;
}

/* Chat Header inside phone */
.iconic-phone-container .phone-chat-header {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    height: 52px !important;
    gap: 10px !important;
}

.iconic-phone-container .phone-chat-header .avatar {
    background-color: var(--color-exp-UIu) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.iconic-phone-container .phone-chat-header .brand-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 1px !important;
}

.iconic-phone-container .phone-chat-header .brand-name {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px;
}

.iconic-phone-container .phone-chat-header .brand-status {
    font-size: 9px !important;
    color: #64748b !important;
    display: block !important;
}

/* Phone Chat Body styling */
.iconic-phone-container .phone-chat-body {
    background-color: #efeae2 !important;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png') !important;
    background-repeat: repeat !important;
    background-size: auto !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    flex-grow: 1 !important;
    scrollbar-width: none;
}
.iconic-phone-container .phone-chat-body::-webkit-scrollbar {
    display: none;
}

/* Phone input bar at bottom */
.iconic-phone-container .phone-input-bar {
    background-color: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px 14px 12px !important;
    gap: 8px !important;
    height: 48px !important;
}

.iconic-phone-container .phone-input-pill {
    background-color: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    flex-grow: 1;
    border: 1px solid #e2e8f0;
    height: 28px;
    color: #64748b;
    font-size: 11px;
}

/* Align and clean headings */
.form-section-header {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   SEMANTIC TYPOGRAPHY & LAYOUT UNIFORMITY
   ========================================================================== */

.saas-page-title {
    font-family: var(--font-primary) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}

.saas-section-header {
    font-family: var(--font-primary) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
}

.saas-card-title {
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    line-height: 1.4 !important;
}

.saas-meta-small {
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

/* Clean up forms and text inputs to inherit --main-font */
input.mn-input,
textarea.mn-input,
select.mn-input,
.custom-input {
    font-family: var(--font-primary) !important;
}

/* Bind all buttons to --main-font with font-weight: 600 */
.btn,
button {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   OFF-CANVAS DRAWER & PHONE MOCKUP COSMETIC CLEANUP
   ========================================================================== */

/* Ensure the interior elements align natively inside the flex phone frame */
.iconic-phone-container .phone-status-bar,
.iconic-phone-container .phone-chat-header,
.iconic-phone-container .phone-chat-body,
.iconic-phone-container .phone-input-bar {
    width: 100% !important;
}

.iconic-phone-container .phone-status-bar {
    flex-shrink: 0 !important;
}
.iconic-phone-container .phone-chat-header {
    flex-shrink: 0 !important;
}
.iconic-phone-container .phone-input-bar {
    flex-shrink: 0 !important;
}

/* Active chat body scaling inside mockup */
.iconic-phone-container .phone-chat-body {
    flex-grow: 1 !important;
    overflow-y: auto !important;
}

/* Premium ultra-thin custom scrollbar inside the preview chat thread */
.iconic-phone-container .phone-chat-body::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
    display: block !important;
}
.iconic-phone-container .phone-chat-body::-webkit-scrollbar-track {
    background: transparent !important;
}
.iconic-phone-container .phone-chat-body::-webkit-scrollbar-thumb {
    background: rgba(9, 95, 62, 0.15) !important;
    border-radius: 10px !important;
}
.iconic-phone-container .phone-chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(9, 95, 62, 0.3) !important;
}

/* Unified mapping for phone chat header name components */
.iconic-phone-container .phone-chat-avatar,
.iconic-phone-container .phone-chat-header .avatar {
    background-color: var(--color-exp-UIu) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.iconic-phone-container .phone-chat-info,
.iconic-phone-container .phone-chat-header .brand-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 1px !important;
}

.iconic-phone-container .phone-chat-name,
.iconic-phone-container .phone-chat-header .brand-name {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px;
}

.iconic-phone-container .phone-chat-status,
.iconic-phone-container .phone-chat-header .brand-status {
    font-size: 9px !important;
    color: #64748b !important;
    display: block !important;
}

/* Padding overhaul for campaign left workspace forms */
#campaign_form_column .card-body,
.wizard-form-container .card-body,
.form-panel-body,
#left-workspace-form .card-body {
    padding: 24px !important;
}

/* Pill selector uniformity */
.btn-pill-selector {
    border-radius: 50px !important;
    letter-spacing: -0.1px !important;
}

/* Sidebar Layout Transitions & Collapsible Mechanics */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#page-layout-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

#left-workspace-form {
    flex: 1;
    min-width: 0;
}

/* Sidebar Drawer Overlay styling */
#right-control-sidebar {
    width: 450px !important;
    max-width: 100% !important;
    position: fixed !important;
    right: -450px !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    border-left: 1px solid #e2e8f0 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08) !important;
    z-index: 1060 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#right-control-sidebar.drawer-open {
    right: 0 !important;
}

/* Drawer Backdrop styling */
.drawer-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 1055 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.drawer-backdrop.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Drawer Header styling */
.drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background-color: #ffffff !important;
    flex-shrink: 0 !important;
}

.btn-close-drawer {
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    border: none !important;
    background: transparent !important;
}

/* Phone Preview Wrapper */
#right-control-sidebar .phone-preview-wrapper {
    width: 100% !important;
    flex-grow: 1 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    background-color: #f8fafc !important;
}

/* Sidebar Body & Tabs Content */
#right-control-sidebar .sidebar-body {
    flex-grow: 1;
    overflow: hidden;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
}

#right-control-sidebar .tab-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    height: 100%;
    overflow: hidden;
}

#right-control-sidebar .tab-pane {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Settings empty state */
.sidebar-settings-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    height: 100%;
}

.sidebar-settings-empty i,
.sidebar-settings-empty .material-symbols-rounded {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* Responsive adjustment overrides */
@media (max-width: 991.98px) {
    #page-layout-wrapper {
        flex-direction: column;
    }
}

/* Global High-Priority Focus Override - ElevenLabs Compliance */
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, 
input[type="tel"]:focus, input[type="number"]:focus, select:focus, textarea:focus, 
.custom-input:focus, .mn-input:focus,
#chatWindow input:focus, .tags-input-container:focus-within {
    border-color: var(--input-focus-border) !important;
    box-shadow: 0 0 0 3px var(--input-focus-shadow) !important;
    outline: none !important;
}

/* ==========================================================================
   CAMPAIGN CREATOR & TEMPLATE BUILDER OVERRIDES
   ========================================================================== */
.text-3xs {
    font-size: 0.65rem !important;
}

.bg-opacity-10 {
    background-color: rgba(9, 95, 62, 0.1) !important;
}

.border-opacity-20 {
    border-color: rgba(9, 95, 62, 0.2) !important;
}

/* Tab Selectors */
.btn-pill-selector {
    border: 1px solid #CBD5E1 !important;
    transition: all 0.2s ease-in-out !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 500 !important;
    background-color: #ffffff !important;
    color: #475569 !important;
}

.btn-pill-selector:hover {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    border-color: #94A3B8 !important;
}

.btn-pill-selector.active {
    background-color: var(--color-exp-UIu) !important;
    color: #ffffff !important;
    border-color: var(--color-exp-UIu) !important;
    box-shadow: none !important;
}

/* Carousel Cards Builder Tabs */
.carousel-card-tab {
    border: 1px solid #E2E8F0 !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.carousel-card-tab:hover {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
}

.carousel-card-tab.active {
    border-color: var(--color-exp-UIu) !important;
    background-color: #e8f7f0 !important;
    color: var(--color-exp-UIu) !important;
}

.carousel-card-tab.active .text-xs {
    color: var(--color-exp-UIu) !important;
}

.hover-danger:hover {
    color: #dc3545 !important;
}

/* Scoped Carousel Styles */
.munnottu-carousel-builder-scoped .carousel-card-editor-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 1rem;
}

.munnottu-carousel-builder-scoped .carousel-tab-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 1.25rem;
    width: 100% !important;
}

.munnottu-carousel-builder-scoped .custom-input-group-full {
    width: 100% !important;
    flex: 0 0 100% !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#preview_carousel_scroll_container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
#preview_carousel_scroll_container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Premium Official WhatsApp Look for Preview Mockup overrides */
#whatsapp_bubble_element {
    border-radius: 0px 12px 12px 12px !important;
    background-color: #ffffff !important;
    max-width: 88% !important;
    margin-left: 8px !important;
    border: none !important;
    box-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
}

#whatsapp_bubble_element::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -8px !important;
    width: 8px !important;
    height: 12px !important;
    background-color: #ffffff !important;
    clip-path: polygon(100% 0, 0 0, 100% 100%) !important;
}

/* Premium Active Carousel Card Highlight */
.preview-carousel-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0.55;
    transform: scale(0.96);
    border: 2px solid #E2E8F0 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    position: relative !important;
    box-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.12) !important;
}

.preview-carousel-card.active-focused-card {
    opacity: 1 !important;
    transform: scale(1) !important;
    border: 2px solid var(--color-exp-UIu) !important;
    box-shadow: 0 12px 24px -10px rgba(9, 95, 62, 0.35), 0 4px 12px -4px rgba(9, 95, 62, 0.2) !important;
    position: relative;
}

/* Active Pill Badge inside the card preview top corner */
.active-card-pill-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--color-exp-UIu);
    color: #ffffff;
    font-size: 9px;
    font-weight: var(--font-weight-bold);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-preview-action {
    width: 100% !important;
    background: none !important;
    border: none !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #007aff !important;
    /* Premium iOS WhatsApp blue link */
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
}

.btn-preview-action:hover {
    background-color: #f1f5f9 !important;
}

.phone-chat-buttons-container,
#carousel_preview_buttons {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.phone-chat-body {
    padding: 12px 16px !important;
}

/* Premium Carousel Tab Square Styling */
.carousel-tab-square {
    width: 70px !important;
    height: 70px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #f1f5f9 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative;
}

.carousel-tab-square:hover {
    border-color: #94A3B8 !important;
    background-color: #e2e8f0 !important;
}

/* High-Fidelity Active State: Premium Munnottu Brand Green Background */
.carousel-tab-square.active-card-tab {
    background-color: var(--color-exp-UIu) !important;
    border-color: var(--color-exp-UIu) !important;
    box-shadow: 0 8px 16px -4px rgba(9, 95, 62, 0.35), 0 4px 6px -2px rgba(9, 95, 62, 0.1) !important;
    transform: translateY(-2px) scale(1.04) !important;
}

/* Premium Visual Transition: Inner Edit Icon Wrapper and Icon */
.carousel-tab-square .edit-icon-wrapper {
    width: 32px !important;
    height: 32px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
}

.carousel-tab-square .edit-icon {
    color: #64748b !important;
    font-size: 18px !important;
    transition: all 0.25s ease !important;
}

/* Active State Overrides: card becomes green and icon becomes white */
.carousel-tab-square.active-card-tab .edit-icon-wrapper {
    background-color: #fff !important;
    box-shadow: none !important;
}

.carousel-tab-square.active-card-tab .edit-icon {
    color: #000 !important;
}

/* ==========================================================================
   UNIFIED INBOX PAGE OVERRIDES
   ========================================================================== */

/* Upload Progress Bar Styling */
.upload-progress-container {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    width: 100%;
}

#uploadProgressInner {
    height: 100%;
    background-color: #10b981 !important;
    transition: width 0.3s ease;
}

/* In-Chat Search Styling */
#inChatSearchBar {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.02);
    animation: slideDownInChat 0.2s ease-out;
}

@keyframes slideDownInChat {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#inChatSearchInput:focus {
    border-color: var(--color-exp-UIu) !important;
    box-shadow: 0 0 0 0.2rem rgba(9, 95, 62, 0.15) !important;
    outline: none;
}

.chat-search-highlight {
    background-color: #ffe066;
    /* bright yellow */
    color: #000000;
    padding: 0 2px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.chat-search-highlight.active-search-match {
    background-color: #ff922b !important;
    /* bright orange */
    box-shadow: 0 0 0 2px #ff922b, 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    color: #ffffff !important;
}

/* Hover effects for control buttons */
.inchat-search-btn {
    transition: all 0.2s ease;
}

.inchat-search-btn:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

@media (max-width: 991.98px) {
    #mobileInboxTabs .nav-link {
        background-color: #f8fafc;
        color: #64748b;
        border: 1px solid #e2e8f0;
    }

    #mobileInboxTabs .nav-link.active {
        background-color: var(--color-exp-UIu) !important;
        color: #ffffff !important;
        border-color: var(--color-exp-UIu) !important;
    }

    #mobileInboxTabs .nav-link.disabled {
        opacity: 0.5;
        pointer-events: none;
        background-color: #e2e8f0;
    }
}

@media (min-width: 992px) {
    #inboxMasterRow,
    body.unified-inbox-page #inboxMasterRow,
    body.unified-inbox-page .main-content-inner > .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        height: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #inboxConversationsPanel,
    #inboxConversationsPanel.d-none,
    body.unified-inbox-page #inboxConversationsPanel,
    body.unified-inbox-page #inboxConversationsPanel.d-none {
        display: flex !important;
        flex-direction: column !important;
        width: 320px !important;
        min-width: 320px !important;
        max-width: 320px !important;
        flex-shrink: 0 !important;
        visibility: visible !important;
    }

    #inboxActiveChatPanel,
    #inboxActiveChatPanel.d-none,
    body.unified-inbox-page #inboxActiveChatPanel,
    body.unified-inbox-page #inboxActiveChatPanel.d-none {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        visibility: visible !important;
    }

    #inboxProfilePanel,
    #inboxProfilePanel.d-none,
    body.unified-inbox-page #inboxProfilePanel,
    body.unified-inbox-page #inboxProfilePanel.d-none {
        display: flex !important;
        flex-direction: column !important;
        width: 360px !important;
        min-width: 320px !important;
        max-width: 400px !important;
        flex-shrink: 0 !important;
        visibility: visible !important;
    }

    .inbox-col-panel,
    .inbox-col-panel.d-none,
    body.unified-inbox-page .inbox-col-panel,
    body.unified-inbox-page .inbox-col-panel.d-none {
        display: flex !important;
        visibility: visible !important;
    }
}

/* WhatsApp Chat Status Ticks Styling */
.msg-status-icon {
    font-size: 14px;
    margin-left: 2px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.msg-status-icon.text-muted {
    color: #8696a0 !important;
}

.msg-status-icon.text-primary {
    color: #53bdeb !important;
}

.msg-status-icon.text-danger {
    color: #ef4444 !important;
}

/* Outgoing Media Upload Progress Bar Styling */
.upload-progress-container {
    height: 6px !important;
    background-color: rgba(0, 0, 0, 0.08) !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
}

.upload-progress-container .progress-bar {
    background-color: #10b981 !important;
    height: 100% !important;
    transition: width 0.3s ease !important;
}

/* Scoped Dark-themed Context Menu Styling */
.custom-context-menu-dark {
    position: fixed !important;
    background: #222e35 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    z-index: 10000 !important;
    padding: 4px !important;
    min-width: 170px !important;
}

.custom-context-menu-dark .dropdown-item-dark {
    color: #e9edef !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.custom-context-menu-dark .dropdown-item-dark:hover {
    background-color: #2a3942 !important;
    color: #ffffff !important;
}

.custom-context-menu-dark .dropdown-item-dark .material-symbols-rounded {
    color: #aebac1 !important;
    font-size: 18px !important;
}

.custom-context-menu-dark .dropdown-item-dark:hover .material-symbols-rounded {
    color: #ffffff !important;
}

.custom-context-menu-dark .dropdown-divider-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 4px 0 !important;
}

/* Copied Badge Styling */
.copied-badge {
    font-size: 10px !important;
    background-color: rgba(33, 44, 53, 0.9) !important;
    color: #ffffff !important;
    pointer-events: none;
}

/* Bouncing Typing Indicator Styling */
.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 0.8s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0ms;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 150ms;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 300ms;
}

@keyframes typing-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* CRM Tabbed Sidebar Styles */
#crmSidebarTabs .nav-link {
    background-color: #f3f4f6;
    color: #4b5563 !important;
    border: none;
    transition: all 0.2s ease;
}

#crmSidebarTabs .nav-link.active {
    background-color: var(--color-exp-UIu) !important;
    color: #ffffff !important;
}

#crmSidebarTabs .nav-link:hover:not(.active) {
    background-color: #e5e7eb;
}

.note-item {
    transition: all 0.2s ease;
    border-radius: 8px;
}

.note-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Pulsing red circle animation for voice recording */
.voice-pulsing-circle {
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: voice-pulse 1.2s ease-in-out infinite;
}

@keyframes voice-pulse {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* WhatsApp audio bubble controls styling */
.whatsapp-audio-bubble audio::-webkit-media-controls-enclosure {
    background-color: #f8fafc;
    border-radius: 8px;
}

/* Premium Tags Input styling */
.tags-input-container {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 8px;
    background-color: #ffffff;
    min-height: 42px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tags-input-container:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.tags-input-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    line-height: 1;
    transition: all 0.2s ease;
}

.tags-input-badge .tag-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-left: 2px;
}

.tags-input-badge .tag-remove-btn:hover {
    opacity: 1;
}

/* ==========================================================================
   UNIFIED VIEWPORT-ISOLATED 3-COLUMN INBOX OVERHAUL
   ========================================================================== */

/* Premium Active Chat Header Visual Redesign */
body.unified-inbox-page #inboxActiveChatPanel .card-header {
    border-bottom: 1px solid #E2E8F0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
    min-height: 74px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    overflow: visible !important;
}

body.unified-inbox-page #inboxActiveChatPanel .card-header select.mn-input {
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

body.unified-inbox-page #inboxActiveChatPanel .card-header select.mn-input:focus {
    border-color: var(--color-exp-UIu) !important;
    box-shadow: 0 0 0 3px rgba(9, 95, 62, 0.1) !important;
}

body.unified-inbox-page #inboxActiveChatPanel .card-header button.btn-light {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

body.unified-inbox-page #inboxActiveChatPanel .card-header button.btn-light:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Premium Messaging Bubble Architecture */
body.unified-inbox-page .chat-bubble-card {
    border-radius: 12px !important;
    padding: 10px 14px !important;
    max-width: 70% !important;
    border: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    font-family: var(--font-primary) !important;
}

/* Outgoing messaging bubble: Background: #e8f7f0, Text: #0f172a */
body.unified-inbox-page .chat-msg-bubble.justify-content-end .chat-bubble-card {
    background-color: #e8f7f0 !important;
    color: #0f172a !important;
}

/* Incoming messaging bubble: Background: #ffffff, Text: #0f172a */
body.unified-inbox-page .chat-msg-bubble.justify-content-start .chat-bubble-card {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Internal note override background */
body.unified-inbox-page .chat-bubble-card[style*="background-color: #fef9c3"],
body.unified-inbox-page .chat-bubble-card[style*="background-color: rgb(254, 249, 195)"] {
    background-color: #fef9c3 !important;
    border: 1px solid #fef08a !important;
    color: #78350f !important;
}

/* Bubble text styles */
body.unified-inbox-page .chat-bubble-card .text-dark,
body.unified-inbox-page .chat-bubble-card .text-sm {
    color: #0f172a !important;
}

/* Inside bottom-right metadata layout */
body.unified-inbox-page .chat-bubble-card>.d-flex.justify-content-end.align-items-center {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 6px !important;
    font-size: 10px !important;
    color: #64748b !important;
    width: auto !important;
    align-self: flex-end !important;
}

/* Status checkmark icon color adjustments */
body.unified-inbox-page .chat-bubble-card .msg-status-icon {
    font-size: 13px !important;
    vertical-align: middle !important;
}

/* Capsule Input Engine & Voice Overhaul */
body.unified-inbox-page #inboxMessageInput,
#inboxMessageInput {
    border-radius: 24px !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    padding: 10px 18px !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    transition: border-color 0.15s ease-in-out !important;
    font-family: var(--font-primary) !important;
    font-size: 13.5px !important;
    height: 42px !important;
}

body.unified-inbox-page #inboxMessageInput:focus,
#inboxMessageInput:focus {
    background-color: #ffffff !important;
    border-color: #CBD5E1 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
}

/* Clean, flicker-free hide state for input action buttons */
body.unified-inbox-page #btnSendMessage.d-none,
body.unified-inbox-page #btnVoiceRecord.d-none {
    display: none !important;
}

/* Redesigned Voice Record Microphone Button Matching Left Attach/Plus Button */
body.unified-inbox-page #consolidatedActionsDropdown,
body.unified-inbox-page #btnVoiceRecord {
    height: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    background-color: rgba(17, 24, 39, 0.05) !important;
    color: #475569 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    padding: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

body.unified-inbox-page #consolidatedActionsDropdown:hover,
body.unified-inbox-page #btnVoiceRecord:hover {
    background-color: rgba(17, 24, 39, 0.1) !important;
    color: #0F172A !important;
    box-shadow: none !important;
}

body.unified-inbox-page #consolidatedActionsDropdown:active,
body.unified-inbox-page #btnVoiceRecord:active {
    transform: scale(0.96) !important;
}

body.unified-inbox-page #btnVoiceRecord .material-symbols-rounded {
    font-size: 20px !important;
    color: inherit !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Idle Message Send Button (Retains Brand Green in matching 38px circular format) */
body.unified-inbox-page #btnSendMessage {
    height: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    background-color: #095f3e !important;
    color: #ffffff !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.unified-inbox-page #btnSendMessage:hover {
    background-color: #06402a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(9, 95, 62, 0.25) !important;
}

body.unified-inbox-page #btnSendMessage:active {
    transform: scale(0.96) !important;
}

body.unified-inbox-page #btnSendMessage .material-symbols-rounded {
    font-size: 18px !important;
    color: #ffffff !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 1. Viewport Isolation & Body Reset */
body.unified-inbox-page {
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    background: #f8fafc !important;
}

/* Hide general site headers, mobile header bars, and footers */
body.unified-inbox-page .desktop-header-navbar,
body.unified-inbox-page .mobile-header-bar,
body.unified-inbox-page footer {
    display: none !important;
}

/* 2. Programmatic Sidebar Collapse Overrides (Desktop Only) */
@media (min-width: 992px) {
    body.unified-inbox-page .sidebar-wrapper {
        width: var(--sidebar-width) !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        /* Force visible on desktop */
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
        z-index: 1050 !important;
        display: flex !important;
        background: #ffffff !important;
        box-shadow: none !important;
        transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.unified-inbox-page .main-content {
        margin-left: var(--sidebar-width) !important;
        margin-top: 0 !important;
        height: 100vh !important;
        width: calc(100vw - var(--sidebar-width)) !important;
        overflow: hidden !important;
        background: #f8fafc !important;
        transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.unified-inbox-page .main-content-inner {
        padding: 0 !important;
        margin: 0 !important;
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        border-radius: 0 !important;
    }
}

/* Premium circular interactive hover icon framework */
body.unified-inbox-page .sidebar-wrapper .sidebar-close-btn,
body.unified-inbox-page .sidebar-wrapper .sidebar-expand-hover-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    /* Circular to match the global layout design */
    background-color: #f1f3f4 !important;
    color: #1f2024 !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

body.unified-inbox-page .sidebar-wrapper .sidebar-close-btn:hover,
body.unified-inbox-page .sidebar-wrapper .sidebar-expand-hover-btn:hover {
    background-color: #e8eaed !important;
    color: #000000 !important;
}

/* 4. Strict 3-Column Flex Layout */
#inboxMasterRow,
body.unified-inbox-page #inboxMasterRow,
body.unified-inbox-page .main-content-inner>.row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#inboxConversationsPanel,
#inboxActiveChatPanel,
#inboxProfilePanel,
body.unified-inbox-page #inboxConversationsPanel,
body.unified-inbox-page #inboxActiveChatPanel,
body.unified-inbox-page #inboxProfilePanel {
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Column Widths (Desktop) */
@media (min-width: 992px) {
    #inboxConversationsPanel,
    body.unified-inbox-page #inboxConversationsPanel {
        width: 320px !important;
        min-width: 320px !important;
        max-width: 320px !important;
        flex-shrink: 0 !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
        visibility: visible !important;
        display: flex !important;
    }

    #inboxActiveChatPanel,
    body.unified-inbox-page #inboxActiveChatPanel {
        flex: 1 1 0% !important;
        flex-grow: 1 !important;
        flex-shrink: 1 !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
        min-width: 0 !important;
        visibility: visible !important;
        display: flex !important;
        /* Prevent flex children from overflowing */
    }

    #inboxProfilePanel,
    #right-control-sidebar,
    body.unified-inbox-page #inboxProfilePanel,
    body.unified-inbox-page #right-control-sidebar {
        width: 360px !important;
        min-width: 320px !important;
        max-width: 400px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
        visibility: visible !important;
    }
}

/* Laptop Screen Adaptations (1024px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {

    body.unified-inbox-page #inboxProfilePanel,
    body.unified-inbox-page #right-control-sidebar {
        width: 290px !important;
        /* Scale down smoothly for smaller laptops */
        min-width: 290px !important;
    }

    body.unified-inbox-page #inboxConversationsPanel {
        width: 270px !important;
        /* Scale down left panel to give chat maximum priority */
    }

    /* Scale down padding and fonts proportionally in the right sidebar */
    body.unified-inbox-page #inboxProfilePanel .p-4,
    body.unified-inbox-page #right-control-sidebar .p-4 {
        padding: 16px !important;
    }

    body.unified-inbox-page #crmSidebarTabContent {
        padding: 16px !important;
    }

    body.unified-inbox-page #crmSidebarTabs {
        padding: 12px 16px 0 16px !important;
    }

    body.unified-inbox-page #crmSidebarTabs .nav-link {
        font-size: 10px !important;
    }

    body.unified-inbox-page #inboxProfilePanel h6,
    body.unified-inbox-page #right-control-sidebar h6 {
        font-size: 1rem !important;
    }

    body.unified-inbox-page #inboxProfilePanel small,
    body.unified-inbox-page #right-control-sidebar small,
    body.unified-inbox-page #inboxProfilePanel .text-xs,
    body.unified-inbox-page #right-control-sidebar .text-xs {
        font-size: 11.5px !important;
    }

    body.unified-inbox-page #inboxProfilePanel label,
    body.unified-inbox-page #right-control-sidebar label {
        font-size: 10px !important;
    }
}

/* Large Big Screens (1201px and up) */
@media (min-width: 1201px) {

    body.unified-inbox-page #inboxProfilePanel,
    body.unified-inbox-page #right-control-sidebar {
        width: 380px !important;
        /* Premium wide size for big screens */
        min-width: 380px !important;
    }
}

/* Cards Resets: force fill and remove borders/box-shadows */
body.unified-inbox-page #inboxConversationsPanel .card,
body.unified-inbox-page #inboxActiveChatPanel .card,
body.unified-inbox-page #inboxProfilePanel .card {
    height: 100% !important;
    width: auto !important;
    max-height: 100% !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
}

/* 5. Independent Columns Scroll Zones */
body.unified-inbox-page #inboxContactsContainer {
    flex-grow: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px 0 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body.unified-inbox-page #chatWindow,
body.unified-inbox-page .phone-chat-body,
body.unified-inbox-page .chat-messages-container {
    flex-grow: 1 !important;
    height: auto !important;
    /* Overrides inline style height: 400px */
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: #efeae2 !important;
    background-image: url('../images/wps-background.png') !important;
    background-repeat: repeat !important;
    background-size: 412px auto !important;
    background-attachment: scroll !important;
}

/* Support dark-mode media preferences */
@media (prefers-color-scheme: dark) {

    body.unified-inbox-page #chatWindow,
    body.unified-inbox-page .phone-chat-body,
    body.unified-inbox-page .chat-messages-container {
        background-color: #0b141a00 !important;
        background-image: linear-gradient(rgba(11, 20, 26, 0.95), rgba(11, 20, 26, 0.95)), url('../images/wps-background.png') !important;
        background-blend-mode: difference !important;
        /* Automatically inverts the black doodles to white in dark mode */
    }
}

html.munnottu-dark body.unified-inbox-page #chatWindow,
html.munnottu-dark body.unified-inbox-page .phone-chat-body,
html.munnottu-dark body.unified-inbox-page .chat-messages-container {
    background-color: #0b141a00 !important;
    background-image: linear-gradient(rgba(11, 20, 26, 0.95), rgba(11, 20, 26, 0.95)), url('../images/wps-background.png') !important;
    background-blend-mode: difference !important;
}

body.unified-inbox-page #crmSidebarTabContent {
    flex-grow: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    padding: 24px !important;
}

/* Sleek minimalist underline tab navigation */
body.unified-inbox-page #crmSidebarTabs {
    display: flex !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 15px 24px 0 24px !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
    width: 100% !important;
}

body.unified-inbox-page #crmSidebarTabs .nav-item {
    flex: 1 !important;
    text-align: center !important;
}

body.unified-inbox-page #crmSidebarTabs .nav-link {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    font-size: 11.5px !important;
    padding: 12px 2px !important;
    transition: all 0.2s ease-in-out !important;
    width: 100% !important;
    box-shadow: none !important;
}

body.unified-inbox-page #crmSidebarTabs .nav-link:hover {
    color: #0f172a !important;
}

body.unified-inbox-page #crmSidebarTabs .nav-link.active {
    border-bottom: 2px solid var(--color-exp-UIu) !important;
    color: var(--color-exp-UIu) !important;
    font-weight: 600 !important;
}

/* Sleek minimalist scrollbar tracks */
body.unified-inbox-page #crmSidebarTabContent::-webkit-scrollbar,
body.unified-inbox-page #chatWindow::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
}

body.unified-inbox-page #crmSidebarTabContent::-webkit-scrollbar-track,
body.unified-inbox-page #chatWindow::-webkit-scrollbar-track {
    background: transparent !important;
}

body.unified-inbox-page #crmSidebarTabContent::-webkit-scrollbar-thumb,
body.unified-inbox-page #chatWindow::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
}

body.unified-inbox-page #crmSidebarTabContent::-webkit-scrollbar-thumb:hover,
body.unified-inbox-page #chatWindow::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* Hide scrollbar completely for contact conversation list while maintaining vertical scroll */
body.unified-inbox-page #inboxContactsContainer::-webkit-scrollbar,
#inboxContactsContainer::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
    display: none !important;
}

body.unified-inbox-page #inboxContactsContainer,
#inboxContactsContainer {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Notes container and commerce panel custom adjustments to prevent nested scrolls */
body.unified-inbox-page #notesContainer {
    flex-grow: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

body.unified-inbox-page #tab-commerce .flex-grow-1.overflow-y-auto {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
}

/* 6. Mobile Responsiveness and Off-canvas Overlay Switching */
@media (max-width: 991.98px) {
    body.unified-inbox-page .main-content {
        margin-left: 0 !important;
        width: 100vw !important;
    }

    body.unified-inbox-page .sidebar-wrapper {
        width: 260px !important;
        transform: translateX(-100%) !important;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        z-index: 1050 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
    }

    body.unified-inbox-page .sidebar-wrapper.show {
        transform: translateX(0) !important;
    }

    body.unified-inbox-page .sidebar-backdrop {
        z-index: 1045 !important;
    }

    body.unified-inbox-page .main-content-inner {
        position: relative !important;
    }

    /* Mobile tab switcher placed at the top of content */
    body.unified-inbox-page .d-lg-none.mb-3 {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 52px !important;
        margin: 0 !important;
        padding: 6px 12px !important;
        background: #ffffff !important;
        z-index: 1010 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        display: block !important;
    }

    body.unified-inbox-page .main-content-inner>.row {
        flex-direction: column !important;
        position: absolute !important;
        top: 52px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: calc(100% - 52px) !important;
        width: 100% !important;
    }

    body.unified-inbox-page #inboxConversationsPanel,
    body.unified-inbox-page #inboxActiveChatPanel,
    body.unified-inbox-page #inboxProfilePanel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1000 !important;
        background: #ffffff !important;
    }

    body.unified-inbox-page #inboxConversationsPanel .premium-card,
    body.unified-inbox-page #inboxActiveChatPanel .premium-card,
    body.unified-inbox-page #inboxProfilePanel .premium-card {
        height: 100% !important;
        border-radius: 0 !important;
    }

    /* Ensure toggling logic handles d-none correctly */
    body.unified-inbox-page #inboxConversationsPanel.d-none,
    body.unified-inbox-page #inboxActiveChatPanel.d-none,
    body.unified-inbox-page #inboxProfilePanel.d-none {
        display: none !important;
    }
}

/* Premium Filter Popover Layout styling */
body.unified-inbox-page .filter-popover {
    position: absolute !important;
    top: 48px !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 320px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    max-height: 480px !important;
    display: none !important;
    flex-direction: column !important;
}

body.unified-inbox-page .filter-popover.show {
    display: flex !important;
}

body.unified-inbox-page .filter-popover form {
    display: flex !important;
    flex-direction: column !important;
    max-height: 100% !important;
    margin: 0 !important;
}

body.unified-inbox-page .filter-popover-content {
    flex-grow: 1 !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
}

body.unified-inbox-page .filter-popover-content::-webkit-scrollbar {
    width: 4px !important;
}

body.unified-inbox-page .filter-popover-content::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
}

body.unified-inbox-page .filter-section-title {
    font-family: var(--font-heading) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
}

body.unified-inbox-page .filter-popover .form-check {
    margin-bottom: 6px !important;
}

body.unified-inbox-page .filter-popover .form-check-label {
    font-size: 12.5px !important;
    color: #334155 !important;
    font-family: var(--font-primary) !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}


body.unified-inbox-page .filter-popover .mn-input {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 13px !important;
    color: #1e293b !important;
    font-family: var(--font-primary) !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease-in-out !important;
    background-color: #f8fafc !important;
}

body.unified-inbox-page .filter-popover .mn-input:focus {
    border-color: var(--color-exp-UIu) !important;
    box-shadow: 0 0 0 3px rgba(9, 95, 62, 0.15) !important;
    background-color: #ffffff !important;
}

/* Premium Context Menu styling */
#customContextMenu,
.custom-context-menu {
    position: fixed !important;
    /* Changes from absolute to fixed for viewport safety */
    background-color: #ffffff !important;
    /* Hard solid white background */
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 200px !important;
    min-width: 180px !important;
    max-width: 220px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    z-index: 99999 !important;
    /* Force to topmost viewport stack layer */
    padding: 6px 4px !important;
    margin: 0 !important;
    display: none;
    /* Controlled via JS toggle */
    box-sizing: border-box !important;
}

#customContextMenu .dropdown-item,
.custom-context-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    color: #334155 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    background: transparent !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

#customContextMenu .dropdown-item:hover,
.custom-context-menu .dropdown-item:hover {
    background-color: #f1f5f9 !important;
    /* Sleek hover slate tint */
    color: #0f172a !important;
}

#customContextMenu .dropdown-item.text-danger:hover,
.custom-context-menu .dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
    /* Soft light red tint */
    color: #ef4444 !important;
}

#customContextMenu .dropdown-item .material-symbols-rounded,
.custom-context-menu .dropdown-item .material-symbols-rounded {
    font-size: 18px !important;
    color: #64748b !important;
    /* Soft slate icon color */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease-in-out !important;
}

#customContextMenu .dropdown-item:hover .material-symbols-rounded,
.custom-context-menu .dropdown-item:hover .material-symbols-rounded {
    color: #0f172a !important;
}

#customContextMenu .dropdown-item.text-danger:hover .material-symbols-rounded,
.custom-context-menu .dropdown-item.text-danger:hover .material-symbols-rounded {
    color: #ef4444 !important;
}

#customContextMenu .dropdown-divider,
.custom-context-menu .dropdown-divider {
    border-top: 1px solid #f1f5f9 !important;
    margin: 4px 8px !important;
}

/* ==========================================================================
   TEMPLATE MESSAGE MODAL & WHATSAPP MOCKUP COMPONENTS
   ========================================================================== */
#templateMessageModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

#templateMessageModal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    padding: 1.25rem 1.75rem;
}

#templateMessageModal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f8f9fa;
    padding: 1rem 1.75rem;
}

#templateMessageModal .custom-input,
#templateMessageModal select.mn-input {
    border: 1.5px solid var(--input-border) !important;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    font-size: 0.9rem !important;
    font-weight: var(--font-weight-medium);
    color: #1a202c;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

#templateMessageModal .custom-input:focus,
#templateMessageModal select.mn-input:focus {
    border-color: var(--input-focus-border) !important;
    box-shadow: 0 0 0 3px var(--input-focus-shadow) !important;
    outline: none;
}

/* Variable inputs container styling */
#templateVariablesContainer {
    background-color: #f8fafc !important;
    border: 1.5px dashed var(--input-border) !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
}

/* Individual variable fields card style */
.variable-card {
    background: #ffffff;
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.variable-card:hover {
    border-color: var(--input-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.variable-card:last-child {
    margin-bottom: 0;
}

.variable-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Left Column layout and alignment */
.left-pane-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

/* Right Column layout styling */
.right-pane-preview-container {
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 2.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
    position: relative;
    overflow: hidden;
}

/* Subtle grid lines background overlay for preview */
.right-pane-preview-container::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
}

/* Smartphone Frame styling and scaling */
.wa-phone-container,
.smartphone-frame {
    width: 100%;
    max-width: 310px;
    height: 490px;
    border-radius: 36px !important;
    border: 10px solid #1e293b !important;
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1);
    transform-origin: center center;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Sleek pill-shaped notch */
.smartphone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 14px;
    background-color: #1e293b;
    border-radius: 10px;
    z-index: 12;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.15);
}

/* Inner phone screen */
.wa-chat-bg,
.smartphone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 26px;
    /* Space for status bar */
    position: relative;
    background-color: #efeae2;
    background-image: url('https://user-images.githubusercontent.com/15075759/145196467-3397e4a7-c837-47b5-bc44-bc487b9264c8.png');
    background-repeat: repeat;
    background-size: auto;
}

/* Status bar style */
.simulated-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background-color: #00735f;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 0 24px;
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-primary);
    z-index: 11;
}

/* Chat header overlay shadow */
.simulated-chat-header {
    background-color: #008069;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    z-index: 9;
}

/* WhatsApp Chat Bubble style */
.whatsapp-bubble-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
    width: 100%;
}

.wa-chat-bubble,
.whatsapp-bubble {
    background-color: #d9fdd3;
    border-radius: 8px;
    border-top-right-radius: 0;
    max-width: 88%;
    font-size: 12px;
    padding: 8px 12px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    font-family: var(--font-primary);
    word-break: break-word;
}

/* Tail for whatsapp bubble */
.wa-chat-bubble::after,
.whatsapp-bubble::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 8px;
    height: 13px;
    background: radial-gradient(circle at 0 100%, transparent 8px, #d9fdd3 8px);
}

/* WhatsApp button custom links */
.whatsapp-template-btn {
    color: #0066f9 !important;
    font-weight: var(--font-weight-semibold);
    font-size: 11.5px;
    padding: 8px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-left: -12px;
    margin-right: -12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.15s ease;
}

.whatsapp-template-btn:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.whatsapp-template-btn:first-of-type {
    margin-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Responsive Scaling rules for Smartphone Frame on smaller screens */
@media (max-width: 576px) {
    .right-pane-preview-container {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .wa-phone-container,
    .smartphone-frame {
        transform: scale(0.9);
        margin: -20px 0;
    }
}

@media (max-width: 375px) {
    .wa-phone-container,
    .smartphone-frame {
        transform: scale(0.8);
        margin: -40px 0;
    }
}

/* ==========================================================================
   EDIT CONTACT MODAL OVERRIDES
   ========================================================================== */
#editContactModal {
    font-family: var(--font-primary) !important;
}

#editContactModal .custom-input {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: var(--input-border-radius) !important;
    font-size: 13.5px !important;
    font-family: var(--font-primary) !important;
    padding: 0.7rem 1.25rem !important;
    /* Scaled up comfortable padding */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease-in-out;
    color: #1e293b !important;
}

#editContactModal .custom-input:focus {
    background-color: #ffffff !important;
    border-color: var(--input-focus-border) !important;
    box-shadow: 0 0 0 3px var(--input-focus-shadow), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}

#editContactModal select.custom-input {
    padding-right: 2.5rem !important;
}

#editContactModal label.form-label {
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.35rem !important;
}

#editContactModal .modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
    background-color: #ffffff !important;
}

#editContactModal .modal-footer {
    border-top: 1px solid #f1f5f9 !important;
    background-color: #f8fafc !important;
    padding: 1.25rem !important;
}

#editContactModal .modal-title {
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: -0.2px !important;
}

#editContactModal .btn-cancel {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.75rem !important;
    border: none !important;
    transition: all 0.2s ease;
}

#editContactModal .btn-cancel:hover {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
}

#editContactModal .btn-save {
    background-color: var(--color-exp-UIu) !important;
    color: #ffffff !important;
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0.65rem 2rem !important;
    border: none !important;
    transition: all 0.2s ease;
}

#editContactModal .btn-save:hover {
    background-color: #074a30 !important;
    box-shadow: 0 4px 12px rgba(9, 95, 62, 0.2) !important;
}


#editContactModal .tags-input-container {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--input-border-radius) !important;
    padding: 0.5rem 1.25rem !important;
    /* Scaled up padding */
    min-height: 46px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    font-family: var(--font-primary) !important;
}

#editContactModal .tags-input-container:focus-within {
    background-color: #ffffff !important;
    border-color: var(--input-focus-border) !important;
    box-shadow: 0 0 0 3px var(--input-focus-shadow), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

#editContactModal .tags-input-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    /* Pill badges */
    border: 1px solid transparent;
    margin-right: 6px;
    margin-bottom: 4px;
}

#editContactModal .tag-remove-btn {
    background: none !important;
    border: none !important;
    color: inherit !important;
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 0 0 0 4px !important;
    margin: 0 !important;
    cursor: pointer;
}

#editContactModal .tag-remove-btn:hover {
    font-weight: var(--font-weight-bold);
}

#editContactModal .tags-inline-input {
    font-family: var(--font-heading) !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
}

/* WhatsApp Received/White Message Chat Bubble */
.wa-chat-bubble-white {
    background-color: #ffffff;
    border-radius: 8px;
    border-top-right-radius: 0;
    max-width: 85%;
    font-size: 13.5px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    font-family: var(--font-primary);
    word-break: break-word;
    min-width: 200px;
}

.wa-chat-bubble-white::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 8px;
    height: 13px;
    background: radial-gradient(circle at 0 100%, transparent 8px, #ffffff 8px);
}

/* Auth Pages Styles (No Tailwind CSS dependency) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 1rem;
    font-family: var(--font-primary) !important;
}
.auth-card {
    width: 100%;
    max-width: 360px;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
@media (min-width: 576px) {
    .auth-card {
        padding: 0;
    }
}
.auth-card.auth-card-lg {
    max-width: 400px;
}
.auth-logo {
    max-height: 30px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
.auth-title {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-weight-bold);
    color: #0f172a;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    text-align: center;
}
.auth-subtitle {
    font-family: var(--font-primary) !important;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 1.5rem;
}
/* Inputs */
.auth-input {
    width: 100%;
    padding: 0.785rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: var(--font-primary) !important;
    transition: all 0.2s ease;
}
.auth-input:focus {
    border-color: #000000;
    outline: none;
}
/* Buttons */
.auth-btn-primary {
    display: block;
    width: 100%;
    padding: 0.785rem 1rem;
    background-color: #000000 !important; /* Premium Executive Solid Black on Active */
    color: #FFFFFF !important;
    font-family: var(--font-primary) !important;
    font-weight: var(--font-weight-semibold);
    border-radius: 8px !important;
    border: none;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.auth-btn-primary:hover:not(:disabled) {
    background-color: #a6a6ae !important;
    color: #ffffff !important;
}
.auth-btn-primary:disabled {
    background-color: #a6a6ae !important; /* Soft premium light gray shade */
    color: #e7e9eb !important; /* Muted text shade */
    cursor: not-allowed !important;
    box-shadow: none !important;
}
/* Social Login Buttons */
.auth-btn-social {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 16px !important;
    width: 100% !important;
    height: 44px !important; /* Premium compact height matching ElevenLabs */
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important; /* Soft razor-thin line */
    border-radius: 8px !important; /* Strict crisp 8px radius */
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0F172A !important;
    position: relative;
    transition: all 0.2s ease-in-out !important;
}
.auth-btn-social:hover {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
}
.auth-btn-social span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.auth-btn-social svg, 
.auth-btn-social img,
.auth-btn-social .auth-social-icon {
    width: 18px !important;   /* Exact international luxury scale */
    height: 18px !important;  /* Perfect square aspect ratio */
    margin-right: 12px !important;       /* Precise spacing before the separator/text */
    flex-shrink: 0 !important;
    display: inline-block;
    vertical-align: middle;
}
/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.75rem 0 !important; /* Balanced room around the 'OR' line */
}
.auth-divider-line {
    height: 1px;
    background-color: #E2E8F0;
    margin: 1.75rem 0 !important;
    width: 100%;
}
.auth-form-group {
    margin-bottom: 1.25rem !important; /* Elegant 20px gap between input fields */
}
.auth-logo-wrapper {
    margin-bottom: 2.5rem !important; /* Premium 40px spacing below logo */
}
.auth-title-container {
    margin-bottom: 1.75rem !important; /* Space between title block and first element */
}
.auth-divider hr {
    flex-grow: 1;
    border-color: #e2e8f0;
    margin: 0;
}
.auth-divider span {
    padding: 0 0.75rem;
    color: #94a3b8;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-primary) !important;
}
.shadow-premium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}
.auth-error-alert {
    border-radius: 8px;
    font-size: 0.84375rem;
    padding: 0.625rem 0.75rem;
    font-family: var(--font-primary) !important;
}
.auth-link {
    font-size: 0.8125rem;
    color: #64748b;
    text-decoration: none;
    font-family: var(--font-primary) !important;
}
.auth-link:hover {
    color: #0f172a;
    text-decoration: underline;
}
.auth-brand-link {
    font-weight: var(--font-weight-semibold);
    color: #000000;
    text-decoration: underline;
}
.auth-brand-link:hover {
    color: #1a1a1a;
}
.password-toggle-btn {
    z-index: 10;
    display: flex;
    align-items: center;
    color: #94a3b8;
    background: transparent;
    border: none;
    padding-right: 1rem;
}
.password-toggle-btn:hover {
    color: #0f172a;
}
.auth-social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}
.auth-divider-line {
    border-top: 1px solid #e2e8f0;
    margin: 1.75rem 0;
}

/* --- Unified SaaS Typography Tokens --- */
.txt-auth-title {
    font-family: var(--font-primary) !important;
    font-size: 24px !important; /* 1.5rem */
    font-weight: 700 !important;
    color: var(--dark) !important;
    letter-spacing: -0.025em !important;
    line-height: 1.25 !important;
}

.txt-auth-subtitle {
    font-family: var(--font-primary) !important;
    font-size: 14px !important; /* 0.875rem */
    font-weight: 400 !important;
    color: #64748b !important; /* Muted Slate Slate-500 */
    line-height: 1.5 !important;
}

.txt-auth-label {
    font-family: var(--font-primary) !important;
    font-size: 13px !important; /* Compact clean input label */
    font-weight: 500 !important;
    color: #334155 !important; /* Slate-700 */
    margin-bottom: 6px !important;
    display: inline-block;
}

.txt-auth-md {
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.txt-auth-sm {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.txt-auth-xs {
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
}

.txt-auth-link {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}
.txt-auth-link:hover {
    color: var(--dark) !important;
}

/* ==========================================================================
   Unified Header Navbar Icon SVG Rules
   ========================================================================== */
.navbar-icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: var(--gray-700, #1f1f1f);
    transition: color 0.2s ease, fill 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}
.sidebar-icon-svg {
    width: 20px !important; /* Standardize elegant navigation icon size */
    height: 20px !important;
    fill: currentColor !important;
    margin: 0 !important; /* Critical: Rely on flexbox gap for layout symmetry */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0 !important;
    transition: all 0.2s ease-in-out !important;
}

/* Ensure settings gear button does not shift off-center */
.sidebar-settings-gear-btn .sidebar-icon-svg {
    margin-right: 0 !important;
}

/* Target paths inside to inherit current parent color smoothly */
.sidebar-icon-svg path {
    fill: currentColor !important;
}

/* Specific overrides for larger illustrations to preserve their scale */
.search-empty-icon .navbar-icon-svg {
    width: 34px;
    height: 34px;
}
#searchNoResultsState .navbar-icon-svg {
    width: 36px;
    height: 36px;
}

/* Ensure paths also transition correctly */
.navbar-icon-svg path {
    fill: currentColor;
    transition: fill 0.2s ease;
}

/* Specific red color for Sign Out / Log Out button hover states */
.profile-logout-link:hover .navbar-icon-svg,
.profile-logout-link:hover .navbar-icon-svg path,
.dropdown-item.text-danger:hover .navbar-icon-svg,
.dropdown-item.text-danger:hover .navbar-icon-svg path {
    color: #ef4444 !important;
    fill: #ef4444 !important;
}


/* ==========================================================================
   UNIVERSAL ACCESSIBLE ICON BUTTONS RESET (Munnottu Brand)
   ========================================================================== */
.header-icon-btn,
.dropdown-toggle-btn-custom {
    display: inline-flex !important;
}

.sidebar-menu-trigger,
.header-icon-btn,
.dropdown-toggle-btn-custom {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

/* Standard sizing and borders for header buttons & settings gear dropdown */
.header-icon-btn,
.dropdown-toggle-btn-custom {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--input-border) !important;
    background-color: #ffffff !important;
}

/* Hover States: Munnottu Brand Green Tinted Hover */
.sidebar-menu-trigger:hover,
.header-icon-btn:hover,
.dropdown-toggle-btn-custom:hover {
    background-color: rgba(9, 95, 62, 0.06) !important;
    color: var(--color-exp-UIu) !important;
}

/* Keyboard Accessibility Focus Indicator Rings */
.sidebar-menu-trigger:focus-visible,
.header-icon-btn:focus-visible,
.dropdown-toggle-btn-custom:focus-visible,
.nav-item-link:focus-visible,
.sidebar-menu li a:focus-visible {
    outline: 2px solid var(--color-exp-UIu) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(9, 95, 62, 0.15) !important;
}

button.dropdown-item:focus-visible,
a.dropdown-item:focus-visible {
    outline: 2px solid var(--color-exp-UIu) !important;
    outline-offset: -2px !important;
    box-shadow: 0 0 0 4px rgba(9, 95, 62, 0.15) !important;
}

button.dropdown-item,
a.dropdown-item {
    width: 100% !important;
    text-align: left !important;
    border: none !important;
    background: transparent !important;
}

button.nav-item-link {
    border: none !important;
    background: transparent;
    text-align: left !important;
    cursor: pointer !important;
}

/* ==========================================================================
   MUNNOTTU CUSTOM BUTTON UI SYSTEM (.mn-btn)
   ========================================================================== */

/* Base Component Structure */
.mn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-medium);
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1.5px solid transparent;
    border-radius: 8px !important;
    background-color: transparent;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Pseudo-States Enforcements */
.mn-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.mn-btn:focus-visible {
    outline: 2px solid #111827 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.15) !important;
}

/* Visual Variants */

/* Brand Volt/Lime (Primary App Action) */
.mn-btn-main {
    background-color: #D0FF71 !important;
    border-color: #d1ff7314 !important;
    color: #000000 !important;
}
.mn-btn-main:hover:not(:disabled) {
    background-color: #66FF80 !important;
    border-color: #66FF80 !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1) !important;
}
.mn-btn-main-tonal {
    background-color: #F3FFD8 !important;
    color: #111827 !important;
    border-color: transparent !important;
}
.mn-btn-main-tonal:hover:not(:disabled) {
    background-color: #e2f8b5 !important;
}

/* Premium Charcoal Slate */
.mn-btn-filled {
    background-color: #111827 !important;
    border-color: #111827 !important;
    color: #ffffff !important;
}
.mn-btn-filled:hover:not(:disabled) {
    background-color: #1f2937 !important;
    border-color: #1f2937 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1) !important;
}

.mn-btn-black {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}
.mn-btn-black:hover:not(:disabled) {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.mn-btn-tonal {
    background-color: rgba(17, 24, 39, 0.05) !important;
    color: #111827 !important;
    border-color: transparent !important;
    box-shadow: none;
}
.mn-btn-tonal:hover:not(:disabled) {
    background-color: rgba(17, 24, 39, 0.1) !important;
    color: #111827 !important;
}

.mn-btn-outlined {
    border: 1.5px solid rgba(17, 24, 39, 0.2) !important;
    background-color: transparent !important;
    color: #111827 !important;
}
.mn-btn-outlined:hover:not(:disabled) {
    background-color: rgba(17, 24, 39, 0.05) !important;
    border-color: #ffffff !important;
    color: #111827 !important;
}

.mn-btn-text {
    background-color: transparent !important;
    color: #111827 !important;
    border-color: transparent !important;
    box-shadow: none;
}
.mn-btn-text:hover:not(:disabled) {
    background-color: rgba(17, 24, 39, 0.05) !important;
    color: #111827 !important;
}

/* Success/Emerald Green */
.mn-btn-success {
    background-color: var(--color-exp-UIu) !important;
    border-color: var(--color-exp-UIu) !important;
    color: #ffffff !important;
}
.mn-btn-success:hover:not(:disabled) {
    background-color: #053b23 !important;
    border-color: #053b23 !important;
    box-shadow: 0 4px 12px rgba(9, 95, 62, 0.15) !important;
}
.mn-btn-success-outline {
    border: 1.5px solid rgba(9, 95, 62, 0.25) !important;
    background-color: transparent !important;
    color: var(--color-exp-UIu) !important;
}
.mn-btn-success-outline:hover:not(:disabled) {
    background-color: rgba(9, 95, 62, 0.06) !important;
    border-color: var(--color-exp-UIu) !important;
    color: var(--color-exp-UIu) !important;
}
.mn-btn-success-tonal {
    background-color: rgba(9, 95, 62, 0.06) !important;
    color: var(--color-exp-UIu) !important;
    border-color: transparent !important;
}
.mn-btn-success-tonal:hover:not(:disabled) {
    background-color: rgba(9, 95, 62, 0.12) !important;
}

/* Danger/Crimson Red */
.mn-btn-danger {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}
.mn-btn-danger:hover:not(:disabled) {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15) !important;
}
.mn-btn-danger-outline {
    border: 1.5px solid rgba(220, 38, 38, 0.2) !important;
    background-color: transparent !important;
    color: #dc2626 !important;
}
.mn-btn-danger-outline:hover:not(:disabled) {
    background-color: rgba(220, 38, 38, 0.05) !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}
.mn-btn-danger-tonal {
    background-color: rgba(220, 38, 38, 0.06) !important;
    color: #dc2626 !important;
    border-color: transparent !important;
}
.mn-btn-danger-tonal:hover:not(:disabled) {
    background-color: rgba(220, 38, 38, 0.12) !important;
}

/* Warning/Amber Orange */
.mn-btn-warning {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}
.mn-btn-warning:hover:not(:disabled) {
    background-color: #b45309 !important;
    border-color: #b45309 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15) !important;
}
.mn-btn-warning-outline {
    border: 1.5px solid rgba(217, 119, 6, 0.25) !important;
    background-color: transparent !important;
    color: #d97706 !important;
}
.mn-btn-warning-outline:hover:not(:disabled) {
    background-color: rgba(217, 119, 6, 0.06) !important;
    border-color: #d97706 !important;
    color: #d97706 !important;
}
.mn-btn-warning-tonal {
    background-color: rgba(217, 119, 6, 0.06) !important;
    color: #d97706 !important;
    border-color: transparent !important;
}
.mn-btn-warning-tonal:hover:not(:disabled) {
    background-color: rgba(217, 119, 6, 0.12) !important;
}

/* Info/Sky Blue */
.mn-btn-info {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}
.mn-btn-info:hover:not(:disabled) {
    background-color: #0369a1 !important;
    border-color: #0369a1 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
}
.mn-btn-info-outline {
    border: 1.5px solid rgba(2, 132, 199, 0.25) !important;
    background-color: transparent !important;
    color: #0284c7 !important;
}
.mn-btn-info-outline:hover:not(:disabled) {
    background-color: rgba(2, 132, 199, 0.06) !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}
.mn-btn-info-tonal {
    background-color: rgba(2, 132, 199, 0.06) !important;
    color: #0284c7 !important;
    border-color: transparent !important;
}
.mn-btn-info-tonal:hover:not(:disabled) {
    background-color: rgba(2, 132, 199, 0.12) !important;
}


/* Size Matrix */
.mn-btn-sm {
    padding: 6px 12px !important;
    font-size: 0.75rem !important; /* 12px */
    border-radius: 6px !important;
}

.mn-btn-md {
    padding: 10px 20px !important;
    font-size: 0.875rem !important; /* 14px */
    border-radius: 8px !important;
}

.mn-btn-lg {
    padding: 14px 28px !important;
    font-size: 1rem !important; /* 16px */
    border-radius: 8px !important;
}

.mn-btn-icon-only {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}
.mn-btn-icon-only.mn-btn-sm {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
}
.mn-btn-icon-only.mn-btn-md {
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
}
.mn-btn-icon-only.mn-btn-lg {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
}

/* Layout Configurations */
.mn-btn-with-icon-start {
    gap: 8px !important;
}
.mn-btn-with-icon-end {
    gap: 8px !important;
}

.mn-btn-block {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Disabled State */
.mn-btn:disabled,
.mn-btn.mn-btn-disabled {
    opacity: 0.5 !important;
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Loading Workflow */
.mn-btn-loading {
    position: relative !important;
    color: transparent !important;
    cursor: wait !important;
    pointer-events: none !important;
}
.mn-btn-loading::after {
    content: "" !important;
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -8px !important;
    margin-left: -8px !important;
    border: 2px solid transparent !important;
    border-top-color: currentColor !important;
    border-radius: 50% !important;
    animation: mn-btn-spinner 0.6s linear infinite !important;
}

@keyframes mn-btn-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   PREMIUM CARD HEADER & TYPOGRAPHY TOKENS
   ========================================================================== */
.mn-card-header-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 24px !important; /* Standardized to 24px to eliminate the 18px alignment shifting defect */
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.mn-card-title {
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.mn-card-subtitle {
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   HORIZONTAL COMPACT FILE DROPZONE COMPONENT (EXACT SCREENSHOT STYLE)
   ========================================================================== */
.mn-dropzone-box {
    background-color: #ffffff !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 35px 24px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
}

.mn-dropzone-box:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
}

.mn-dropzone-icon-card {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 0 !important;
}

.mn-dropzone-text-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
}

.mn-dropzone-title {
    font-family: var(--font-primary) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.3 !important;
}

.mn-dropzone-subtitle {
    font-family: var(--font-primary) !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* ==========================================================================
   UPLOADED FILE PREVIEW CARD COMPONENT (EXACT SCREENSHOT STYLE - NO PLAY BTN)
   ========================================================================== */
.mn-uploaded-file-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 12px 18px !important;
    display: none;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 16px !important;
}

.mn-uploaded-file-card.show-card {
    display: flex !important;
}

.mn-uploaded-file-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
}

.mn-uploaded-file-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    background-color: #f1f5f9 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mn-uploaded-file-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.mn-uploaded-file-name {
    font-family: var(--font-primary) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 280px !important;
}

.mn-uploaded-file-meta {
    font-family: var(--font-primary) !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.mn-uploaded-file-meta .meta-divider {
    color: #cbd5e1 !important;
}

.mn-uploaded-file-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.mn-uploaded-file-delete-btn {
    background: transparent !important;
    border: none !important;
    padding: 6px !important;
    color: #64748b !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

.mn-uploaded-file-delete-btn:hover {
    color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* ==========================================================================
   COMPACT TABLE TOOLBAR UTILITIES
   ========================================================================== */
.mn-btn.mn-btn-sm {
    height: 36px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
}

.mn-input.mn-input-sm,
.mn-input-group-merged.mn-input-sm {
    height: 36px !important;
    font-size: 13px !important;
}

.mn-input-group-merged.mn-input-sm input {
    height: 34px !important;
    padding-left: 38px !important; /* Adjusted for smaller icon space */
}

.mn-input-group-merged.mn-input-sm .mn-icon-left {
    left: 10px !important;
    font-size: 16px !important;
}

@media (max-width: 1024px) {
    .mn-card-header-wrapper .mn-btn-text {
        display: none !important;
    }
    .mn-card-header-wrapper .mn-btn {
        padding: 8px !important; /* Make it a square icon button */
        justify-content: center !important;
    }
    .mn-card-header-wrapper .mn-input-group-merged {
        flex-grow: 1 !important; /* Allow search bar to fill remaining space */
    }
}

/* ==========================================================================
   SEGMENTED NAVIGATION CONTROLS & TAB SAFEGUARDS
   ========================================================================== */
.tab-link-btn {
    border-radius: 6px !important;
    font-family: var(--font-heading) !important;
    color: #64748b !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.tab-link-btn.active {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    background-color: #ffffff !important;
    color: #121824 !important;
}

.tab-link-btn:hover:not(.active) {
    color: #0f172a !important;
}

/* Tab Display Safeguard to prevent overlapping layout conflicts */
.tab-content > .tab-pane:not(.active) {
    display: none !important;
}

/* ==========================================================================
   UNIFIED RESPONSIVE TOOLBAR COMPACT STANDARDS (<= 1024px Only)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Hide the text portion ONLY inside buttons specifically marked with the responsive utility class */
    .mn-btn-responsive-icon .mn-btn-text {
        display: none !important;
    }
    
    /* Force Condition A buttons into perfectly uniform square icon blocks */
    .mn-btn-responsive-icon {
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    /* Prevent toolbar elements and wrappers from breaking out or pushing card containers horizontally */
    .mn-card-header-wrapper,
    #defaultToolbar,
    #bulkActionsToolbar,
    #groupsBulkActionsToolbar {
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Allow the search bar wrapper to expand into remaining available space */
    .mn-input-group-merged {
        flex-grow: 1 !important;
    }
}

/* Enforce strict layout constraints on global container cards */
.premium-card, 
.mn-card,
.tab-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important; /* CRITICAL: Prevent flex item stretch */
}

/* Ensure hidden tab panes do not introduce unpredictable width vectors */
.tab-content > .tab-pane {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* CRITICAL: Prevent flex item stretch */
}
.tab-content > .tab-pane.active {
    display: block !important;
}
.tab-content > .tab-pane.active.d-flex {
    display: flex !important;
}

/* ==========================================================================
   UNIVERSAL SINGLE GLOBAL RADIO BUTTON SYSTEM (Crisp 18px Centered Green Dot)
   ========================================================================== */
.mn-radio-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    user-select: none !important;
}

/* Bulletproof Universal Custom Radio Engine Across Entire SaaS Platform */
input[type="radio"],
input[type="radio"].mn-radio-input,
input[type="radio"].form-check-input,
.mn-radio input[type="radio"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    all: unset !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    border: 2px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

input[type="radio"]:hover,
input[type="radio"].mn-radio-input:hover,
input[type="radio"].form-check-input:hover,
.mn-radio input[type="radio"]:hover {
    border-color: #095f3e !important;
}

input[type="radio"]:checked,
input[type="radio"].mn-radio-input:checked,
input[type="radio"].form-check-input:checked,
.mn-radio input[type="radio"]:checked {
    border-color: #095f3e !important;
    background-color: #ffffff !important;
}

input[type="radio"]:checked::before,
input[type="radio"].mn-radio-input:checked::before,
input[type="radio"].form-check-input:checked::before,
.mn-radio input[type="radio"]:checked::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    width: 9px !important;
    height: 9px !important;
    background-color: #095f3e !important;
    border-radius: 50% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Perfect 50%/50% mathematical centering */
    box-sizing: border-box !important;
}

input[type="radio"]:focus-visible,
input[type="radio"].mn-radio-input:focus-visible,
input[type="radio"].form-check-input:focus-visible,
.mn-radio input[type="radio"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(9, 95, 62, 0.2) !important;
}

/* Utility to ensure top pick campaign cards and WATI radio labels completely hide the inner selector bubbles */
.top-campaign-card-wrapper input[type="radio"].mn-radio-input,
.top-campaign-card-wrapper input[type="radio"].form-check-input,
.wati-radio-label input[type="radio"],
.wati-radio-group input[type="radio"] {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.wati-radio-label input[type="radio"]::before,
.wati-radio-group input[type="radio"]::before {
    display: none !important;
    content: none !important;
}

/* Primary Action Controls (Brand Green) */
.mn-btn-primary {
    background-color: var(--color-exp-UIu) !important;
    border-color: var(--color-exp-UIu) !important;
    color: #ffffff !important;
}
.mn-btn-primary:hover:not(:disabled) {
    background-color: #053b23 !important;
    border-color: #053b23 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(9, 95, 62, 0.15) !important;
}

/* ==========================================================================
   Premium Onboarding Overhaul Styling Suite
   ========================================================================== */

/* Isolated Onboarding Viewport Architecture */
.mn-onboarding-master-viewport {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* User Profile Greetings Row Header */
.mn-welcome-hero-deck {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
}

.mn-avatar-shape {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background-color: #095F3E !important;
    color: #ffffff !important;
    transition: transform 0.2s ease !important;
}

.mn-avatar-shape:hover {
    transform: scale(1.05) !important;
}

.mn-onboarding-tracker {
    text-align: right !important;
}

.mn-onboarding-tracker .progress {
    height: 6px !important;
    width: 180px !important;
    border-radius: 10px !important;
    background-color: #f1f5f9 !important;
    overflow: hidden !important;
}

.mn-onboarding-tracker .progress-bar {
    background-color: #095F3E !important;
    transition: width 0.3s ease !important;
}

/* 3-Column Omnichannel Platform Selection Bar */
.mn-platform-switcher-matrix {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 500px !important;
    margin-bottom: 28px !important;
}

.mn-platform-tab-pill {
    padding: 8px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-align: center !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mn-platform-tab-pill:hover {
    /* border-color: #cbd5e1 !important; */
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

.mn-platform-tab-pill.active {
    background-color: rgba(9, 95, 62, 0.06) !important;
    /* border-color: #095F3E !important; */
    color: #095F3E !important;
}

/* Onboarding Setup List Rows (Fixing Broken Alignment layouts) */
.mn-onboarding-setup-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 24px !important;
    background-color: #f8fafc !important; /* Neutral Slate-50 custom fill */
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}

.mn-onboarding-setup-row:hover {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02) !important;
}

/* Left Content Info Stack */
.mn-row-left-info-group {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    text-align: left !important;
}

.mn-task-icon-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
}

.mn-onboarding-setup-row:hover .mn-task-icon-box {
    background-color: rgba(9, 95, 62, 0.08) !important;
    color: #095F3E !important;
}

.mn-task-icon-box.completed {
    background-color: rgba(9, 95, 62, 0.08) !important;
    color: #095F3E !important;
}

.mn-task-title-group {
    display: flex !important;
    flex-direction: column !important;
}

.mn-task-title-text {
    font-family: var(--font-heading) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.mn-task-desc-text {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    color: #64748b !important;
    margin: 4px 0 0 0 !important;
}

/* Brand Design Custom Buttons */
.btn-brand-primary {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.btn-brand-primary:hover {
    background-color: #E5E5E5 !important;
    border-color: #E5E5E5 !important;
    color: #000000 !important;
}

.btn-brand-primary:active {
    transform: scale(0.98) !important;
}

.btn-brand-secondary {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #E2E8F0 !important;
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    transition: all 0.15s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.btn-brand-secondary:hover {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

.btn-brand-secondary:active {
    transform: scale(0.98) !important;
}

.mn-task-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #095F3E !important;
    background-color: rgba(9, 95, 62, 0.08) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
}

/* Custom Search Select Dropdown UI */
.group-option-item:hover {
    background-color: #f1f5f9 !important;
}
.group-option-item.active-group-option {
    background-color: #f0fdf4 !important;
    color: var(--color-exp-UIu) !important;
}

/* Clean Underline Tab Navigation Design (Define Your Audience) */
.mn-audience-tabs-container {
    border-bottom: 1px solid #e2e8f0 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.mn-audience-tab-btn {
    border: none !important;
    background: transparent !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    padding: 8px 14px 10px 14px !important;
    position: relative !important;
    outline: none !important;
    box-shadow: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out !important;
}

.mn-audience-tab-btn:hover {
    color: #0f172a !important;
    background: transparent !important;
}

.mn-audience-tab-btn:focus,
.mn-audience-tab-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.mn-audience-tab-btn.active-audience-tab {
    color: var(--color-exp-UIu) !important; /* Munnottu Green */
    font-weight: 600 !important;
    background: transparent !important;
    border-bottom-color: var(--color-exp-UIu) !important;
}

/* Custom DatePicker Popover & Timing Select Styles (Send Timing Section) */
.mn-datepicker-popover {
    box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.12), 0 -2px 6px rgba(15, 23, 42, 0.04) !important;
    border-radius: 16px !important;
    user-select: none !important;
    animation: mnFadeInUp 0.15s ease-out;
}

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

.day-num.hover-bg-slate-100:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Timing select dropdown custom down chevron */
select.mn-input.custom-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
    padding-right: 36px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Drip Modal Day Pills */
.drip-day-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}
.drip-day-pill.active {
    border-color: #000000d6 !important;
    color: #ffffff !important;
    background-color: #000000d6 !important;
}
/* Drip Step Item Inline Inputs Chassis */
.drip-step-item .drip-step-input {
    width: auto !important;
    height: 38px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-family: var(--font-primary) !important;
    color: #0f172a !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.drip-step-item select.drip-step-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px 10px !important;
    padding-right: 28px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.drip-step-delay-input {
    width: 60px !important;
    min-width: 60px !important;
    text-align: center !important;
}

.drip-step-unit-select {
    width: 104px !important;
    min-width: 104px !important;
}

.drip-step-template-select {
    flex-grow: 1 !important;
    min-width: 130px !important;
}

/* -------------------------------------------------------------
   GLOBAL TABLE ROW MOUSE HOVER STYLING (UNSELECTED ROWS)
   ------------------------------------------------------------- */
table tbody tr:hover,
table tbody tr:hover > td,
.mn-data-table tbody tr:hover,
.mn-data-table tbody tr:hover > td,
.mn-table tbody tr:hover,
.mn-table tbody tr:hover > td,
.table tbody tr:hover,
.table tbody tr:hover > td,
tr.mn-table-row-hover:hover,
tr.mn-table-row-hover:hover > td {
    background-color: #f8fafc !important; /* Soft Slate-50 hover highlight for all unselected rows */
}

/* -------------------------------------------------------------
   GLOBAL TABLE ROW SELECTION COLOR HIGHLIGHT (FULL ROW)
   ------------------------------------------------------------- */
table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked),
table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked) > td,
table tbody tr:has(input[type="radio"]:checked),
table tbody tr:has(input[type="radio"]:checked) > td,
.mn-data-table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked),
.mn-data-table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked) > td,
.mn-table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked),
.mn-table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked) > td,
.table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked),
.table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked) > td,
.mn-data-table tbody tr.row-selected,
.mn-data-table tbody tr.row-selected > td,
.mn-table tbody tr.row-selected,
.mn-table tbody tr.row-selected > td,
.table tbody tr.row-selected,
.table tbody tr.row-selected > td,
tr.row-selected,
tr.row-selected > td,
tr.selected,
tr.selected > td,
tr.is-selected,
tr.is-selected > td {
    background-color: #f0fdf4 !important; /* Soft Munnottu Green selection tint */
}

/* Hover state on selected rows */
table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked):hover,
table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked):hover > td,
table tbody tr:has(input[type="radio"]:checked):hover,
table tbody tr:has(input[type="radio"]:checked):hover > td,
.mn-data-table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked):hover,
.mn-data-table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked):hover > td,
.mn-table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked):hover,
.mn-table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked):hover > td,
.table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked):hover,
.table tbody tr:has(input[type="checkbox"]:not(.form-switch *):not(.form-switch):checked):hover > td,
tr.row-selected:hover,
tr.row-selected:hover > td,
tr.selected:hover,
tr.selected:hover > td {
    background-color: #dcfce7 !important; /* Deeper green highlight on hover */
}

/* ==========================================================================
   UNIFIED PURE CUSTOM GLASSMORPHISM RESPONSIVE MODAL SYSTEM (FRAMEWORK-FREE)
   ========================================================================== */

/* 1. Modal Host & Glassmorphism Backdrop Overlay */
.mn-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    display: none !important; /* Enforce total DOM layout hiding when inactive */
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
}

.mn-modal.show,
.mn-modal.active,
.mn-modal.closing {
    display: flex !important;
}

.mn-modal.show,
.mn-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
}

.mn-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 1 !important;
    pointer-events: auto !important;
}

/* 2. Responsive Modal Dialog & Sizing Modifiers */
.mn-modal-dialog {
    position: relative !important;
    z-index: 2 !important;
    width: 95% !important;
    max-width: 560px; /* Default medium size */
    margin: 1.5rem auto !important;
    transform: scale(0.96) translateY(10px) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    max-height: calc(100vh - 2.5rem) !important;
    display: flex !important;
    flex-direction: column !important;
}

.mn-modal.show .mn-modal-dialog,
.mn-modal.active .mn-modal-dialog {
    transform: scale(1) translateY(0) !important;
}

/* Sizing Modifiers */
.mn-modal-sm { max-width: 420px !important; }
.mn-modal-md { max-width: 560px !important; }
.mn-modal-lg { max-width: 720px !important; }
.mn-modal-xl { max-width: 1140px !important; }

@media (max-width: 576px) {
    .mn-modal {
        padding: 0.75rem !important;
    }
    .mn-modal-dialog {
        max-width: calc(100vw - 1.5rem) !important;
        margin: 0.5rem auto !important;
    }
}

/* 3. Modal Chassis & Container */
.mn-modal-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22), 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-height: calc(100vh - 3rem) !important;
    min-height: 0 !important;
}

/* Flexbox Pass-Through for Modals Wrapping Body in <form> Tags */
.mn-modal-content > form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* 4. Sticky Header Components */
.mn-modal-header {
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid #F1F5F9 !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    flex-shrink: 0 !important;
}

.mn-modal-header-layout {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    justify-content: space-between
}

.mn-modal-icon-box,
.modal-icon-box,
.mn-modal-icon,
.modal-header-icon,
.mn-modal-header-icon {
    display: none !important;
}

.mn-modal-title {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.35 !important;
    color: #0F172A !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
}

.mn-modal-subtitle {
    font-family: var(--font-primary) !important;
    font-size: 0.8125rem !important; /* 13px */
    font-weight: 400 !important;
    color: #64748B !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
}

/* Close Button */
.mn-modal-close {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    opacity: 0.6 !important;
    transition: all 0.15s ease-in-out !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    color: #475569 !important;
}

.mn-modal-close:hover {
    opacity: 1 !important;
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}

/* 5. Scrollable Modal Body with Thin Custom Scrollbar */
.mn-modal-body {
    padding: 1.5rem !important;
    background-color: #ffffff !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    scroll-behavior: smooth !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: #CBD5E1 transparent !important;
}

.mn-modal-body::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
}

.mn-modal-body::-webkit-scrollbar-track {
    background: transparent !important;
}

.mn-modal-body::-webkit-scrollbar-thumb {
    background: #CBD5E1 !important;
    border-radius: 9999px !important;
}

.mn-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94A3B8 !important;
}

.mn-modal-body label.form-label,
.mn-modal-body .mn-form-label {
    font-family: var(--font-primary) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 0.375rem !important;
}

.mn-modal-body .form-text,
.mn-modal-body .mn-help-text {
    font-family: var(--font-primary) !important;
    font-size: 0.75rem !important;
    color: #64748B !important;
    margin-top: 0.375rem !important;
}

/* 6. Sticky Modal Footer */
.mn-modal-footer {
    padding: 1rem 1.5rem !important;
    border-top: 1px solid #F1F5F9 !important;
    background-color: #FAFAFA !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
}

.mn-modal-footer-link {
    font-family: var(--font-primary) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #095F3E !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    transition: color 0.15s ease !important;
}

.mn-modal-footer-link:hover {
    color: #053b23 !important;
    text-decoration: underline !important;
}

.mn-modal-footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mn-modal-footer-right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
}

/* Action Buttons */
.mn-btn-modal-cancel {
    background-color: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.mn-btn-modal-cancel:hover {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

.mn-btn-modal-save {
    background-color: var(--save-btn-background) !important;
    border: 1px solid var(--save-btn-border) !important;
    color: var(--save-btn-text) !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.mn-btn-modal-save:hover {
    background-color: #053b23 !important;
    border-color: #053b23 !important;
    color: #ffffff !important;
}

.mn-btn-modal-brand {
    background-color: #D0FF71 !important;
    border: 1px solid #D0FF71 !important;
    color: #121824 !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.mn-btn-modal-brand:hover {
    background-color: #b4eb4c !important;
    border-color: #b4eb4c !important;
}

/* 7. Dark Mode Adaptation */
html.munnottu-dark .mn-modal-content {
    background-color: #0F172A !important;
    border-color: #1E293B !important;
    color: #F8FAFC !important;
}

html.munnottu-dark .mn-modal-header {
    background-color: #0F172A !important;
    border-color: #1E293B !important;
}

html.munnottu-dark .mn-modal-icon-box {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

html.munnottu-dark .mn-modal-title {
    color: #F8FAFC !important;
}

html.munnottu-dark .mn-modal-subtitle {
    color: #94A3B8 !important;
}

html.munnottu-dark .mn-modal-body {
    background-color: #0F172A !important;
}

html.munnottu-dark .mn-modal-body label.form-label,
html.munnottu-dark .mn-modal-body .mn-form-label {
    color: #E2E8F0 !important;
}

html.munnottu-dark .mn-modal-footer {
    background-color: #090D16 !important;
    border-color: #1E293B !important;
}

html.munnottu-dark .mn-modal-close {
    color: #94A3B8 !important;
}

html.munnottu-dark .mn-modal-close:hover {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
}

html.munnottu-dark .mn-btn-modal-cancel {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

html.munnottu-dark .mn-btn-modal-cancel:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Drip Campaign Step Item & Spacing Layout Styling
   ========================================================================== */
.drip-step-item {
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    background-color: #FFFFFF !important;
    padding: 1.25rem 1.35rem !important;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.drip-step-item:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06) !important;
}

/* Row 1 Header Layout */
.drip-step-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.75rem !important;
}

.drip-step-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 6px 8px;
    border-radius: 24px !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important; /* 12px */
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #0284c71a !important;
    line-height: 1.2 !important;
}

.drip-step-title {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important; /* 14px */
    color: #0F172A !important;
}

.drip-step-divider {
    border: none !important;
    border-top: 1px dashed #E2E8F0 !important;
    margin: 1rem 0 !important;
    width: 100% !important;
}

/* Row 2 Controls Layout */
.drip-step-controls-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.875rem !important;
    width: 100% !important;
}

@media (max-width: 640px) {
    .drip-step-controls-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .drip-step-delay-group {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

.drip-step-input {
    height: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #E2E8F0 !important;
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    font-family: var(--font-primary) !important;
    font-size: 0.8125rem !important; /* 13px */
    font-weight: 500 !important;
    outline: none !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
}

.drip-step-input:focus {
    border-color: #095F3E !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(9, 95, 62, 0.12) !important;
}

.drip-step-template-select {
    padding: 0 30px 0 12px !important;
    min-width: 140px !important;
    flex: 1 1 auto !important;
}

.drip-step-delay-input {
    width: 58px !important;
    min-width: 58px !important;
    padding: 0 6px !important;
    text-align: center !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
}

.drip-step-unit-select {
    width: 110px !important;
    min-width: 110px !important;
    padding: 0 24px 0 10px !important;
    flex-shrink: 0 !important;
}

.step-collapse-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background-color: #F1F5F9 !important;
    color: #64748B !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
}

.step-collapse-btn:hover {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
    /* border-color: #CBD5E1 !important; */
}

.drip-day-pill {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid #E2E8F0 !important;
    background-color: #FFFFFF !important;
    color: #64748B !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.15s ease !important;
}

.drip-day-pill:hover {
    border-color: #e8edff !important;
    color: #000000 !important;
    background-color: #e8edff !important;
}

.drip-day-pill.active {
    background-color: #000000d6  !important;
    color: #FFFFFF !important;
    border-color: #000000d6  !important;
}

/* ==========================================================================
   Segmented Tab Pills Special Component (.mn-segmented-tabs)
   Matching Modern SaaS Minimalist Standard (ElevenLabs / Linear Style)
   ========================================================================== */
.mn-segmented-tabs,
.mn-platform-switcher-matrix {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 5px;
    background-color: #f4f5f7;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    user-select: none;
}

.mn-segmented-tabs .mn-tab-pill,
.mn-platform-tab-pill {
    border: 1px solid transparent !important;
    padding: 7px 14px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background-color: transparent;
    color: #475569;
    font-family: var(--font-primary) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
    box-sizing: border-box;
    text-decoration: none !important;
    white-space: nowrap;
}

.mn-segmented-tabs .mn-tab-pill:hover,
.mn-platform-tab-pill:hover {
    color: #0f172a;
    background-color: rgba(255, 255, 255, 0.6);
}

.mn-segmented-tabs .mn-tab-pill.active,
.mn-platform-tab-pill.active {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    font-weight: 600 !important;
}

.mn-segmented-tabs .mn-tab-pill-icon,
.mn-platform-tab-pill .mn-platform-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #64748b;
    transition: color 0.15s ease;
}

.mn-segmented-tabs .mn-tab-pill:hover .mn-tab-pill-icon,
.mn-platform-tab-pill:hover .mn-platform-icon-wrap {
    color: #334155;
}

.mn-segmented-tabs .mn-tab-pill.active .mn-tab-pill-icon,
.mn-platform-tab-pill.active .mn-platform-icon-wrap {
    color: #0f172a;
}

/* Channel Specific Brand Icon Colors */
.mn-segmented-tabs .mn-tab-pill-icon svg {
    display: block;
}

.mn-segmented-tabs-subtext,
.mn-channel-subtext {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    color: #64748b !important;
    margin-top: 10px !important;
    text-align: center;
    width: 100%;
    display: block;
}

/* --- Size Modifiers --- */
/* Compact Size (.mn-segmented-tabs-sm) */
.mn-segmented-tabs.mn-segmented-tabs-sm {
    padding: 3px 4px;
    border-radius: 10px !important;
    gap: 3px;
}
.mn-segmented-tabs.mn-segmented-tabs-sm .mn-tab-pill {
    padding: 5px 10px !important;
    height: 28px !important;
    font-size: 12.5px !important;
    border-radius: 6px !important;
    gap: 6px;
}
.mn-segmented-tabs.mn-segmented-tabs-sm .mn-tab-pill-icon {
    width: 16px;
    height: 16px;
}

/* Large Size (.mn-segmented-tabs-lg) */
.mn-segmented-tabs.mn-segmented-tabs-lg {
    padding: 5px 6px;
    border-radius: 14px !important;
    gap: 6px;
}
.mn-segmented-tabs.mn-segmented-tabs-lg .mn-tab-pill {
    padding: 9px 18px !important;
    height: 40px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    gap: 10px;
}
.mn-segmented-tabs.mn-segmented-tabs-lg .mn-tab-pill-icon {
    width: 20px;
    height: 20px;
}


/* ==========================================================================
   UNIFIED SINGLE-CARD SETTINGS DESIGN (Fixed Card, Internal Main Scroll)
   ========================================================================== */
.mn-settings-unified-card {
    background: #ffffff;
    border: none !important;
    border-radius: 16px;
    box-shadow: none !important;
    width: 100%;
    height: calc(100vh - 120px) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.mn-settings-unified-card > .d-flex {
    flex: 1 1 auto;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.mn-settings-sidebar-col {
    width: 100%;
    flex-shrink: 0;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .mn-settings-sidebar-col {
        width: 230px !important;
        border-bottom: none;
        border-right: 1px solid #e2e8f0 !important;
        padding: 1.75rem 1rem;
        align-self: stretch !important;
        height: 100% !important;
        overflow-y: auto;
    }

    .mn-settings-sidebar-sticky {
        position: static !important;
    }
}

.mn-settings-content-col {
    flex: 1;
    min-width: 0;
    height: 100% !important;
    overflow-y: auto !important;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .mn-settings-content-col {
        padding: 2rem 2.5rem;
    }
}

.mn-settings-title {
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 12px !important;
    margin-bottom: 0.75rem !important;
}

.mn-settings-category-label {
    font-family: var(--font-heading) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    padding: 14px 12px 4px 12px !important;
}

.mn-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mn-settings-nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    height: 38px !important;
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1f1f1f !important;
    letter-spacing: 0.1px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.mn-settings-nav-item:hover {
    background-color: #e5e5e5 !important;
    color: #000000 !important;
    text-decoration: none !important;
}

.mn-settings-nav-item.active {
    background-color: var(--sidebar-active-bg, #e5e5e5) !important;
    color: var(--sidebar-active-text, #18181a) !important;
    font-weight: 600 !important;
}

/* Custom Munnottu Tooltip Popover */
.mn-info-tooltip-container {
    overflow: visible !important;
}
.mn-custom-tooltip-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background-color: #1e1e24;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 99999;
    font-family: var(--font-primary);
}
.mn-custom-tooltip-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #1e1e24 transparent transparent transparent;
}
.mn-info-tooltip-container:hover .mn-custom-tooltip-popup,
.mn-info-tooltip-container:focus-within .mn-custom-tooltip-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

/* 6. Integration Cards & Video Guide Banners (Munnottu Design System) */
.mn-integration-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.15s ease-in-out !important;
}

.mn-integration-card:hover {
    border-color: #cbd5e1 !important;
}

.mn-integration-card-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

@media (max-width: 768px) {
    .mn-integration-card-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

.mn-integration-card-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.mn-integration-icon-badge {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    background-color: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mn-integration-icon-badge-slate {
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

.mn-integration-title {
    font-family: var(--font-heading) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 3px !important;
    line-height: 1.35 !important;
}

.mn-integration-subtitle {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

/* Meta WhatsApp Setup Segmented Pill Switcher (Linear/ElevenLabs Minimalist) */
.mn-setup-pills-bar {
    background-color: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    padding: 3px !important;
    border-radius: 9999px !important;
}

.mn-setup-pill {
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    padding: 6px 16px !important;
    border-radius: 9999px !important;
    border: none !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease-in-out !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.mn-setup-pill:hover {
    color: #0F172A !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
}

.mn-setup-pill.active {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1) !important;
}

.mn-setup-pill.active svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* WhatsApp Settings Page Typography System Rule */
.mn-whatsapp-settings-page,
.mn-whatsapp-settings-page *,
.mn-whatsapp-settings-page .font-outfit,
.mn-whatsapp-settings-page .font-inter,
.mn-whatsapp-settings-page .mn-integration-title,
.mn-whatsapp-settings-page .mn-integration-subtitle,
.mn-whatsapp-settings-page .page-title {
    font-family: var(--font-primary) !important;
}

/* Meta WhatsApp Manager Flows Filter Pills Bar */
.mn-filter-pills-bar {
    background-color: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    padding: 3px 4px !important;
    border-radius: 9999px !important;
}

.mn-filter-pill {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease-in-out !important;
}

.mn-filter-pill:hover {
    color: #0F172A !important;
    background-color: #F8FAFC !important;
}

.mn-filter-pill.active {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.mn-pill-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 9999px;
    font-weight: 600;
}

.mn-filter-pill:not(.active) .mn-pill-badge {
    background-color: #F1F5F9;
    color: #475569;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-published { background-color: #10B981; }
.dot-draft { background-color: #94A3B8; }
.dot-deprecated { background-color: #F59E0B; }
.dot-throttled { background-color: #F97316; }
.dot-blocked { background-color: #EF4444; }

/* ==========================================================================
   ENTERPRISE HIGH-CONTRAST DASHBOARD & AGENTS.MD 2-BUTTON SYSTEM
   ========================================================================== */

/* AGENTS.md Strict 2-Button Only System & Uniform Typography */
.btn-brand-primary,
.mn-btn-brand-primary,
.mn-btn-solid {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 9999px !important;
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    border: 1px solid #0F172A !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    -webkit-font-smoothing: antialiased;
}

.btn-brand-primary:hover,
.mn-btn-brand-primary:hover,
.mn-btn-solid:hover {
    background-color: #1E293B !important;
    border-color: #1E293B !important;
    color: #FFFFFF !important;
}

.btn-brand-secondary,
.mn-btn-brand-secondary,
.mn-btn-outlined {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 9999px !important;
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #E2E8F0 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    -webkit-font-smoothing: antialiased;
}

.btn-brand-secondary:hover,
.mn-btn-brand-secondary:hover,
.mn-btn-outlined:hover {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

/* Card Titles & High-Contrast Typography */
.mn-card-title {
    font-family: var(--font-heading) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

/* ==========================================================================
   HIGH-CONTRAST DASHBOARD UTILITIES & AGENTS.MD DESIGN SYSTEM EXTENSIONS
   ========================================================================== */

/* Badge Contrast Override - Prevent White-on-White Text Glitches */
.badge.bg-slate-50,
.badge.bg-slate-100,
.badge.bg-emerald-50,
.badge.bg-amber-50,
.badge.bg-blue-50,
.badge.bg-purple-50,
.badge.bg-white {
    color: inherit;
}

/* Slate Color Utilities */
.text-slate-900 { color: #0F172A !important; }
.text-slate-800 { color: #1E293B !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-500 { color: #64748B !important; }
.text-slate-400 { color: #94A3B8 !important; }
.text-slate-300 { color: #CBD5E1 !important; }

.bg-slate-50 { background-color: #F8FAFC !important; }
.bg-slate-100 { background-color: #F1F5F9 !important; }
.bg-slate-200 { background-color: #E2E8F0 !important; }
.bg-slate-800 { background-color: #1E293B !important; }
.bg-slate-900 { background-color: #0F172A !important; }

.border-slate-100 { border-color: #F1F5F9 !important; }
.border-slate-200 { border-color: #E2E8F0 !important; }
.border-slate-300 { border-color: #CBD5E1 !important; }
.border-slate-400 { border-color: #94A3B8 !important; }

/* Emerald Color Utilities */
.bg-emerald-50 { background-color: #ECFDF5 !important; }
.bg-emerald-100 { background-color: #3d1a6d !important; }
.bg-emerald-500 { background-color: #10B981 !important; }
.text-emerald-600 { color: #059669 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-emerald-800 { color: #ffffff !important; }
.border-emerald-200 { border-color: #A7F3D0 !important; }

/* Amber Color Utilities */
.bg-amber-50 { background-color: #FFFBEB !important; }
.bg-amber-100 { background-color: #FEF3C7 !important; }
.bg-amber-500 { background-color: #F59E0B !important; }
.text-amber-600 { color: #D97706 !important; }
.text-amber-700 { color: #B45309 !important; }
.text-amber-800 { color: #92400E !important; }
.border-amber-200 { border-color: #FDE68A !important; }

/* Blue Color Utilities */
.bg-blue-50 { background-color: #EFF6FF !important; }
.bg-blue-100 { background-color: #DBEAFE !important; }
.bg-blue-500 { background-color: #3B82F6 !important; }
.text-blue-600 { color: #2563EB !important; }
.text-blue-700 { color: #1D4ED8 !important; }
.text-blue-800 { color: #1E40AF !important; }
.border-blue-200 { border-color: #BFDBFE !important; }

/* Purple Color Utilities */
.bg-purple-50 { background-color: #FAF5FF !important; }
.bg-purple-100 { background-color: #F3E8FF !important; }
.bg-purple-500 { background-color: #A855F7 !important; }
.text-purple-600 { color: #9333EA !important; }
.text-purple-700 { color: #7E22CE !important; }
.text-purple-800 { color: #6B21A8 !important; }
.border-purple-200 { border-color: #E9D5FF !important; }

/* Typography Helpers & Variable Tokens */
:root {
    --font-family-base: var(--font-primary);
    --font-family-heading: var(--font-heading);
    --font-family-mono: var(--font-mono);

    --font-weight-normal: 400;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --font-size-3xs: 10px;
    --font-size-2xs: 11px;
    --font-size-xs: 13px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 16px;   
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;
}

.text-3xs { font-size: var(--font-size-3xs) !important; line-height: 1.3 !important; }
.text-2xs { font-size: var(--font-size-2xs) !important; line-height: 1.35 !important; }
.text-xs { font-size: var(--font-size-xs) !important; }
.text-sm { font-size: var(--font-size-sm) !important; }
.text-base { font-size: var(--font-size-base) !important; }
.text-lg { font-size: var(--font-size-lg) !important; }
.text-xl { font-size: var(--font-size-xl) !important; }
.text-2xl { font-size: var(--font-size-2xl) !important; }
.text-3xl { font-size: var(--font-size-3xl) !important; }

/* Explicit Font Size Helpers per AGENTS.md */
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.fs-16 { font-size: 16px !important; }
.fs-18 { font-size: 18px !important; }
.fs-20 { font-size: 20px !important; }
.fs-24 { font-size: 24px !important; }
.fs-28 { font-size: 28px !important; }

.font-outfit { font-family: var(--font-heading) !important; }
.font-inter { font-family: var(--font-primary) !important; }
.font-monospace, .font-mono { font-family: var(--font-mono) !important; }

.fw-normal { font-weight: var(--font-weight-normal) !important; }
.fw-regular { font-weight: var(--font-weight-regular) !important; }
.fw-medium { font-weight: var(--font-weight-medium) !important; }
.fw-semibold { font-weight: var(--font-weight-semibold) !important; }
.fw-bold { font-weight: var(--font-weight-bold) !important; }

/* KPI Card & Metric Line-Art Icon Enhancements */
.mn-kpi-icon {
    color: #94A3B8 !important;
    transition: color 0.15s ease-in-out !important;
    flex-shrink: 0 !important;
}

.mn-kpi-card:hover .mn-kpi-icon {
    color: #475569 !important;
}

.mn-kpi-value {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-bold) !important;
    font-size: var(--font-size-3xl) !important;
    letter-spacing: -0.03em !important;
    color: #0F172A !important;
    line-height: 1.1 !important;
}

/* Spacing & Flex Helpers */
.p-3.5 { padding: 0.875rem !important; }
.p-4.5 { padding: 1.125rem !important; }
.g-2.5 { --bs-gutter-x: 0.625rem; --bs-gutter-y: 0.625rem; }
.gap-2.5 { gap: 0.625rem !important; }

/* Elevation & Shadows */
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05) !important; }
.shadow-2xs { box-shadow: 0 1px 1px 0 rgba(15, 23, 42, 0.03) !important; }

/* Interactive Hover States */
.hover-border-slate-400:hover { border-color: #94A3B8 !important; }
.hover-bg-slate-50:hover { background-color: #F8FAFC !important; }

/* Sleek Progress Bar Enhancements */
.mn-progress-bar-gradient {
    background: linear-gradient(90deg, #0F172A 0%, #2563EB 100%) !important;
}
.mn-dashboard-progress-track {
    height: 8px !important;
    background-color: #E2E8F0 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    margin-top: 1rem !important; /* 16px top gap above progress bar */
    margin-bottom: 1.375rem !important; /* 22px bottom gap below progress bar */
}
.mn-dashboard-card-hover {
    transition: all 0.2s ease-in-out !important;
}
.mn-dashboard-card-hover:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
}

/* Custom Enterprise Dashboard Card & Grid System */
.mn-dashboard-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important; /* 24px clean vertical spacing between dashboard sections */
    padding-bottom: 2rem !important;
}

.mn-dashboard-card {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 1px 2px -1px rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.mn-dashboard-card:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06) !important;
}

.mn-onboarding-banner {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 1.75rem 2rem !important; /* 28px top/bottom, 32px left/right */
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03) !important;
}

.mn-onboarding-badge {
    margin-bottom: 0.75rem !important; /* 12px bottom gap */
}

.mn-onboarding-heading {
    margin-top: 0.25rem !important;
    margin-bottom: 0.625rem !important; /* 10px bottom gap */
    font-size: 19px !important;
    letter-spacing: -0.015em !important;
}

.mn-onboarding-subtitle {
    margin-bottom: 1rem !important; /* 16px bottom gap before progress bar */
}

.mn-step-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.875rem 1rem !important; /* 14px 16px padding */
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out !important;
}

.mn-step-card.completed {
    background-color: #F8FAFC !important;
    color: #1E293B !important;
}

.mn-step-card.pending {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

.mn-step-card:hover {
    background-color: #F8FAFC !important;
    border-color: #94A3B8 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.mn-kpi-card {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem !important; /* 20px 24px padding */
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.mn-kpi-card:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
}

/* Fix header buttons in tables & card headers */
.mn-card-header-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-heading) !important;
    font-size: var(--font-size-xs) !important;
    font-weight: var(--font-weight-semibold) !important;
    height: 32px !important;
    padding: 0 14px !important;
    border-radius: 9999px !important;
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #E2E8F0 !important;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out !important;
}

.mn-card-header-action:hover {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

/* ==========================================================================
   ENTERPRISE DASHBOARD ANALYTICS & TELEMETRY MODULES (AGENTS.MD COMPLIANT)
   ========================================================================== */

/* Live Telemetry Status Badge with Pulsing Dot */
.mn-live-telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: #065F46;
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 2.5px 8px;
    border-radius: 9999px;
    letter-spacing: 0.01em;
}

.mn-live-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: mnLivePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes mnLivePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Timeframe Selector Pill Group (AGENTS.md Strict 2-Button System) */
.mn-timeframe-group {
    display: inline-flex;
    align-items: center;
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    padding: 2.5px;
    gap: 2px;
}

.mn-timeframe-btn {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    height: 26px;
    padding: 0 10px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.mn-timeframe-btn:hover {
    color: #0F172A;
}

.mn-timeframe-btn.active {
    background-color: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

/* Interactive Metric Legend Pills (Dataset Toggles & Real-Time Stats) */
.mn-chart-legend-tray {
    user-select: none;
}

.mn-chart-legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: 9999px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-family: var(--font-primary);
    font-size: 12px;
    color: #1E293B;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.mn-chart-legend-pill:hover {
    background-color: #F1F5F9;
    border-color: #CBD5E1;
}

.mn-chart-legend-pill.muted {
    opacity: 0.45;
    background-color: #F8FAFC;
    border-color: #E2E8F0;
    text-decoration: line-through;
}

.mn-legend-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mn-legend-label {
    font-weight: 500;
    color: #475569;
}

.mn-legend-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
}

.mn-legend-rate {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background-color: rgba(16, 185, 129, 0.1);
}

/* Trend Empty State Watermark Overlay */
.mn-trend-empty-overlay {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.mn-trend-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
    text-align: center;
}

/* Traffic Allocation Channel Rows & Mini Progress Bars */
.mn-channel-item {
    display: flex;
    flex-direction: column;
}

.mn-channel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mn-channel-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: #0F172A;
    line-height: 1.2;
}

.mn-channel-sub {
    font-family: var(--font-primary);
    font-size: 10px;
    color: #64748B;
    line-height: 1.2;
}

.mn-channel-count {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    color: #0F172A;
    display: block;
    line-height: 1.2;
}

.mn-channel-pct {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 9999px;
    background-color: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
    line-height: 1.3;
}

.mn-channel-progress-track {
    height: 4px;
    background-color: #F1F5F9;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 5px;
}

.mn-channel-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* Dark Mode Extensions */
html.munnottu-dark .mn-timeframe-group {
    background-color: #1E293B;
    border-color: #334155;
}

html.munnottu-dark .mn-timeframe-btn {
    color: #94A3B8;
}

html.munnottu-dark .mn-timeframe-btn:hover {
    color: #F8FAFC;
}

html.munnottu-dark .mn-timeframe-btn.active {
    background-color: #F8FAFC;
    color: #0F172A;
}

html.munnottu-dark .mn-chart-legend-pill {
    background-color: #1E293B;
    border-color: #334155;
    color: #F8FAFC;
}

html.munnottu-dark .mn-chart-legend-pill:hover {
    background-color: #334155;
}

html.munnottu-dark .mn-chart-legend-pill.muted {
    opacity: 0.35;
    background-color: #1E293B;
}

html.munnottu-dark .mn-legend-label {
    color: #94A3B8;
}

html.munnottu-dark .mn-trend-empty-box {
    background-color: rgba(15, 23, 42, 0.92);
    border-color: #334155;
}

html.munnottu-dark .mn-channel-name {
    color: #F8FAFC;
}

html.munnottu-dark .mn-channel-sub {
    color: #94A3B8;
}

html.munnottu-dark .mn-channel-count {
    color: #F8FAFC;
}

html.munnottu-dark .mn-channel-pct {
    background-color: #1E293B;
    border-color: #334155;
    color: #94A3B8;
}

html.munnottu-dark .mn-channel-progress-track {
    background-color: #1E293B;
}

/* ==========================================================================
   DASHBOARD BOTTOM SPLIT VIEW MODULES (AGENTS.MD COMPLIANT)
   ========================================================================== */

.mn-dashboard-table-wrap {
    min-height: 290px !important;
    margin-top: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.mn-feed-item {
    transition: all 0.15s ease-in-out !important;
}

.mn-feed-item:hover {
    border-color: #94A3B8 !important;
    background-color: #F8FAFC !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
}

.mn-header-primary-btn {
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    gap: 6px !important;
    line-height: 1 !important;
}

.mn-dashboard-hub-card {
    min-height: 310px;
}

/* Dark Mode Overrides for Dashboard Bottom Split View */
html.munnottu-dark .mn-feed-item {
    background-color: #0F172A !important;
    border-color: #334155 !important;
}

html.munnottu-dark .mn-feed-item:hover {
    background-color: #1E293B !important;
    border-color: #475569 !important;
}

/* ==========================================================================
   ENTERPRISE DASHBOARD CLEAN EMPTY STATE ARCHITECTURE (LINEAR / RESEND STYLE)
   ========================================================================== */

.mn-dashboard-empty-state {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2.5rem 1.5rem !important;
    text-align: center !important;
    flex-grow: 1 !important;
    min-height: 310px !important;
}

.mn-empty-icon-circle {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.875rem !important;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04) !important;
}

.mn-empty-title {
    font-family: var(--font-heading) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    margin-bottom: 0.25rem !important;
    letter-spacing: -0.01em !important;
}

.mn-empty-desc {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    color: #64748B !important;
    max-width: 360px !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
}

.mn-empty-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: var(--font-heading) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
}

/* Dark Mode Extensions for Dashboard Empty State */
html.munnottu-dark .mn-empty-icon-circle {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2) !important;
}

html.munnottu-dark .mn-empty-title {
    color: #F8FAFC !important;
}

html.munnottu-dark .mn-empty-desc {
    color: #94A3B8 !important;
}

html.munnottu-dark .mn-empty-badge-pill {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    color: #94A3B8 !important;
}

/* Dark Mode Extensions for Collapsible Onboarding Checklist Strip */
html.munnottu-dark #onboardingCollapsedView,
html.munnottu-dark #onboardingExpandedView {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

html.munnottu-dark #onboardingCollapsedView:hover {
    background-color: #334155 !important;
}

html.munnottu-dark #onboardingExpandedView a.rounded-xl {
    background-color: #0F172A !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

html.munnottu-dark #onboardingExpandedView a.rounded-xl:hover {
    border-color: #475569 !important;
}

/* Onboarding Minimize Button Dimensions & Content Isolation */
#onboardingExpandedView button[title="Minimize setup checklist"],
#onboardingExpandedView button[title="Minimize checklist"],
.mn-onboarding-minimize-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    box-sizing: border-box !important;
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

#onboardingExpandedView button[title="Minimize setup checklist"]:hover,
#onboardingExpandedView button[title="Minimize checklist"]:hover,
.mn-onboarding-minimize-btn:hover {
    background-color: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

#onboardingExpandedView button[title="Minimize setup checklist"] svg,
#onboardingExpandedView button[title="Minimize checklist"] svg,
.mn-onboarding-minimize-btn svg {
    width: 14px !important;
    height: 2px !important;
    min-width: 14px !important;
    min-height: 2px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

#onboardingExpandedView button[title="Minimize setup checklist"] svg path,
#onboardingExpandedView button[title="Minimize checklist"] svg path,
.mn-onboarding-minimize-btn svg path {
    stroke: currentColor !important;
    stroke-width: 2px !important;
    stroke-linecap: round !important;
}

html.munnottu-dark #onboardingExpandedView button[title="Minimize checklist"],
html.munnottu-dark #onboardingExpandedView button[title="Minimize setup checklist"],
html.munnottu-dark .mn-onboarding-minimize-btn {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

html.munnottu-dark #onboardingExpandedView button[title="Minimize checklist"]:hover,
html.munnottu-dark #onboardingExpandedView button[title="Minimize setup checklist"]:hover,
html.munnottu-dark .mn-onboarding-minimize-btn:hover {
    background-color: #334155 !important;
    border-color: #475569 !important;
}

html.munnottu-dark #onboardingExpandedView button[title="Minimize checklist"] svg,
html.munnottu-dark #onboardingExpandedView button[title="Minimize setup checklist"] svg,
html.munnottu-dark .mn-onboarding-minimize-btn svg,
html.munnottu-dark #onboardingExpandedView button[title="Minimize setup checklist"] svg path,
html.munnottu-dark #onboardingExpandedView button[title="Minimize checklist"] svg path,
html.munnottu-dark .mn-onboarding-minimize-btn svg path {
    stroke: #F8FAFC !important;
}

html.munnottu-dark #onboardingExpandedView .mn-onboarding-status-pending {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #FBBF24 !important;
}

/* ========================================================================= */
/* Global Top Nano Progress Loading Bar                                      */
/* ========================================================================= */
#mn-top-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: #2563EB; /* Modern vibrant SaaS Blue */
    background: linear-gradient(90deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
    z-index: 999999;
    pointer-events: none;
    transition: width 0.25s ease-out, opacity 0.35s ease-in-out;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6), 0 0 5px rgba(59, 130, 246, 0.4);
    opacity: 0;
}

#mn-top-loader.loading {
    opacity: 1;
}

#mn-top-loader.done {
    opacity: 0;
}

/* ========================================================================= */
/* Enterprise Dashboard: Recent Contacts Card & Hierarchy Redesign           */
/* ========================================================================= */

.mn-recent-contacts-card {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 1px 2px -1px rgba(15, 23, 42, 0.03) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.mn-recent-contacts-card:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06) !important;
}

.mn-recent-contacts-header {
    padding: 1.25rem 1.5rem !important; /* 20px top/bottom, 24px left/right */
    border-bottom: 1px solid #F1F5F9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
}

.mn-recent-contacts-title {
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #0F172A !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
}

.mn-recent-contacts-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important; /* 12px clean vertical spacing between contact cards */
    padding: 1.25rem 1.5rem !important; /* 20px top/bottom, 24px left/right internal padding */
    flex-grow: 1 !important;
    overflow-y: auto !important;
    max-height: 440px !important;
}

/* Custom sleek scrollbar for recent contacts list */
.mn-recent-contacts-list::-webkit-scrollbar {
    width: 5px;
}
.mn-recent-contacts-list::-webkit-scrollbar-track {
    background: transparent;
}
.mn-recent-contacts-list::-webkit-scrollbar-thumb {
    background-color: #E2E8F0;
    border-radius: 9999px;
}
.mn-recent-contacts-list::-webkit-scrollbar-thumb:hover {
    background-color: #CBD5E1;
}

/* Individual Contact Item Card (Cream / Off-White Tone) */
.mn-recent-contact-item {
    background-color: #FAF9F6 !important; /* Soft cream/off-white background */
    border: 1px solid #EDE8E1 !important; /* Crisp subtle separation border */
    border-radius: 14px !important; /* Smooth 14px corner radius */
    padding: 14px 16px !important; /* Generous comfortable internal breathing room */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
    position: relative !important;
}

.mn-recent-contact-item:hover {
    background-color: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
    transform: translateY(-1px) !important;
}

/* 1. Left: Circular Profile Avatar with Platform-Specific Gradient/Color */
.mn-contact-avatar-wrap {
    position: relative !important;
    flex-shrink: 0 !important;
    width: 44px !important;
    height: 44px !important;
}

.mn-contact-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s ease !important;
}

.mn-recent-contact-item:hover .mn-contact-avatar {
    transform: scale(1.04) !important;
}

/* WhatsApp Platform Avatar */
.mn-contact-avatar-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.28) !important;
}

/* Instagram Platform Avatar */
.mn-contact-avatar-instagram {
    background: linear-gradient(135deg, #F58529 0%, #D62976 50%, #962FBF 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(214, 41, 118, 0.28) !important;
}

/* Messenger Platform Avatar */
.mn-contact-avatar-messenger {
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 106, 255, 0.28) !important;
}

/* Default Fallback Avatar */
.mn-contact-avatar-default {
    background: #0F172A !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2) !important;
}

/* Mini Platform Badge Dot on Avatar */
.mn-contact-platform-badge {
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 17px !important;
    height: 17px !important;
    border-radius: 9999px !important;
    border: 2px solid #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.mn-contact-platform-badge svg {
    width: 11px !important;
    height: 11px !important;
    display: block !important;
}

/* 2. Middle Column: Stacked Contact Info */
.mn-contact-info-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.mn-contact-name {
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #0F172A !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mn-contact-phone {
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mn-contact-datetime {
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #94A3B8 !important;
    line-height: 1.3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.mn-contact-datetime svg {
    width: 12px !important;
    height: 12px !important;
    color: #94A3B8 !important;
    flex-shrink: 0 !important;
}

/* 3. Right Side: Single Clean "Chat" Button */
.mn-contact-action-col {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.mn-contact-chat-btn {
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    gap: 5px !important;
    border-radius: 9999px !important;
}

.mn-contact-chat-btn svg {
    width: 13px !important;
    height: 13px !important;
    transition: transform 0.15s ease !important;
}

.mn-recent-contact-item:hover .mn-contact-chat-btn {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    border-color: #0F172A !important;
}

.mn-recent-contact-item:hover .mn-contact-chat-btn svg {
    transform: translateX(1px);
}

/* Dark Mode Adaptation */
html.munnottu-dark .mn-recent-contacts-card {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

html.munnottu-dark .mn-recent-contacts-header {
    border-bottom-color: #334155 !important;
}

html.munnottu-dark .mn-recent-contacts-title {
    color: #F8FAFC !important;
}

html.munnottu-dark .mn-recent-contact-item {
    background-color: #0F172A !important;
    border-color: #334155 !important;
}

html.munnottu-dark .mn-recent-contact-item:hover {
    background-color: #1E293B !important;
    border-color: #475569 !important;
}

html.munnottu-dark .mn-contact-name {
    color: #F8FAFC !important;
}

html.munnottu-dark .mn-contact-phone {
    color: #94A3B8 !important;
}

html.munnottu-dark .mn-contact-datetime {
    color: #64748B !important;
}

html.munnottu-dark .mn-contact-platform-badge {
    border-color: #0F172A !important;
    background-color: #0F172A !important;
}

/* =========================================================================
   ELEVENLABS EXPANDABLE SIDEBAR AGENTS COMPONENT
   ========================================================================= */
.sidebar-agents-section {
    padding-top: 4px;
    padding-bottom: 4px;
    display: block;
}

.sidebar-section-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    transition: color 0.15s ease;
}

.sidebar-section-title:hover {
    color: #0F172A;
}

.btn-sidebar-plus-action {
    background: transparent;
    border: none;
    padding: 2px 4px;
    color: #64748B;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-sidebar-plus-action:hover {
    color: #0F172A;
    background: #F1F5F9;
}

.sidebar-agent-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-family: var(--font-primary);
    transition: all 0.15s ease;
}

.sidebar-agent-item:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.sidebar-agent-item.active {
    background: #E2E8F0;
    color: #0F172A;
    font-weight: 600;
}

.sidebar-agent-avatar {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-agent-name {
    font-size: 13px;
    font-family: var(--font-primary);
}

.sidebar-agent-more-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 12px;
    color: #64748B;
    text-decoration: none;
    font-family: var(--font-primary);
    transition: color 0.15s ease;
}

.sidebar-agent-more-link:hover {
    color: #0F172A;
}

.btn-sidebar-create-agent-empty {
    background: transparent;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    text-align: center;
    font-family: var(--font-heading);
    transition: all 0.15s ease;
}

.btn-sidebar-create-agent-empty:hover {
    border-color: #0F172A;
    color: #0F172A;
    background: #F8FAFC;
}

/* Collapsed Sidebar Agents States */
.sidebar-agents-collapsed-btn {
    display: none !important;
}

body.sidebar-collapsed .sidebar-agents-collapsed-btn {
    display: flex !important;
}

body.sidebar-collapsed .sidebar-agents-section {
    display: none !important;
}

/* AI Agents Root Navigation Row with Inline Plus Action */
.sidebar-nav-item-wrapper {
    position: relative;
    width: 100%;
}

.btn-sidebar-nav-plus {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #475569;
    padding: 0;
    transition: all 0.15s ease;
    z-index: 5;
    cursor: pointer;
}

.btn-sidebar-nav-plus:hover {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
}

body.sidebar-collapsed .btn-sidebar-nav-plus {
    display: none !important;
}

/* =========================================================================
   DEDICATED ELEVENLABS-INSPIRED AGENT STUDIO SIDEBAR
   ========================================================================= */
.agent-studio-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.btn-studio-back-workspace {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 34px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    color: #475569;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-studio-back-workspace:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
}

/* Studio Agent Switcher Dropdown (Munnottu Unified Compact Pattern) */
.studio-agent-switcher-btn::after,
.studio-agent-switcher .dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.studio-agent-switcher-btn {
    height: 42px !important;
    padding: 6px 10px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
}

.studio-agent-switcher-btn:hover {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
}

.studio-agent-switcher-btn:focus,
.studio-agent-switcher-btn:active {
    border-color: #0F172A !important;
    background: #FFFFFF !important;
}

.studio-switcher-avatar {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.studio-switcher-avatar-sm {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.studio-switcher-name {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

.studio-status-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.studio-status-dot.active {
    background-color: #10B981 !important;
}

.studio-status-dot.inactive {
    background-color: #94A3B8 !important;
}

.studio-status-label {
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #64748B !important;
    line-height: 1 !important;
}

.studio-switcher-chevron {
    transition: transform 0.15s ease !important;
}

.studio-agent-switcher.show .studio-switcher-chevron {
    transform: rotate(180deg);
}

.studio-switcher-dropdown {
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
    font-family: var(--font-primary) !important;
}

.studio-switcher-dropdown .dropdown-item {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    transition: background-color 0.15s ease !important;
}

.studio-switcher-dropdown .dropdown-item:hover {
    background-color: #F1F5F9 !important;
}

.studio-switcher-dropdown .dropdown-item.active {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
}

.studio-plus-circle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #0F172A !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Studio Specific Navigation Groups */
/* Update Studio Group Titles to be completely compact */
.studio-nav-group-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    padding-left: 28px !important;
    padding-bottom: 4px !important;
    color: #64748b !important;
    user-select: none;
}

/* Ensure Studio Nav Links strictly inherit the exact geometry and margins of global nav links */
.studio-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 16px 12px 10.5px !important;
    height: 38px !important;
    border-radius: 50px !important;
    margin: 3px 12px !important;
    width: calc(100% - 24px) !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    font-family: var(--font-primary) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #1f1f1f !important;
    letter-spacing: 0.1px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    cursor: pointer !important;
}

.studio-nav-link:hover {
    background-color: #e5e5e5 !important;
    color: #000000 !important;
}

.studio-nav-link.active {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.studio-nav-link.active .studio-nav-svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

.studio-nav-svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    color: inherit !important;
}

/* Smooth Canvas Highlight Animation */
@keyframes studioHighlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.25);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.15);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    }
}

.studio-section-highlight {
    animation: studioHighlightPulse 1.6s ease-out;
}

/* Agent Studio Sidebar Collapsed Mode Harmonization (72px collapsed geometry) */
body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-back-row {
    display: flex;
    justify-content: center;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-back-link {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-back-text {
    display: none !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-agent-switcher-btn {
    padding: 6px !important;
    justify-content: center !important;
    height: 42px !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-switcher-meta,
body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-switcher-chevron {
    display: none !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-agent-switcher {
    position: relative !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-agent-switcher-dropdown {
    position: fixed !important;
    left: 72px !important;
    width: 250px !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-nav-link {
    width: calc(100% - 24px) !important;
    height: 38px !important;
    padding: 12px 10.5px !important;
    justify-content: center !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-nav-link span {
    display: none !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-nav-link .studio-nav-svg {
    margin-right: 0 !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-nav-group-title {
    position: relative !important;
    height: 25px !important;
    margin: 10px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    color: transparent !important;
}

body.sidebar-collapsed .agent-studio-sidebar-wrapper .studio-nav-group-title::after {
    content: "" !important;
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background-color: var(--gray-200, rgba(0, 0, 0, 0.08)) !important;
}




