/* includes/style.css */
/* Custom premium style definitions for Munnottu Platform */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #095F3E;
    --primary-hover: #053b23;
    --primary-light: #e8f7f0;
    --secondary: #25D366;
    --dark: #121824;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-700: #334155;
    --font-outfit: 'Plus Jakarta Sans', sans-serif;
    --font-jakarta: 'Plus Jakarta Sans', sans-serif;
    --sidebar-width: 260px;
}

/* Prevent transition execution during initial load */
.no-transition * {
    transition: none !important;
}

@media (min-width: 992px) {
    body.sidebar-collapsed {
        --sidebar-width: 68px;
    }
}

html {
    font-size: 14.5px; /* Scales down all Bootstrap rem units (buttons, margins, paddings, fonts) globally */
}

body {
    font-family: var(--font-jakarta);
    background-color: #f6f8f9;
    color: #3c4043; /* Gemini dark gray text */
    font-size: 13.5px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-jakarta);
    font-weight: 600;
    letter-spacing: -0.02em; /* Gemini tight tracking for headings */
    color: #1f1f1f;
}

.font-outfit {
    font-family: var(--font-jakarta);
    font-weight: 600;
    letter-spacing: -0.02em; /* Gemini tight tracking for headings */
}

/* Material Symbols Rounded Configuration (Gemini UI Style) */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;  /* Match Gemini sidebar icon size */
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
  vertical-align: middle;
}

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

.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-outfit);
    font-size: 18px;
    font-weight: 700;
    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; /* Flat light gray card background matching mockup */
    border-radius: 20px !important;
    padding: 18px 24px !important;
    display: flex;
    align-items: center;
    gap: 16px;
    border: none !important;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    overflow: hidden;
}

.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-jakarta);
    font-size: 14.5px;
    font-weight: 600;
    color: #121824;
    margin: 0;
    line-height: 1.4;
}

.modern-card-item-subtitle {
    font-family: var(--font-jakarta);
    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;
}

/* Custom interactive input elements */
.custom-input {
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.custom-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 95, 62, 0.15);
    outline: none;
}

/* 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: 600;
}

.badge-light-primary {
    background-color: #e0f2fe;
    color: #0284c7;
    font-weight: 600;
}

.badge-light-warning {
    background-color: #fef3c7;
    color: #d97706;
    font-weight: 600;
}

.badge-light-danger {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: 600;
}

/* 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: 500;
    font-size: 13.5px;
    font-family: var(--font-jakarta);
}

/* ==========================================
   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.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.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.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-content-inner {
    flex-grow: 1;
    overflow-y: auto;
    background: #f8fafc;
    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.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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 */
.navbar-search-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
}
.navbar-search-input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 8px;
    padding: 6px 36px 6px 36px;
    font-size: 13.5px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.navbar-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #095F3E;
    box-shadow: 0 0 0 2px rgba(9, 95, 62, 0.25);
}
.navbar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}
.navbar-search-shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    font-family: monospace;
}

/* 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: 700;
    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: 600;
    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: 700;
    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: #095f3e;
    font-weight: 600;
}
.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: 700;
    font-size: 12px;
    transition: all 0.2s ease;
}
.store-item.active .store-avatar {
    background-color: #095f3e;
    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: #095f3e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(9, 95, 62, 0.1);
}
.profile-details {
    line-height: 1.3;
    overflow: hidden;
}
.profile-name {
    font-weight: 700;
    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: 600;
    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 {
    display: flex;
    align-items: center;
    padding: 8.3px 12px;
    color: #1f1f1f; /* Gemini dark color */
    text-decoration: none;
    border-radius: 50px; /* Gemini pills */
    margin: 2px 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 13.5px;
    font-family: var(--font-jakarta) !important;
    letter-spacing: 0.1px;
}
.nav-item-link:hover {
    background-color: #f0f4f9; /* Gemini hover bg */
    color: #1f1f1f;
}
.nav-item-link.active {
    background-color: #d3e3fd; /* Gemini active bg */
    color: #041e49; /* Gemini active text */
    font-weight: 600;
}
.nav-item-link .material-symbols-rounded,
.nav-item-link i {
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !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: 14px;
    color: inherit;
}
.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: 800;
    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: 800;
    margin-right: 8px;
}
.badge-scope {
    background-color: #e2f5ec;
    color: #095f3e;
    font-family: monospace;
    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: 600;
    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: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 4px;
    display: inline-block;
}

/* ==========================================
   4. TEAM DIRECTORY (team.php)
   ========================================== */
.nav-tabs-custom {
    border-bottom: 2px solid #E2E8F0;
}
.nav-tabs-custom .nav-link-custom {
    color: #64748B;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: none;
    background: none;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-tabs-custom .nav-link-custom.active {
    color: #095F3E;
}
.nav-tabs-custom .nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #095F3E;
    border-radius: 2px;
}
.nav-tabs-custom .nav-link-custom .badge-count {
    background-color: #F1F5F9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
}
.nav-tabs-custom .nav-link-custom.active .badge-count {
    background-color: #E6F4EA;
    color: #095F3E;
}
.role-badge {
    font-size: 12px;
    font-weight: 600;
    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: 500;
    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: 600;
    border-left-color: var(--primary);
}
.inbox-style-card {
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
}
.inbox-style-card:hover {
    border-color: #cbd5e1;
}
.inbox-style-card.selected {
    border-color: var(--primary) !important;
    background-color: #e8f7f0 !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: 700;
    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: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.inbox-contact-item {
    border-left: 3px solid transparent !important;
    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: #e8f7f0 !important;
    border-left-color: #095f3e !important;
    border-color: rgba(9, 95, 62, 0.1) !important;
    color: #0f172a !important;
}
.inbox-contact-item.active .text-dark,
.inbox-contact-item.active .fw-bold {
    color: #095f3e !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: 700;
    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-outfit);
    font-weight: 700;
    color: #0f172a;
    font-size: 24px;
    margin-bottom: 24px;
    padding-left: 8px;
}
.developer-sidebar-container .nav-link {
    color: #475569;
    font-weight: 500;
    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: 600;
}
.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: 600;
    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: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    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: 600;
    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: #095f3e;
}
.btn-pill-selector.active {
    background-color: #e8f7f0 !important;
    border-color: #095f3e !important;
    color: #095f3e !important;
    box-shadow: 0 0 0 1px #095f3e;
}
.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-jakarta), system-ui, -apple-system, sans-serif;
}
.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: 500;
}
.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: 600;
    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: 600;
}
.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: 600;
}
.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: 600;
    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: 600;
    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: #095f3e !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: 500;
    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: #095f3e !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: 600;
}
.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: 600;
    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: 600;
    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;
}
.brand-color {
    color: #095F3E;
}
.brand-bg {
    background-color: #095F3E;
}
.text-xs {
    font-size: 0.75rem;
}
.text-sm {
    font-size: 0.875rem;
}
.fw-semibold {
    font-weight: 600;
}
.fw-bold {
    font-weight: 700;
}
.border-dashed-bottom {
    border-bottom: 2px dashed #e2e8f0;
}
@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 {
    --bg-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(--bg-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: 'Outfit', sans-serif;
    font-weight: 800;
    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: 600;
    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 {
    color: var(--accent-green);
    font-size: 24px;
}
.otp-demo-body .sim-card h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    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: 600;
    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;
}
.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: 'Inter', sans-serif;
    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: 'Outfit', sans-serif;
    font-weight: 700;
    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 {
    color: var(--accent-green);
    font-size: 38px;
}
.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: 'Outfit', sans-serif;
    font-weight: 700;
    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: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.otp-demo-body .config-card .value {
    font-family: 'JetBrains Mono', monospace;
    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: 'Outfit', sans-serif;
    font-weight: 700;
    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: 'Outfit', sans-serif;
    font-weight: 700;
    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: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.otp-demo-body .terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    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: 600; }
.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: 'JetBrains Mono', monospace;
    background-color: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.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: 800;
    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: 600;
    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: 700;
    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: 700;
    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: inherit;
    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: 700;
    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: 700;
    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: 600;
    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: 600; }
.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: 600;
}
.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-jakarta);
    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-settings-menu {
    background-color: #ffffff !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1) !important;
    padding: 8px !important;
    color: var(--gray-700) !important;
    z-index: 2000 !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-jakarta);
}
.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;
}
.sidebar-profile-footer {
    position: relative;
    z-index: 1050;
}

/* Search Modal Overlay */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.search-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.search-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.25s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.search-modal-overlay.active .search-modal-container {
    transform: translateY(0);
}
.search-modal-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.search-modal-icon {
    color: #64748b;
    font-size: 18px;
    margin-right: 12px;
}
.search-modal-input {
    flex-grow: 1;
    border: none;
    font-size: 16px;
    outline: none;
    color: #0f172a;
    font-family: var(--font-jakarta);
}
.search-modal-input::placeholder {
    color: #94a3b8;
}
.search-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.search-modal-close-btn:hover {
    color: #0f172a;
}
.search-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}
.search-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-family: var(--font-jakarta);
}
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: var(--font-jakarta);
    font-weight: 500;
    cursor: pointer;
}
.search-result-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}
.search-result-item i {
    width: 20px;
    font-size: 15px;
    color: #64748b;
    margin-right: 12px;
    text-align: center;
}
.search-result-item:hover i {
    color: #0f172a;
}
.search-pill-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    font-family: var(--font-jakarta);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.search-pill-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.search-pill-btn.active {
    background: #095f3e;
    color: #ffffff;
    border-color: #095f3e;
}
.search-empty-state {
    color: #64748b;
}

/* 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) {
        display: none !important;
    }
    body.sidebar-collapsed .sidebar-wrapper .text-uppercase {
        display: none !important;
    }
    body.sidebar-collapsed .sidebar-wrapper .nav-item-link {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50px !important;
        margin: 4px auto !important;
    }
    body.sidebar-collapsed .sidebar-wrapper .nav-item-link i,
    body.sidebar-collapsed .sidebar-wrapper .nav-item-link .material-symbols-rounded {
        font-size: 22px !important;
        width: 22px !important;
        height: 22px !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-settings-menu {
        position: absolute !important;
        left: 60px !important;
        bottom: 0px !important;
        right: auto !important;
        transform: none !important;
    }
}

/* Sidebar settings menu fixes (Global) */
.sidebar-settings-menu .dropdown-item {
    font-family: var(--font-jakarta) !important;
    font-size: 13.5px;
    font-weight: 500;
    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;
}

/* 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: 'Outfit', sans-serif !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 */
.page-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    font-family: var(--font-outfit) !important;
    color: var(--dark) !important;
    letter-spacing: -0.1px !important;
    line-height: 1.2 !important;
}

/* Message Templates Custom CSS styling overrides */
.nav-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-outfit);
    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: 600;
    font-family: var(--font-outfit);
    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;
}




