﻿/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
:root {
    --bd-purple: #4c0bce;
    --bd-violet: #712cf9;
    --bd-accent: #ffe484;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bd-accent-rgb: 255, 228, 132;
    --bd-pink-rgb: 214, 51, 132;
    --bd-teal-rgb: 32, 201, 151;
}

body {
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #efefef;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}


/* ========================================
   Modern Sidebar Navigation System
   ======================================== */
/* ========================================
   Modern Sidebar Navigation System - Complete Solution
   ======================================== */
/* Place in your main CSS file or in a <style> block */
.select-media-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s;
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.08);
    font-weight: 500;
    display: inline-block;
}

    .select-media-btn:hover,
    .select-media-btn:focus {
        background: #2563eb;
        color: #fff;
        outline: none;
    }

.service-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Curved Top (Before) */
.leftActiveCurveBfr {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 24px;
    z-index: 2;
    pointer-events: none;
    background: transparent;
}

.leftActiveCurveAfr:before {
    bottom: -1px;
    border-top-right-radius: 12px;
}

.leftActiveCurveBfr {
    top: -45px;
    height: 20px;
    width: 20px
}


    .leftActiveCurveAfr::before, .leftActiveCurveBfr::before {
        content: '';
        position: absolute;
        left: -1px;
        right: 0;
        height: 16px;
        background: #223458;
        z-index: 1;
    }

.img-4x {
    width: 3rem;
    height: 3rem;
}

.pA {
    position: relative;
}


.dN {
    display: none;
}

leftActiveCurveAfr, .leftActiveCurveBfr {
    background: #223458;
}


/* Main content area that adjusts based on sidebar state */
.s-main {
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    background-color: #f8f9fa;
    padding-left: 280px;
}

    /* When sidebar is collapsed, reduce left margin */

    .s-main.sidebar-collapsed {
        padding-left: 110px; /* 70px (service) + 60px (collapsed secondary) */
    }

@media (min-width: 1200px) {
    .s-main {
        padding-left: 280px;
        width: 100%;
        position: relative
    }
}

@media (max-width: 768px) {
    .service-sidebar, .secondary-sidebar {
        position: fixed;
        width: 100vw;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(0%) !important;
        transition: transform 0.3s;
    }

        .service-sidebar.show, .secondary-sidebar.show {
            transform: translateX(0);
        }

    .sidebar-overlay.show {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
}

.content-header {
    margin-bottom: 20px;
    background: #2a497e !important;
    padding: 14px;
    color: white;
    /*    display: none !important;*/
}

    .content-header h1 {
        font-size: 1.8rem;
        font-weight: 600;
        margin: 0;
    }

/* Header content styling */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
}

.brand-icon {
    color: #ecf0f1;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.header-right-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-company-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-role-title {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    background: #52627A !important;
    padding: 2px 9px;
    width: fit-content;
    border: 0.5px solid #52627A;
    border-radius: 6px
}

.headerRight-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
/* Premium Toggle Button - Enhanced Design */
.sidebar-toggle-btn {
    position: absolute;
    right: 12px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: 2px solid #ffffff;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}



.brand-icon:hover {
    color: #3498db;
    transform: scale(1.1);
}

.secondary-sidebar.collapsed .sidebar-toggle-btn {
    display: flex;
}

.sidebar-toggle-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateX(3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

.secondary-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #3d566e;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-shrink: 0;
    height: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.secondary-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .sidebar-collapse-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

/* Hide collapse button when sidebar is collapsed */
.secondary-sidebar.collapsed .sidebar-collapse-btn {
    display: none;
}

.secondary-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 70px);
}

    .secondary-nav::-webkit-scrollbar {
        width: 4px;
    }

    .secondary-nav::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
    }

    .secondary-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.Version_container {
    font-size: 2px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    /*    background: #3456a1 !important;*/
    background: #2a497e !important;
    color: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

    .Version_container span {
        font-size: 10px;
    }

.s-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#UserDialog4_Password {
    width: 100% !important;
}

#UserDialog4_PasswordConfirm {
    width: 100% !important;
}

.s-topbar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

/*    .s-topbar-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }*/

/* Vertical Icon Bar */
.s-sidebar-iconbar {
    width: 50px;
    /*    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%) !important;*/
    background: #121d33 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
    transition: all 0.3s ease;
    /*    overflow: hidden;*/
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.s-sidebar-iconbar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.s-sidebar-brand {
    margin-bottom: 30px;
    margin-top: -10px !important;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-bottom: 1px solid #3d566e;
    flex-shrink: 0;
    position: relative;
}

.s-brand-icon {
    color: white;
    font-size: 24px;
}

.s-sidebar-icons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 0 24px 0;
    align-items: center;
}

.icon-dashboard {
    color: #fff !important;
    /*    background: #C084FC !important;*/
}

.icon-whatsapp {
    color: #C084FC !important;
}

.icon-rcs {
    color: #C084FC !important;
}

.icon-sms {
    color: #00FFAA !important;
}

.icon-administration {
    color: #B0BEC5 !important;
}

.icon-templates {
    color: #fff !important;
    /*    background: #C084FC !important;*/
}

.icon-campaign {
    color: #fff !important;
    /*    background: #C084FC !important;*/
}

.icon-media-library {
    color: #fff !important;
    /*    background: #C084FC !important;*/
}

.icon-conversations {
    color: #fff !important;
    /*    background: #C084FC !important;*/
}

.icon-contacts {
    color: #fff !important;
    /*    background: #C084FC !important;*/
}

.icon-messages {
    color: #fff !important;
    /*    background: #00FFAA !important;*/
}
/*home css icon */
.icon-home {
    color: #fff;
}

role section icon css
.icon-roles {
    color: #932F67 !important;
    /*    background: #B0BEC5 !important;*/
}

.icon-user-management {
    /*    color: #001BB7 !important;*/
    /*    background: #B0BEC5 !important;*/
}

.icon-tenant {
    /*    color: #1A2A80 !important;*/
    /*    background: #B0BEC5 !important;*/
}

.icon-adhar-database {
    color: #B0BEC5 !important
}

#iconbar_4 {
    color: red;
}
/*.icon-exceptions {
    color: #B9375D !important;
    background: #B0BEC5 !important;
}

.icon-contact-groups {
    color: #FFD700 !important;
    background: #B0BEC5 !important;
}

.icon-emails {
    color: #FFD700 !important;
}*/
.s-sidebar-icon-item {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 20px;
    /*    background: white;*/
    /* Enhanced transition for smoothness */
    transition: background 0.25s cubic-bezier(0.4,0,0.2,1), color 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.18s cubic-bezier(0.4,0,0.2,1);
}

    .s-sidebar-icon-item:first-child {
        margin-top: 13px !important;
    }

    .s-sidebar-icon-item:hover {
        color: #fff;
        border-radius: 20px 0 0 20px;
        margin-left: 4px !important;
        transform: translateX(4px) scale(1.06);
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.18);
    }

    .s-sidebar-icon-item.active {
        background: #223458 !important;
        color: #fff;
        border-radius: 20px 0 0 20px;
        transform: translateX(4px) scale(1.06);
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.18);
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px
    }

.s-sidebar-collapse-btn {
    width: 45px !important;
    height: 45px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 7px;
    top: 7px;
    background: #52627A !important;
    border-radius: 10px;
}

    .s-sidebar-collapse-btn:hover {
        color: white;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px;
        transform: scale(1.05);
    }


/*Tabs */

.nav-tabs .nav-link:hover {
    background: #505d81;
    color: var(--s-tabs-text-active) !important;
    text-decoration: none;
}
 
/* Main Navigation Panel */
.secondary-sidebar {
    position: fixed;
    top: 0;
    left: 50px;
    width: 230px;
    height: 100vh;
    /*    background: linear-gradient(180deg, #2e4369 0%, #2c3e50 100%);*/
    background: #223458 !important;
    color: white;
    transform: translateX(0);
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

    /* Secondary sidebar collapsed state */
    .secondary-sidebar.collapsed {
        width: 60px;
    }

        .secondary-sidebar.collapsed .secondary-title {
            display: none;
        }

        .secondary-sidebar.collapsed .nav-link span {
            display: none;
        }

        .secondary-sidebar.collapsed .nav-link {
            padding: 0.75rem 0;
            justify-content: center;
            border-left: none;
        }

        .secondary-sidebar.collapsed .dropdown-toggle {
            padding: 0.75rem 0;
            justify-content: center;
            border-left: none;
        }

            .secondary-sidebar.collapsed .dropdown-toggle i {
                margin-right: 0;
                font-size: 1.3rem;
            }

            .secondary-sidebar.collapsed .dropdown-toggle span {
                display: none;
            }

            .secondary-sidebar.collapsed .dropdown-toggle::after {
                display: none;
            }

        .secondary-sidebar.collapsed .secondary-header {
            padding: 1rem;
            justify-content: center;
        }

        .secondary-sidebar.collapsed .nav-submenu {
            display: none !important;
        }

        .secondary-sidebar.collapsed .nav-link span {
            display: none;
        }

        .secondary-sidebar.collapsed .nav-link {
            padding: 0.75rem 0;
            justify-content: center;
            border-left: none;
        }

            .secondary-sidebar.collapsed .nav-link i {
                margin-right: 0;
                font-size: 1.3rem;
            }

.nav-item {
    margin-bottom: 0.25rem;
    flex-shrink: 0;
    margin: 0px 10px !important;
}
.nav-tabs .nav-item {
    margin:0px!important;
}
.nav-submenu .nav-link {
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.9rem;
    border-left: none;
    min-height: 44px;
    font-weight: 400;
}

    .nav-submenu .nav-link:hover {
        background: rgba(52, 152, 219, 0.2);
        border-left: none;
        transform: translateX(3px);
    }

.nav-link {
    padding: 0.60rem 0.60rem;
    min-height: 28px;
}

    .nav-link i {
        width: 24px;
        height: 24px;
        margin-right: 0.75rem;
    }
/* Header with Search */
.s-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #3d566e;
    height: 60px !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* Brand Text */
.s-sidebar-brand-text {
    padding: 10px 10px 10px;
    background: #000 !important;
    border-left: 1px solid #29313D;
    flex-shrink: 0;
}

    .s-sidebar-brand-text h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: #ffffff !important;
    }

/* Navigation */

.s-nav-section {
    margin-bottom: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    color: #b3bed7;
    background: none;
   
    padding: 10px 16px;
    margin-bottom: 4px;
    font-size: 1.08rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

    .nav-link:hover {
        background: #505d81;
        color: #fff !important;
        text-decoration: none;
    }

.nav-item.active > .nav-link {
    background: #3456a1 !important;
    color: #fff !important;
    font-weight: 600;
}

.s-nav-icon {
    /*    width: 24px;
    height: 24px;*/
    padding: 10px !important;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*    background: #C084FC;*/
    /*    background: #00BFFF;*/
    border-radius: 8px;
    /*    color: #fff;*/
    font-size: 1.2rem;
}
/* Sidebar header */
.secondary-header, .s-sidebar-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    background: none;
    border: none;
    padding: 24px 18px 12px 18px;
    box-shadow: none;
}

.s-nav-text {
    flex: 1;
}



/* Add spacing between tabs and content */
.tab-pane {
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
    background-color: #fff;
    border-radius: 0 0 4px 4px;
}

/* Dashboard specific styles */
.s-dashboard-card, .s-dashboard-card-sm {
    margin-bottom: var(--bs-gutter-x);
}

    .s-dashboard-card .card-header {
        padding: 1rem;
        border-bottom: none;
        background-color: transparent;
    }

    .s-dashboard-card .card-body {
        border-radius: 0 0 4px 4px;
        padding: 1rem;
    }

    .s-dashboard-card .card-footer {
        border-top-color: transparent;
        background-color: transparent;
        padding: 1rem;
    }

    .s-dashboard-card .card-title {
        margin: 0;
        font-size: 1.4rem;
        color: var(--s-table-title);
    }

    .s-dashboard-card-sm .card-body {
        padding: 1rem;
        border-radius: 4px 4px 0 0;
        margin: 1px;
    }

    .s-dashboard-card-sm .card-footer {
        color: rgba(var(--s-bright-rgb), 0.8);
        background-color: var(--bs-body-bg);
        border-radius: 0 0 4px 4px;
        border-top: none;
        margin: 0 1px 1px 1px;
        padding: 3px 0;
        text-align: center;
        text-decoration: none;
    }

    .s-dashboard-card-sm h3 {
        font-size: 38px;
        font-weight: bold;
        margin: 0 0 10px 0;
        white-space: nowrap;
        padding: 0;
    }

    .s-dashboard-card-sm p {
        font-size: 15px;
    }

        .s-dashboard-card-sm p > small {
            display: block;
            font-size: 13px;
            margin-top: 5px;
        }

    .s-dashboard-card-sm .icon {
        transition: all 0.3s linear;
        position: absolute;
        top: 13px;
        color: #fff;
        opacity: 0.9;
        right: 10px;
        font-size: 64px;
    }

.bg-world-map {
    background: #3c8dbc;
}

.s-dashboard-card-sm:hover .icon {
    font-size: 70px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .s-main {
        margin-left: 0;
    }

    .s-topbar {
        left: 0;
    }

    .service-sidebar {
        transform: translateX(-100%);
    }

        .service-sidebar.mobile-open {
            transform: translateX(0);
        }
}

/* Animation for smooth transitions */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* ========================================
   Top Bar
   ======================================== */
.s-topbar {
    /*    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);*/
    /*    background: #313949;*/
    background: #223458;
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #34495e;
    position: sticky;
    top: 0;
    z-index: 1020;
    height: 60px;
    display: flex;
    align-items: center;
    display: none !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.s-topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.s-topbar-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/*    .s-topbar-link:hover {
        background: #f3f4f6;
        color: #1f2937;
        text-decoration: none;
    }*/

section.content {
    min-height: 0;
    height: 100%;
    padding: 0px !important;
    border-radius: 0px !important;
    padding: 5px !important;
}
/* User Profile Menu */
.s-user-profile-menu {
    min-width: 250px;
    padding: 15px 0;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 2000 !important;
    position: absolute !important;
}

.s-user-card {
    padding: 15px 20px;
    text-align: center;
}

.s-user-avatar {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #6b7280;
    font-size: 20px;
}

.s-user-info {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

/* Main Content Adjustment */

/* ========================================
   Dropdown and Form Components
   ======================================== */
.dropup, .dropend, .dropdown, .dropstart, .dropup-center, .dropdown-center {
    position: relative;
    background: #fff !important;
    border-radius: 10px !important;
}

.dropdown {
    position: relative;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: none !important;
    /*    background: #f3f4f6 !important;*/
}

.fa, .fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 21px !important;
}

/* ========================================
   Contact Grid Styles
   ======================================== */

.contacts-grid .slick-row.inactive-contact {
    opacity: 0.6;
    background-color: #f8f8f8;
}

.contacts-grid .slick-row.hot-lead {
    border-left: 4px solid #d9534f;
}

.contacts-grid .slick-row.warm-lead {
    border-left: 4px solid #f0ad4e;
}

.contacts-grid .slick-row.cold-lead {
    border-left: 4px solid #5bc0de;
}

.contacts-grid .slick-row.email-optout .slick-cell[data-field="PrimaryEmail"] {
    background-color: #fcf8e3;
    color: #8a6d3b;
}

.contacts-grid .slick-row.do-not-call .slick-cell[data-field="MobilePhone"],
.contacts-grid .slick-row.do-not-call .slick-cell[data-field="WorkPhone"] {
    background-color: #f2dede;
    color: #a94442;
}

.slick-header-column {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    border-right: 1px solid #dee2e6;
    font-weight: 600;
}

.view-toggle-group {
    /*    display: inline-block;
    margin-right: 10px;*/
    display: flex;
    gap: 20px;
}

    .view-toggle-group .view-toggle {
        border-radius: 0;
    }

        .view-toggle-group .view-toggle:first-child {
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
        }

        .view-toggle-group .view-toggle:last-child {
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
            background-color: #223458 !important;
            color: white;
            border-radius: 6px !important;
        }

        .view-toggle-group .view-toggle.active {
            background-color: #223458 !important;
            color: white;
            border-radius: 6px !important;
        }

.saved-filters-dropdown {
    display: inline-block;
    margin-right: 15px;
}

/* Contact Cards View */
.contact-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.contact-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

    .contact-card:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

    .contact-card-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

.contact-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

    .contact-status.active {
        background: #d4edda;
        color: #155724;
    }

    .contact-status.prospect {
        background: #d1ecf1;
        color: #0c5460;
    }

    .contact-status.customer {
        background: #d4edda;
        color: #155724;
    }

    .contact-status.inactive {
        background: #f8d7da;
        color: #721c24;
    }

.contact-card-body .contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

    .contact-card-body .contact-info i {
        width: 16px;
        margin-right: 8px;
        color: #6c757d;
    }

.contact-card-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: right;
}

    .contact-card-footer .btn {
        margin-left: 5px;
    }

/* Bulk Operations Menu */
.bulk-operations-menu {
    padding: 10px;
}

    .bulk-operations-menu button {
        display: block;
        width: 100%;
        margin-bottom: 5px;
        text-align: left;
    }

/* Quick Filters Enhancement */
.quick-filters-bar {
    border-bottom: 1px solid #dee2e6;
}

.quick-filter-item {
    display: inline-block;
    margin-right: 15px;
    vertical-align: top;
    /*    width: 63% !important;*/
}

.button-inner {
    color: #fff !important;
}

    .button-inner .fa {
        color: #fff !important;
    }

    .button-inner font-face {
        color: #000 !important;
    }

.quick-filter-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 2px;
}

/* ========================================
   Legacy Compatibility
   ======================================== */
.s-site-logo-img {
    content: url(../../Serenity.Assets/logo/white-128.png);
}

.s-TranslationGrid input.custom-text {
    width: 100%;
    height: 23px;
    padding: 0 3px;
}

.s-PermissionCheckEditor {
    min-height: 450px;
}

/* ========================================
   Modern Campaign Dialog Styles
   ======================================== */
.fileinput-button {
    background: #dbeafe;
    border-radius: 50%;
}

.s-CampaignDialog {
    max-width: 1000px !important;
    min-height: 600px;
}

    .s-CampaignDialog .ui-dialog-titlebar {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 8px 8px 0 0;
        padding: 16px 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .s-CampaignDialog .ui-dialog-title {
        font-size: 18px;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .s-CampaignDialog .ui-dialog-titlebar-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 4px;
        color: white;
        width: 32px;
        height: 32px;
    }

        .s-CampaignDialog .ui-dialog-titlebar-close:hover {
            background: rgba(255, 255, 255, 0.3);
        }

/* Modern Form Styling */
.modern-campaign-form {
    padding: 0;
}


.modern-campaign-dialog {
    max-height: 90vh; /* Limit the height to 90% of the viewport */
    overflow: hidden; /* Prevent content from overflowing the dialog */
    display: flex;
    flex-direction: column;
}

/* Ensure tabs and headers are sticky */
.modern-campaign-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.modern-campaign-toolbar {
    position: sticky;
    top: 40px; /* Adjust based on the height of the tabs */
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #ddd;
}
.modern-fieldset {
    border: none !important;
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 32px;
}

    .form-section:last-child {
        margin-bottom: 0;
    }

.section-title {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
}

    .section-title:before {
        content: "";
        width: 4px;
        height: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
        margin-right: 8px;
    }

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

    .form-group.col-md-12 {
        flex: 1 1 100%;
    }

    .form-group.col-md-6 {
        flex: 1 1 calc(50% - 8px);
    }

/* Enhanced Field Styling */
.field {
    margin-bottom: 0;
    display: flex;
    flex-direction: column !important;
}
/*.category{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    width:100% !important;
}*/
#VishwNetMediaManager_Administration_TenantDialog4_Logo {
    width: 100% !important;
}

.categories {
    /*    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;*/
    border-radius: 10px;
    margin: 10px 7px !important;
}

.field .caption {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    text-align: left !important;
}

#VishwNetMediaManager_Administration_RoleDialog4_RoleName {
    width: 40% !important;
}

#UserDialog4_Email {
    width: 100% !important;
}

#UserDialog4_UserImage {
    width: 100% !important;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.field .caption sup {
    color: #ef4444;
    font-size: 12px;
    margin-left: 2px;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="datetime-local"],
.field textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

    .field input[type="text"]:focus,
    .field input[type="number"]:focus,
    .field input[type="datetime-local"]:focus,
    .field textarea:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        outline: none;
    }

.field textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Checkbox Styling */
.field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    margin-right: 8px;
}

/* Select2 Modern Styling */
.select2-container {
    width: 100% !important;
}

    .select2-container .select2-choice {
        border: 1px solid #d1d5db !important;
        border-radius: 6px !important;
        background: white !important;
        padding: 0 12px !important;
        font-size: 14px;
    }

    .select2-container.select2-container-active .select2-choice {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }

.select2-drop {
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Modern Toolbar Styling */
.s-Serenity-Toolbar {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 5px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0px !important;
    margin-bottom: 10px !important;
    margin-top: 10px !important;
}

.tool-button {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 16px;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

    .tool-button:hover {
        background: #f8fafc;
        border-color: #9ca3af;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .tool-button:before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s;
    }

    .tool-button:active:before {
        width: 300px;
        height: 300px;
    }

.save-and-close-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

    .save-and-close-button:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        border-color: #2563eb;
    }

.delete-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
}

    .delete-button:hover {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        border-color: #dc2626;
    }

.run-campaign-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

    .run-campaign-button:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        border-color: #059669;
    }

/* Modern Tabs Styling */
.modern-campaign-dialog .ui-tabs .ui-tabs-nav {
    background: white;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .modern-campaign-dialog .ui-tabs .ui-tabs-nav li {
        border: none;
        margin: 0 4px;
    }

        .modern-campaign-dialog .ui-tabs .ui-tabs-nav li a {
            padding: 12px 24px;
            border: none;
            border-radius: 6px 6px 0 0;
            background: transparent;
            color: #6b7280;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .modern-campaign-dialog .ui-tabs .ui-tabs-nav li:hover a {
            background: #f8fafc;
            color: #374151;
        }

        .modern-campaign-dialog .ui-tabs .ui-tabs-nav li.ui-tabs-active a {
            background: #f8fafc;
            color: #1f2937;
            border-bottom: 3px solid #3b82f6;
            font-weight: 600;
        }

.modern-campaign-dialog .ui-tabs .ui-tabs-panel {
    border: none;
    padding: 0;
    background: #f8fafc;
}

/* Modern Contacts Grid Styling */
.modern-contacts-grid {
    margin: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: white;
}

    .modern-contacts-grid .grid-title {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        padding: 16px 20px;
        border-bottom: 1px solid #e2e8f0;
    }

    .modern-contacts-grid .title-text {
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
    }

    .modern-contacts-grid .grid-toolbar {
        background: white;
        padding: 6px 10px;
        border-bottom: 1px solid #e2e8f0;
    }

    .modern-contacts-grid .slick-header {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-bottom: 2px solid #e2e8f0;
    }

    .modern-contacts-grid .slick-header-column {
        background: transparent;
        border-right: 1px solid #e2e8f0;
        font-weight: 600;
        color: #374151;
        padding: 12px 16px;
    }

    .modern-contacts-grid .slick-row {
        border-bottom: 1px solid #f1f5f9;
        transition: background-color 0.2s ease;
    }

        .modern-contacts-grid .slick-row:hover {
            background: #f8fafc;
        }

        .modern-contacts-grid .slick-row.even {
            background: #fafbfc;
        }

            .modern-contacts-grid .slick-row.even:hover {
                background: #f1f5f9;
            }

    .modern-contacts-grid .slick-cell {
        border-right: 1px solid #f1f5f9;
        padding: 12px 16px;
        font-size: 14px;
    }

/* ========================================
   Modern Campaign Grid Styles
   ======================================== */
.modern-campaign-grid {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Grid Header */
.grid-header {
    background: #223458 !important;
    color: white;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 10px !important;
}

.grid-title-section {
    flex: 1;
    min-width: 300px;
}

.grid-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #223458 !important;
    border-radius: 10px !important;
    padding:14px  !important;
}

    .grid-title i {
        font-size: 20px;
        opacity: 0.9;
    }

.grid-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    font-weight: 400;
}

/* Stats Cards */
.grid-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 4px 8px;
    text-align: center;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid Toolbar */
.modern-campaign-grid .grid-toolbar {
    /*    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;*/
    padding: 10px 20px !important;
    border-radius: 10px !important;
}

.modern-campaign-grid .s-QuickSearchBar {
    flex: 1;
    max-width: 300px;
    position: relative;
}

.modern-campaign-grid .s-QuickSearchInput {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

    .modern-campaign-grid .s-QuickSearchInput:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        outline: none;
        background: white;
    }

.modern-campaign-grid .quick-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 14px;
}

/* Toolbar Buttons */
.modern-campaign-grid .tool-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modern-campaign-grid .tool-button {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #374151;
}

    .modern-campaign-grid .tool-button:hover {
        background: #f9fafb;
        border-color: #9ca3af;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        color: #1f2937;
    }

.modern-campaign-grid .add-campaign-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

    .modern-campaign-grid .add-campaign-btn:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        color: white;
    }

.modern-campaign-grid .run-selected-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

    .modern-campaign-grid .run-selected-btn:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: white;
    }

.modern-campaign-grid .bulk-actions-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-color: #8b5cf6;
}

    .modern-campaign-grid .bulk-actions-btn:hover {
        background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
        color: white;
    }

.modern-campaign-grid .export-excel-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
}

    .modern-campaign-grid .export-excel-btn:hover {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
        color: white;
    }

.modern-campaign-grid .import-campaigns-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
}

    .modern-campaign-grid .import-campaigns-btn:hover {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: white;
    }

/* Grid Container */
.modern-campaign-grid .grid-container {
    background: white;
    border-radius: 0 0 12px 12px;
    border-radius: 10px !important;
}

/* Grid Header */
.modern-campaign-grid .slick-header {
    background-color: lightgray;
    /*border-bottom: 2px solid #667eea;*/
}

.modern-campaign-grid .slick-header-column {
    border-right: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: lightgray;
    /*    width: fit-content !important;*/
}

    .modern-campaign-grid .slick-header-column:hover {
        background: rgba(102, 126, 234, 0.05);
    }

.modern-campaign-grid .slick-sort-indicator {
    color: #667eea;
    font-size: 12px;
}

/* Grid Rows */
.modern-campaign-grid .slick-row {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    height: 50px;
}

    .modern-campaign-grid .slick-row:hover {
        background: #f8fafc;
        box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.1);
    }

    .modern-campaign-grid .slick-row.even {
        background: #fafbfc;
    }

        .modern-campaign-grid .slick-row.even:hover {
            background: #f1f5f9;
        }

    .modern-campaign-grid .slick-row.selected {
        background: rgba(102, 126, 234, 0.1);
        border-color: #667eea;
    }

/* Grid Cells */
.modern-campaign-grid .slick-cell {
    border-right: 1px solid #f1f5f9;
    padding: 12px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

    .modern-campaign-grid .slick-cell a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
    }

        .modern-campaign-grid .slick-cell a:hover {
            color: #4f46e5;
            text-decoration: underline;
        }

/* Status-based Row Styling */
.modern-campaign-grid .slick-row.status-draft {
    border-left: 4px solid #6b7280;
}

.modern-campaign-grid .slick-row.status-approved {
    border-left: 4px solid #f59e0b;
}

.modern-campaign-grid .slick-row.status-active {
    border-left: 0px;
}

.modern-campaign-grid .slick-row.status-paused {
    border-left: 4px solid #ef4444;
}

.modern-campaign-grid .slick-row.status-completed {
    border-left: 4px solid #8b5cf6;
}

.modern-campaign-grid .slick-row.inactive-campaign {
    opacity: 0.6;
}

/* Context Menu */
.context-menu {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 180px;
    z-index: 10000;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.2s ease;
}

    .context-menu-item:hover {
        background: #f3f4f6;
        color: #1f2937;
    }

    .context-menu-item i {
        width: 16px;
        font-size: 14px;
        color: #6b7280;
    }

.context-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Bulk Actions Menu */
.bulk-actions-menu {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 200px;
    z-index: 10000;
}

.bulk-action-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.2s ease;
}

    .bulk-action-item:hover {
        background: #f3f4f6;
        color: #1f2937;
    }

    .bulk-action-item i {
        width: 16px;
        font-size: 14px;
        color: #6b7280;
    }

.bulk-action-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Pagination */
.modern-campaign-grid .slick-pager {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modern-campaign-grid .slick-pager .slick-pg-in {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .modern-campaign-grid .slick-pager .slick-pg-grp {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .modern-campaign-grid .slick-pager .slick-pg-btn {
        background: white;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        padding: 8px 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #374151;
    }

        .modern-campaign-grid .slick-pager .slick-pg-btn:hover {
            background: #f9fafb;
            border-color: #9ca3af;
        }

        .modern-campaign-grid .slick-pager .slick-pg-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

    .modern-campaign-grid .slick-pager .slick-pg-current {
        border: 1px solid #667eea;
        border-radius: 4px;
        padding: 4px 8px;
        text-align: center;
        width: 60px;
    }

/* Quick Filters */
.modern-campaign-grid .quick-filters {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.modern-campaign-grid .quick-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .modern-campaign-grid .quick-filter label {
        font-size: 13px;
        font-weight: 500;
        color: #374151;
        white-space: nowrap;
    }

    .modern-campaign-grid .quick-filter select,
    .modern-campaign-grid .quick-filter input {
        border: 1px solid #d1d5db;
        border-radius: 4px;
        padding: 6px 10px;
        font-size: 13px;
        background: white;
    }

/* ========================================
   RCS Messaging Studio Styles
   ======================================== */


.rcs-messaging-studio {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #faf5ff 100%);
    min-height: 100%;
}

/* Header Styles */
.rcs-header {
    margin-bottom: 2rem;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

    .rcs-header.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

.rcs-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.rcs-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rcs-icon-wrapper {
    padding: 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 0.75rem;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.rcs-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.rcs-title {
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0 0 0.25rem 0;
}

.rcs-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
}

.rcs-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rcs-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.rcs-badge-ai {
    background: #dbeafe;
    color: #1d4ed8;
}

.rcs-badge-live {
    background: #dcfce7;
    color: #166534;
}

.rcs-badge-rich {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Main Grid */
.rcs-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
    opacity: 1;
    height: 1200px;
}

/* Form Section */
.rcs-form-section {
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

    .rcs-form-section.animate-in {
        opacity: 1;
        transform: translateX(0);
    }

/* Preview Section */
.rcs-preview-section {
    transform: translateX(20px);
    transition: all 0.6s ease;
}

    .rcs-preview-section.animate-in {
        opacity: 1;
        transform: translateX(0);
    }

/* Card Styles */
.rcs-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rcs-card-header {
    /* padding: 1.5rem 1.5rem 1rem 1.5rem;*/
    border-bottom: 1px solid #f1f5f9;
}

.rcs-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.rcs-card-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #3b82f6;
}

.rcs-card-description {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* Tabs */

/* Tab Content */

/* Form Groups */
.rcs-form-group {
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

    .rcs-form-group.focused {
        transform: translateY(-2px);
    }

.rcs-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.label-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

    .label-dot.pink {
        background: #ec4899;
    }

    .label-dot.purple {
        background: #8b5cf6;
    }

    .label-dot.green {
        background: #10b981;
    }

/* Input Wrappers */
.rcs-input-wrapper input,
.rcs-textarea-wrapper textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

    .rcs-input-wrapper input:focus,
    .rcs-textarea-wrapper textarea:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

/* Upload Area */
.rcs-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(249, 250, 251, 0.5);
    display: flow;
}

    .rcs-upload-area:hover {
        border-color: #3b82f6;
        background: rgba(59, 130, 246, 0.05);
    }

    .rcs-upload-area.drag-over {
        border-color: #3b82f6;
        background: rgba(59, 130, 246, 0.1);
        transform: scale(1.02);
    }

    .rcs-upload-area.upload-success {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.1);
    }

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon-wrapper {
    padding: 1rem;
    background: #dbeafe;
    border-radius: 50%;
}

.upload-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #3b82f6;
}

.upload-primary {
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.upload-secondary {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Coming Soon */
.rcs-coming-soon {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.coming-soon-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem auto;
    opacity: 0.5;
}

.rcs-coming-soon h3 {
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.rcs-coming-soon p {
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

/* Phone Mockup */
.rcs-preview-container {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}




.phone-frame {
    width: 20rem;
    height: 37.5rem;
    background: #1f2937;
    border-radius: 3rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 3rem;
    position: relative;
}

.status-bar {
    height: 1.5rem;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-indicators {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.signal-strength {
    width: 1rem;
    height: 0.5rem;
    background: #10b981;
    border-radius: 0.125rem;
}

.battery-indicator {
    width: 1.5rem;
    height: 0.75rem;
    border: 1px solid #6b7280;
    border-radius: 0.125rem;
    position: relative;
}

.battery-level {
    width: 70%;
    height: 100%;
    background: #1f2937;
    border-radius: 0.0625rem;
}

/* Message Container */
.message-container {
    padding: 1rem;
    height: calc(100% - 1.5rem);
    background: #f8fafc;
    overflow: scroll;
}



.message-header {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.message-avatar {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #f97316, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.25;
}

.message-content p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.message-image {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    text-align: center;
    color: #9ca3af;
}

.media-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
}

.image-placeholder p {
    font-size: 0.75rem;
    margin: 0;
}

.uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-actions {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .action-btn:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

    .action-btn svg {
        width: 0.75rem;
        height: 0.75rem;
    }

    .action-btn.full-width {
        grid-column: 1 / -1;
    }

/* Action Buttons */
.rcs-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.rcs-btn-primary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .rcs-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

.rcs-btn-outline {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .rcs-btn-outline:hover {
        background: #f9fafb;
        border-color: #9ca3af;
    }

/* Dialog Container */
.rcs-dialog-container {
    border-radius: 1rem !important;
}

    .rcs-dialog-container .ui-dialog-titlebar {
        display: none !important;
    }

/* ========================================
   Loading States and Error Handling
   ======================================== */
.field.loading input,
.field.loading textarea,
.field.loading .select2-container {
    opacity: 0.6;
    pointer-events: none;
}

.field.error input,
.field.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field .error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* Loading Animation */
.modern-campaign-grid.loading {
    position: relative;
}

    .modern-campaign-grid.loading::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .modern-campaign-grid.loading::before {
        content: "";
        width: 40px;
        height: 40px;
        border: 4px solid #e5e7eb;
        border-top: 4px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1001;
    }

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   Animation Effects
   ======================================== */
.s-CampaignDialog {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-campaign-grid {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .rcs-main-grid {
        grid-template-columns: 1fr;
    }

    .grid-header {
        align-items: stretch;
        text-align: left;
    }

    .grid-stats {
        justify-content: center;
    }



    .modern-campaign-grid .s-QuickSearchBar {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .service-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .service-sidebar.show {
            transform: translateX(0);
        }

    .s-topbar {
        left: 0;
    }

    .s-main {
        margin-left: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.col-md-6 {
        flex: 1 1 100%;
        margin-bottom: 16px;
        min-width: auto;
    }

    .s-CampaignDialog {
        max-width: 95% !important;
        margin: 20px auto;
    }

    .modern-toolbar .tool-button {
        margin-bottom: 8px;
        margin-right: 4px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .contact-cards-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .view-toggle-group,
    .saved-filters-dropdown {
        display: block;
        margin-bottom: 10px;
    }

    .toolbar-button {
        margin-bottom: 5px;
    }

    .rcs-messaging-studio {
        padding: 1rem;
    }

    .rcs-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .rcs-tab-list {
        grid-template-columns: 1fr;
    }

    .rcs-tab {
        justify-content: flex-start;
    }

    .grid-header {
        padding: 10px 16px;
    }

    .grid-title {
        font-size: 20px;
    }

    .stat-card {
        min-width: 80px;
        padding: 12px 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    .modern-campaign-grid .grid-toolbar {
        padding: 4px 8px;
    }

    .modern-campaign-grid .tool-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .modern-campaign-grid .slick-cell {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .toolbar,
    .quick-filters-bar,
    .pager {
        display: none !important;
    }

    .slick-row {
        page-break-inside: avoid;
    }
}

/* WhatsApp Premium Dashboard - Responsive & Contained */
.whatsapp-premium-dashboard {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dashboard-container {
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

    .dashboard-container::-webkit-scrollbar {
        width: 6px;
    }

    .dashboard-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 3px;
    }

    .dashboard-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

/* KPI Section */
.kpi-section {
    margin-bottom: 1.5rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 100%;
}

.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .kpi-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }

    .kpi-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    /* KPI Card Variants */
    .kpi-card.messages-sent {
        --primary-color: #3b82f6;
        --secondary-color: #1d4ed8;
    }

    .kpi-card.messages-delivered {
        --primary-color: #10b981;
        --secondary-color: #059669;
    }

    .kpi-card.messages-failed {
        --primary-color: #ef4444;
        --secondary-color: #dc2626;
    }

    .kpi-card.messages-read {
        --primary-color: #8b5cf6;
        --secondary-color: #7c3aed;
    }

    .kpi-card.active-conversations {
        --primary-color: #f59e0b;
        --secondary-color: #d97706;
    }

    .kpi-card.response-rate {
        --primary-color: #06b6d4;
        --secondary-color: #0891b2;
    }

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

    .kpi-trend.positive {
        color: #10b981;
    }

    .kpi-trend.negative {
        color: #ef4444;
    }

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.kpi-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.kpi-mini-chart {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    opacity: 0.3;
}

/* Charts Section */
.charts-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0px !important;
}

.charts-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

    .charts-row:first-child {
        height: 300px;
    }

    .charts-row:last-child {
        height: 250px;
    }

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .chart-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

.main-chart {
    flex: 2;
    min-width: 0;
}

.side-charts {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.small-chart {
    flex: 1;
    min-height: 0;
}

.medium-chart {
    flex: 1;
    min-width: 0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.chart-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .legend-color.sent {
        background: #3b82f6;
    }

    .legend-color.delivered {
        background: #10b981;
    }

    .legend-color.failed {
        background: #ef4444;
    }

    .legend-color.read {
        background: #8b5cf6;
    }

.chart-body {
    flex: 1;
    position: relative;
    min-height: 0;
    overflow: hidden;
}

/* Activity Card Specific */
.activity-body {
    padding: 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

    .activity-item:hover {
        background: #f1f5f9;
        transform: translateX(2px);
    }

.activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

    .activity-icon.success {
        background: #10b981;
    }

    .activity-icon.warning {
        background: #f59e0b;
    }

    .activity-icon.info {
        background: #3b82f6;
    }

    .activity-icon.error {
        background: #ef4444;
    }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.125rem;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate="fadeInUp"] {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-row:first-child {
        flex-direction: column;
        height: auto;
    }

    .main-chart {
        height: 300px;
    }

    .side-charts {
        flex-direction: row;
        height: 250px;
    }

    .small-chart {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0.75rem;
    }

    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 0.75rem;
    }

    .kpi-card {
        padding: 1rem;
        min-height: 100px;
    }

    .kpi-value {
        font-size: 1.5rem;
    }

    .charts-row {
        flex-direction: column;
        height: auto;
    }

        .charts-row:first-child,
        .charts-row:last-child {
            height: auto;
        }

    .chart-card {
        height: 250px;
        padding: 1rem;
    }

    .side-charts {
        flex-direction: column;
    }

    .chart-legend {
        gap: 0.5rem;
    }

    .legend-item {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 0.5rem;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .kpi-card {
        padding: 0.75rem;
        min-height: 90px;
    }

    .kpi-value {
        font-size: 1.25rem;
    }

    .kpi-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .chart-card {
        height: 200px;
        padding: 0.75rem;
    }

    .chart-title {
        font-size: 0.9rem;
    }

    .chart-legend {
        flex-direction: column;
        gap: 0.25rem;
    }

    .activity-item {
        padding: 0.5rem;
    }

    .activity-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

/* template*/

.template-actions {
    border: 2px dashed #d1d5db;
    display: flex;
    justify-content: space-between;
    border-width: 2px;
    border-style: dashed;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    width: 500px;
    display: flow;
}



.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}

.badge-type {
    background-color: #2A497E !important;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.slick-header-columns {
    border-bottom: 2px solid #dee2e6;
}

.slick-header-column {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 12px 8px;
}

.slick-cell {
    border-right: 1px solid #f1f3f4;
    border-bottom: 1px solid #f1f3f4;
    padding: 8px;
}

.slick-row:hover {
    background-color: #f8f9fa;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

@media (max-width: 768px) {
    .template-name-column {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}



.reject-button {
    background-color: #ff4d4d; /* Red color for rejection */
    color: white; /* Text color */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 20px; /* Button size */
    font-size: 16px; /* Text size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

    .reject-button:hover {
        background-color: #e60000; /* Darker red on hover */
        transform: scale(1.05); /* Slightly enlarge on hover */
    }

    .reject-button:active {
        background-color: #cc0000; /* Even darker red when clicked */
        transform: scale(0.98); /* Slightly shrink on click */
    }

    .reject-button:disabled {
        background-color: #f2f2f2; /* Gray for disabled state */
        color: #999; /* Text color for disabled state */
        cursor: not-allowed; /* Disabled cursor */
    }

/* Approve Template Button */
.ApproveTemplate {
    background-color: #28a745; /* Green background */
    color: #ffffff; /* White text */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 20px; /* Padding for size */
    font-size: 16px; /* Font size */
    font-weight: bold; /* Bold text */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

    .ApproveTemplate:hover {
        background-color: #218838; /* Darker green on hover */
        transform: scale(1.05); /* Slightly enlarge on hover */
    }

    .ApproveTemplate:active {
        background-color: #1e7e34; /* Even darker green when clicked */
        transform: scale(0.95); /* Slightly shrink on click */
    }

    .ApproveTemplate:disabled {
        background-color: #6c757d; /* Gray background for disabled state */
        cursor: not-allowed; /* Disabled cursor */
        opacity: 0.65; /* Slightly faded */
    }

.SubmitForApproval {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    font-size: 16px; /* Font size */
    padding: 10px 20px; /* Padding for size */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth*/
}

    /* Hover effect */
    .SubmitForApproval:hover {
        background-color: #45a049; /* Darker green on hover */
        transform: scale(1.05); /* Slightly enlarge button */
    }

    /* Active state */
    .SubmitForApproval:active {
        background-color: #3e8e41; /* Even darker green when clicked */
        transform: scale(0.98); /* Slightly shrink button */
    }

    /* Disabled state */
    .SubmitForApproval:disabled {
        background-color: #cccccc; /* Gray background */
        color: #666666; /* Gray text */
        cursor: not-allowed; /* Disabled cursor */
    }



.grid-title, .panel-titlebar {
    color: black;
}
/* Modern Switch Styles */
.modern-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .modern-switch input[type="checkbox"] {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s ease;
    margin: 0;
}

    .switch-label:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

.modern-switch input:checked + .switch-label {
    background-color: #4caf50;
}

    .modern-switch input:checked + .switch-label:before {
        transform: translateX(26px);
    }

.modern-switch input:focus + .switch-label {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.modern-switch input:checked + .switch-label {
    background-color: #4caf50;
}

/*test */
.modern-upload-wrapper {
    margin: 1rem 0;
    padding: 0;
}

.modern-upload-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .modern-upload-container:hover {
        border-color: #3b82f6;
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    }

.upload-drop-zone {
    text-align: center;
    position: relative;
    cursor: pointer;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon-wrapper {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.modern-upload-container:hover .upload-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.upload-icon {
    width: 2rem;
    height: 2rem;
    color: white;
}

.upload-text {
    text-align: center;
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.upload-subtitle {
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.upload-browse {
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease;
}

    .upload-browse:hover {
        text-decoration-color: #3b82f6;
    }

.upload-info {
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 0;
}

.upload-decorative-dots {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
}

.modern-upload-container:hover .dot:nth-child(1) {
    background: #3b82f6;
    animation: dotPulse 1.5s infinite;
}

.modern-upload-container:hover .dot:nth-child(2) {
    background: #10b981;
    animation: dotPulse 1.5s infinite 0.2s;
}

.modern-upload-container:hover .dot:nth-child(3) {
    background: #f59e0b;
    animation: dotPulse 1.5s infinite 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.upload-progress {
    text-align: center;
    margin-top: 0.5rem;
}

.progress-bar {
    background: #e5e7eb;
    border-radius: 6px;
    height: 6px; /* Thinner progress bar */
    overflow: hidden;
    margin-bottom: 0.25rem;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    color: #6b7280;
    font-size: 0.8rem; /* Smaller progress text */
    font-weight: 500;
}

.upload-preview {
    text-align: center;
    position: relative;
    margin-top: 1rem;
    max-height: 120px; /* Limit height */
}

.preview-image {
    max-width: 100%;
    max-height: 100px; /* Smaller preview */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover; /* Maintain aspect ratio */
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    max-height: 60px; /* Compact file info */
}

.file-icon {
    font-size: 1.5rem; /* Smaller icon */
}

.file-details {
    flex: 1;
    text-align: left;
}

.file-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.875rem; /* Smaller text */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    color: #6b7280;
    font-size: 0.75rem; /* Smaller text */
}

.file-status {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 500;
}

.remove-file {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px; /* Smaller button */
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: all 0.3s ease;
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    z-index: 10;
}

    .remove-file:hover {
        background: #dc2626;
        transform: scale(1.1);
    }

/* Drag over state */
.modern-upload-container.drag-over {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    transform: scale(1.02);
}

    .modern-upload-container.drag-over .upload-icon-wrapper {
        background: linear-gradient(135deg, #10b981, #059669);
        animation: bounce 0.6s infinite alternate;
    }

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

/* Success state */
.modern-upload-container.upload-success {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 1rem; /* Reduced padding when showing preview */
}

/* Disabled state */
.modern-upload-container.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

    .modern-upload-container.disabled .upload-drop-zone {
        cursor: not-allowed;
    }

/*  ------------------------------ */
/* RCS Messaging Studio Styles */
.message-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 7px;
    max-width: 100% !important;
/*    height: 100% !important;*/
height:auto !important;
}

    .message-card.horizontal {
        display: flex;
        gap: 0.75rem;
    }

.message-image {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

    .message-image.horizontal {
        width: 4rem;
        height: 4rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .message-image.small {
        height: 5rem;
    }

    .message-image.medium {
        height: 8rem;
    }

    .message-image.large {
        height: 12rem;
    }

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.message-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.message-title {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
}

.message-content {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.message-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-actions-row {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.2s ease;
}

    .action-btn.primary {
        background: #2563eb;
        color: white;
        border-color: #2563eb;
    }

    .action-btn:hover {
        background: #f9fafb;
        transform: scale(1.02);
    }

    .action-btn.primary:hover {
        background: #1d4ed8;
    }

.carousel-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.carousel-card {
    min-width: 180px;
    flex-shrink: 0;
}

.phone-frame {
    width: 16rem;
    height: 30rem;
    background: black;
    border-radius: 2.5rem;
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

.status-bar {
    height: 1.5rem;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.preview-header {
    padding: 6px !important;
    border-bottom: 1px solid #f3f4f6;
}

.preview-content {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
}

/* Make the element scrollable */
.preview-content {
    max-height: 90% !important; /* or whatever fits */
    padding-right: 0px !important;
    margin-right: 0px !important;
    overflow: auto; /* enables scrollbars when needed */
    scrollbar-gutter: stable; /* optional, helps prevent layout shift */
}

    /* ----- WebKit (Chrome, Edge, Safari, Opera) ----- */

    /* Vertical scrollbar only */
    .preview-content::-webkit-scrollbar:vertical {
        width: 5px; /* controls vertical bar thickness */
    }

    /* Keep horizontal default (optional) */
    .preview-content::-webkit-scrollbar:horizontal {
        height: auto; /* or set a value if you want */
    }

    /* Track (the background groove) */
    .preview-content::-webkit-scrollbar-track:vertical {
        background: #2a497e !important;
        border-left: 1px solid #e6e6e6;
    }

    /* Thumb (the draggable “thumbnail”) */
    .preview-content::-webkit-scrollbar-thumb:vertical {
        background: linear-gradient(#c9d6ff, #e2e2e2);
        border: 2px solid #2a497e !; /* creates a gap effect */
        border-radius: 8px;
    }

        .preview-content::-webkit-scrollbar-thumb:vertical:hover {
            background: linear-gradient(#b3c4ff, #d7d7d7);
        }

        .preview-content::-webkit-scrollbar-thumb:vertical:active {
            background: #9fb2ff;
        }

    /* Optional: corner where both bars meet (when both appear) */
    .preview-content::-webkit-scrollbar-corner {
        background: #2a497e !important;
    }

/* ----- Firefox fallback (cannot target only vertical) ----- */
@supports (scrollbar-width: thin) {
    .preview-content {
        scrollbar-width: thin; /* thin | auto | none */
        scrollbar-color: #b3c4ff #f1f1f1; /* thumb track */
    }
}

.template-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

    .template-card:hover {
        background: #f9fafb;
        transform: translateY(-1px);
    }

.action-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

    .action-item select,
    .action-item input {
        flex: 1;
        padding: 0.25rem 0.5rem;
        border: 1px solid #d1d5db;
        border-radius: 0.25rem;
        font-size: 0.875rem;
    }

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.25rem;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

    .remove-btn:hover {
        background: #dc2626;
    }

.unsaved-indicator {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.validation-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.sms-preview {
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: #374151;
    margin-top: 1rem;
    display: none;
}

.tab-button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

    .tab-button.active {
        background: #2563eb;
        color: white;
        border-color: #2563eb;
    }

    .tab-button:first-child {
        border-top-left-radius: 0.5rem;
        border-bottom-left-radius: 0.5rem;
    }

    .tab-button:last-child {
        border-top-right-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
    }

    .tab-button:not(:first-child) {
        border-left: none;
    }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RCS Studio Container */
#rcs-studio-container {
    display: flex;
    height: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    color: #111827;
    margin-bottom: 13px !important;
}

.editor-panel {
    width: 65%;
    background: white;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    padding: 6px;
    padding-bottom: 80px !important;
    padding-top: 0px !important;
    height: calc(100vh-80px);
    position: relative !important;
}

.preview-panel {
    width: 35%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
    padding: 15px;
}

@media (min-width: 768px) {
    /*    .full-height-page section.content {
        border-radius: 0px !important;

    }*/

    .full-height-page section.content {
        height: 100vh !important;
    }
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 100%px;
    object-fit: contain
}

    .image-preview img {
        width: 100%;
        max-height: 300px;
        object-fit: contain;
    }

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: sticky !important;
    top: 0px !important;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px !important;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-info-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.header-text h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.header-text p {
    font-size: 14px;
    color: #6b7280;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 15px;
}

.unsaved-indicator {
    font-size: 12px;
    color: #f59e0b;
    margin-right: 8px;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

    .btn:hover {
        background: #f9fafb;
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }



.btn-primary:hover {
    background: #2563eb;
}

/* Tab Buttons */
.tab-button {
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100% !important;
}

    .tab-button:first-child {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .tab-button:last-child {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .tab-button:not(:first-child) {
        border-left: none;
    }

    .tab-button:hover {
        background: #f3f4f6;
        color: #374151;
    }

    .tab-button.active {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
        position: relative;
        z-index: 1;
    }

        .tab-button.active + .tab-button {
            border-left-color: #3b82f6;
        }



    .tab-content.hidden {
        display: none;
    }

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.input, .textarea, .select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.textarea {
    resize: vertical;
    min-height: 80px;
    height: 200px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.image-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

    .image-upload:hover {
        border-color: #3b82f6;
    }

.actions-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.action-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

    .action-item input, .action-item select {
        flex: 1;
        padding: 6px 8px;
        font-size: 12px;
    }

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 12px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.info-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

    .info-card.purple {
        background: #faf5ff;
        border-color: #d8b4fe;
    }

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.info-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

    .info-icon.blue {
        background: #3b82f6;
    }

    .info-icon.purple {
        background: #8b5cf6;
    }

.validation-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    color: #dc2626;
    font-size: 14px;
}

.json-output {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
}

.phone-mockup {
    width: 80% !important;
    height: 96% !important;
    background: black;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-screen {
    width: 100%;
    max-height: 900px !important;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.status-bar {
    height: 24px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    display: none !important;
}

.preview-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.preview-content {
    padding: 0px;
    flex: 1;
    overflow-y: auto;
    height: 86% !important;
}


.message-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

    .message-image.horizontal {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .message-image.small {
        height: 80px;
    }

    .message-image.medium {
        height: 128px;
    }

    .message-image.large {
        height: 192px;
    }

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.message-icon {
    width: 24px;
    height: 24px;
    background: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.message-title {
    font-weight: 600;
    font-size: 14px;
}

.message-content {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 16px;
}

.message-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-actions-row {
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .action-btn.primary {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
    }

.template-card {
    transition: all 0.2s;
}

    .template-card:hover {
        background: #f9fafb !important;
        border-color: #d1d5db !important;
    }

.hidden {
    display: none !important;
}

/* Utility classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mt-6 {
    margin-top: 24px;
}

.mt-8 {
    margin-top: 32px;
}

.p-4 {
    padding: 16px;
}

.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.w-4 {
    width: 16px;
}

.w-6 {
    width: 24px;
}

.w-8 {
    width: 32px;
}

.w-full {
    width: 100%;
}

.h-4 {
    height: 16px;
}

.h-6 {
    height: 24px;
}

.h-8 {
    height: 32px;
}

.h-20 {
    height: 80px;
}

.h-32 {
    height: 128px;
}

.text-xs {
    font-size: 12px;
}

.text-sm {
    font-size: 14px;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-white {
    color: white;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-900 {
    color: #111827;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-blue-900 {
    color: #1e3a8a;
}

.text-indigo-700 {
    color: #4338ca;
}

.text-indigo-900 {
    color: #312e81;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: #dc2626;
}

.text-red-700 {
    color: #b91c1c;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-indigo-50 {
    background-color: #eef2ff;
}

.bg-indigo-500 {
    background-color: #6366f1;
}

.bg-indigo-600 {
    background-color: #4f46e5;
}

.bg-orange-500 {
    background-color: #f97316;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-red-600 {
    background-color: #dc2626;
}

.border {
    border-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-indigo-200 {
    border-color: #c7d2fe;
}

.rounded {
    border-radius: 4px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-full {
    border-radius: 50%;
}

.space-y-1 > * + * {
    margin-top: 4px;
}

.space-y-3 > * + * {
    margin-top: 12px;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

.object-cover {
    object-fit: cover;
}

.resize-none {
    resize: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-2 {
    top: 8px;
}

.right-2 {
    right: 8px;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.min-w-0 {
    min-width: 0;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.leading-relaxed {
    line-height: 1.625;
}

.cursor-pointer {
    cursor: pointer;
}

.hover:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover:bg-red-600:hover {
    background-color: #dc2626;
}

.hover:text-red-700:hover {
    color: #b91c1c;
}

/* Styles for Carousel Section */
.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.carousel-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: #8b5cf6; /* A purple color */
    border-radius: 50%;
    flex-shrink: 0;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.card-editor {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
}

    .card-editor label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 8px;
        display: block;
    }

    .card-editor input[type="text"],
    .card-editor textarea {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 14px;
    }

    .card-editor textarea {
        height: 80px;
        resize: vertical; /* Allow vertical resizing */
    }

    .card-editor button {
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
    }

    .card-editor #removeCurrentCard {
        background: none;
        border: none;
        color: #ef4444;
        font-size: 16px;
        padding: 0;
    }

.fa-plus-circle:before {
    content: "\f055";
    color: #fff !important;
}

/*add code in page of role ========================================================== start  */

/* ========================================
  Admin Interface - Global Styles
   ======================================== */

/* Main Content Container */
.content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.quick-filter-item > input {
    line-height: 2;
    width: 100% !important;
}

.quick-filter-item > select {
    padding: 20px !important;
}

.select2-choices .select2-input {
    padding: 9px !important;
}

/* ========================================
   Grid Container - Premium Layout
   ======================================== */
#GridDiv,
.s-DataGrid {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    border: none;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack children vertically */
    height: 100vh !important; /* Adjust height to fit screen, considering header/footer space */
    border-radius: 0px !important;
}

.quick-filter-label {
    display: block;
    font-size: 16px !important;
    font-weight: bold !important;
    margin-bottom: 5px !important;
    padding-bottom: 2px;
}


/* ========================================
   Grid Title - Premium Header
   ======================================== */

.grid-title {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    padding: 24px 32px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
}

.title-text {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Toolbar - Premium Controls
   ======================================== */
/*//====================================
     tamplate css 
================================//*/


.s-Toolbar > .clear {
    border: none !important;
}

/* ========================================
   Search Bar - Premium Input
   ======================================== */

.s-QuickSearchBar {
    position: relative;
    flex: 1;
    max-width: 43% !important;
}

.s-QuickSearchInput,
.s-Serenity-QuickSearchInput {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    color: #1f2937;
}

    .s-QuickSearchInput:focus,
    .s-Serenity-QuickSearchInput:focus {
        border-color: #8b5cf6;
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    }

    .s-QuickSearchInput::placeholder,
    .s-Serenity-QuickSearchInput::placeholder {
        color: #9ca3af;
    }

.quick-search-icon {
    left: 18px;
    font-size: 16px;
    color: #6b7280;
}

/* ========================================
   Tool Buttons - Premium Actions
   ======================================== */

.tool-group {
    /*    display: flex;
    gap: 10px;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    width: 67% !important;*/
}

.tool-button,
.icon-tool-button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: #223458 !important;
}

.add-button {
    background: #223458 !important;
    color: #ffffff;
    border-radius: 100px !important;
}

    .add-button:hover {
        /*        background: #059669;*/
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    }

.refresh-button,
.column-picker-button {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 12px;
    border-radius: 100px !important;
}

    .refresh-button:hover,
    .column-picker-button:hover {
        background: #f3f4f6;
        color: #374151;
        border-color: #9ca3af;
    }

.fa {
    font-size: 15px;
}

.text-green {
    color: #ffffff !important;
}

.text-blue {
    color: inherit !important;
}

/* ========================================
   Data Grid - Premium Table
   ======================================== */

.grid-container,
.slick-container {
    background: #ffffff;
    flex-grow: 1; /* Allow table to take remaining space */
    overflow: hidden; /* Hide scrollbar on container */
    display: flex;
    flex-direction: column;
}

.slick-viewport {
    overflow: auto !important; /* Enable scrolling for table content */
    flex-grow: 1; /* Allow viewport to grow */
}

/* ========================================
   Table Header - Clean & Focused
   ======================================== */

.slick-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0; /* Prevent shrinking */
}

.slick-header-column {
    padding: 18px 32px;
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: none;
    transition: all 0.2s ease;
}

    .slick-header-column:hover {
        color: #8b5cf6;
    }

.slick-header-column-sorted {
    color: #8b5cf6;
    position: relative;
}

    .slick-header-column-sorted::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 32px;
        right: 32px;
        height: 2px;
        background: #8b5cf6;
    }

.slick-sort-indicator {
    margin-left: 6px;
    font-weight: 700;
}

.slick-sort-indicator-asc::after {
    content: "↑";
    font-size: 12px;
}

.slick-sort-indicator-desc::after {
    content: "↓";
    font-size: 12px;
}

.slick-resizable-handle {
    background: #d1d5db;
    width: 1px;
    right: 0;
    top: 20%;
    height: 60%;
}

/* ========================================
   Table Rows - Premium Data Display & Vertical Centering
   ======================================== */

.grid-canvas {
    background: #ffffff;
    
}

.slick-row {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

    .slick-row.even {
        background: #ffffff;
    }

    .slick-row.odd {
        background: #fcfcfd;
    }

    .slick-row:hover {
        background: #f5f5f7;
    }

.slick-cell {
    padding: 18px 32px; /* Consistent padding */
    border-right: none;
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: center; /* Vertically center content */
    min-height: 0px; /* Ensure consistent row height */
}

    .slick-cell.l0.r0 {
        color: #6b7280;
        font-weight: 600;
        font-size: 14px;
    }

    .slick-cell.align-right {
        justify-content: flex-start !important;
    }

/* ========================================
   Edit Links - Simple & Clean
   ======================================== */

.s-EditLink {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

    .s-EditLink:hover {
        color: #7c3aed;
    }

/* ========================================
   Pagination - Highlighted & Attractive
   ======================================== */

.s-SlickPager,
.slick-pg {
    padding: 20px 32px;
    background: #fcfcfd;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0; /* Prevent shrinking */
}

.slick-pg-in {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.slick-pg-grp {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Page Size Selector */
.slick-pg-size {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

    .slick-pg-size:focus {
        border-color: #8b5cf6;
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    }

    .slick-pg-size:hover {
        border-color: #8b5cf6;
    }

/* Navigation Buttons */
.slick-pg-btn {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Added subtle shadow */
}

    .slick-pg-btn:hover {
        background: #8b5cf6;
        color: #ffffff;
        border-color: #8b5cf6;
        transform: translateY(-1px); /* Lift effect on hover */
        box-shadow: 0 4px 8px rgba(139, 92, 246, 0.2); /* Enhanced shadow on hover */
    }

    .slick-pg-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        background: #ffffff;
        color: #6b7280;
        border-color: #d1d5db;
        box-shadow: none; /* Remove shadow when disabled */
        transform: none;
    }

/* Page Control */
.slick-pg-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff; /* Added background for highlight */
    padding: 8px 12px; /* Added padding */
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #e5e7eb; /* Subtle border */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.slick-pg-pagetext {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.slick-pg-current {
    padding: 6px 10px;
    border: 1px solid #8b5cf6; /* Highlighted border */
    border-radius: 6px;
    text-align: center;
    width: 50px;
    font-size: 14px;
    font-weight: 600;
    background: #ffffff;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1); /* Subtle glow */
}

    .slick-pg-current:focus {
        border-color: #7c3aed;
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
        color: #8b5cf6;
    }

.slick-pg-pagesep {
    color: #9ca3af;
    font-weight: 400;
    margin: 0 4px;
}

.slick-pg-total {
    color: #374151;
    font-weight: 600;
}

/* Statistics */
.slick-pg-stat {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    #GridDiv {
        height: calc(100vh - 100px); /* Adjust height for smaller screens */
    }

    .grid-title,
    .grid-toolbar,
    .s-SlickPager {
        padding: 20px 24px;
    }

    .slick-header-column,
    .slick-cell {
        padding: 16px 24px;
    }

    .slick-cell {
        min-height: 60px;
    }
}

@media (max-width: 768px) {
    #GridDiv {
        height: auto; /* Allow height to be auto on very small screens */
    }

    .grid-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .s-QuickSearchBar {
        max-width: none;
    }

    .tool-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .slick-pg-in {
        flex-direction: column;
        gap: 16px;
    }

    .slick-pg-grp {
        justify-content: center;
        flex-wrap: wrap;
    }

    .slick-header-column,
    .slick-cell {
        padding: 14px 20px;
    }

    .slick-cell {
        min-height: 56px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .grid-title,
    .grid-toolbar,
    .s-SlickPager {
        padding: 16px 20px;
    }

    .title-text {
        font-size: 18px;
    }

    .slick-header-column,
    .slick-cell {
        padding: 12px 16px;
        font-size: 13px;
    }

    .slick-cell {
        min-height: 52px;
    }

    .tool-button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .s-QuickSearchInput {
        padding: 10px 14px 10px 40px;
        font-size: 13px;
    }

    .slick-pg-btn {
        width: 32px;
        height: 32px;
    }

    .slick-pg-current {
        width: 45px;
        padding: 5px 8px;
    }
}

/* ========================================
   Focus States for Accessibility
   ======================================== */

.tool-button:focus,
.s-EditLink:focus,
.slick-pg-btn:focus,
.s-QuickSearchInput:focus,
.slick-pg-size:focus,
.slick-pg-current:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .grid-toolbar,
    .s-SlickPager {
        display: none !important;
    }

    #GridDiv {
        box-shadow: none;
        border: 1px solid #000;
    }

    .grid-title {
        background: #f5f5f5 !important;
        color: #000 !important;
    }

    .slick-row:hover {
        background: transparent !important;
        transform: none !important;
    }
}

/* end code of page style css ========================================================== end */

/*    //change in the page of roles remove heading */
.grid-title {
    color: black;
    /*    display: none !important;*/
}

.panel-titlebar {
    color: black;
    display: none !important;
}

.sleekgrid_764468 {
    --slick-cell-height: 36px;
    padding: 10px !important;
}

.slick-header-columns {
    border-bottom: 2px solid #dee2e6;
    background: #223458 !important;
    color: #fff !important;
}


/*.sleekgrid_479415 .slick-header-column {
    left: 1000px;
    background: #223458 !important;
    color: #fff !important;
}*/
.slick-header-column {
    padding: 18px 32px;
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: none;
    transition: all 0.2s ease;
    background: #223458 !important;
    color: #fff !important;
}


.slick-header-columns {
    border-bottom: 2px solid #dee2e6;
    background: #223458 !important;
    color: #fff !important;
    height: 40px !important;
    display: flex !important;
    justify-content: start !important;
    align-items: center !important;
}
.s-VishwNetMediaManager-RCS-CampaignGrid.slick-header-columns {
    display: none !important;
}

    .sleekgrid_694077 .l6 {
        right: 0px;
        border-radius: 5px !important;
        background: #223458 !important;
    }

    .run-campaign-btn {
        border: 0px !important;
        border-radius: 5px !important;
        background: #2A497E !important;
        color: #fff !important;
        padding: 2px 12px !important;
    }

    .run-campaign-btn .fa {
        color: #fff !important;
    }


.slick-resizable-handle {
    display: none;
}

.slick-sort-indicator {
    display: none;
}

.slick-header-column {
    /*        width: auto !important;*/
    /*    min-width: 120px !important;*/
    /*    max-width: 250px !important;*/
    /*    border-right: 1px solid white !important;*/
}

.slick-viewport .grid-canvas .slick-row .slick-cell {
    /*    width: auto !important;*/
    /*    min-width: 120px !important;
    border: 1px solid rgba(0, 0, 0, .2);*/
    /*    max-width: 250px !important;*/
    /*    background: red !important;*/
}



    .email-template-dialog {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .email-template-container {
        display: flex;
        height: 100vh;
        background: #f8f9fa;
    }
    /* Left Sidebar */
    .email-sidebar {
        width: 280px;
        background: white;
        border-right: 1px solid #e9ecef;
        display: flex;
        flex-direction: column;
    }
    /* Elements Panel */
    .elements-section,
    .ai-section,
    .color-section,
    .backgrounds-section,
    .media-section {
        margin-bottom: 24px;
    }

        .elements-section h4,
        .ai-section h4,
        .color-section h4,
        .backgrounds-section h4,
        .media-section h4 {
            margin: 0 0 12px 0;
            font-size: 14px;
            font-weight: 600;
            color: #495057;
        }

    .element-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .element-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px;
        border: 1px solid #dee2e6;
        background: white;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s;
    }

        .element-btn:hover {
            border-color: #0d6efd;
            background: #f8f9ff;
        }

        .element-btn i {
            width: 16px;
            color: #6c757d;
        }
    /* AI Assistant */
    .ai-toggle-btn {
        width: 100%;
        padding: 12px;
        border: 1px solid #e7d4ff;
        background: linear-gradient(135deg, #f3e8ff, #e0e7ff);
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        color: #7c3aed;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ai-panel {
        margin-top: 12px;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 6px;
    }

    .ai-prompt {
        width: 100%;
        padding: 8px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .ai-generate-btn {
        width: 100%;
        padding: 8px;
        background: linear-gradient(135deg, #7c3aed, #3b82f6);
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
    }
    /* Color Section */
    .color-toggle-btn {
        width: 100%;
        padding: 12px;
        border: 1px solid #dee2e6;
        background: white;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .color-panel {
        margin-top: 12px;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 6px;
    }

    .color-picker {
        width: 100%;
        height: 32px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .apply-color-btn {
        width: 100%;
        padding: 8px;
        background: #0d6efd;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .color-palettes {
        margin-top: 12px;
    }

    .palette {
        margin-bottom: 12px;
    }

    .palette-name {
        display: block;
        font-size: 12px;
        font-weight: 500;
        margin-bottom: 4px;
        color: #495057;
    }

    .palette-colors {
        display: flex;
        gap: 4px;
    }

    .color-swatch {
        width: 24px;
        height: 24px;
        border: 2px solid white;
        border-radius: 4px;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s;
    }

        .color-swatch:hover {
            transform: scale(1.1);
        }
    /* Background Templates */
    .bg-btn {
        width: 100%;
        padding: 12px;
        border: 1px solid #dee2e6;
        background: white;
        border-radius: 6px;
        cursor: pointer;
        margin-bottom: 8px;
        text-align: left;
        transition: all 0.2s;
    }

        .bg-btn:hover {
            border-color: #0d6efd;
        }

        .bg-btn.active {
            border-color: #0d6efd;
            background: #f8f9ff;
        }

        .bg-btn img {
            width: 100%;
            height: 60px;
            object-fit: cover;
            border-radius: 4px;
            margin-bottom: 8px;
        }

        .bg-btn span {
            display: block;
            font-weight: 500;
            margin-bottom: 4px;
        }

    .bg-btn small {
        color: #6c757d;
        font-size: 12px;
    }

/*email section  css start*/
.canvas-container {
    width: 100%;
}

    .email-template-container {
        display: flex;
        height: 100vh;
        background-color: #f5f5f5;
    }

.email-sidebar {
    width: 250px;
    background-color: #f0f0f0;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

    .email-sidebar .element-buttons {
        max-height: 500px; /* Set a max height for the scrollable area */
        overflow-y: auto; /* Enable vertical scrolling within this container */
        padding-right: 10px; /* To avoid overlap with the scrollbar */
    }

.email-main {
    flex-grow: 1;
    padding: 0px 10px;
    background-color: #ffffff;
    box-sizing: border-box;
}

    .email-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .email-canvas {
        border: 2px dashed #cccccc;
        padding: 20px;
        min-height: 400px;
        position: relative;
        display: flex;
        justify-content: space-between;
    }

    .email-properties {
        width: 300px;
        background-color: #fff;
        border-left: 1px solid #ddd;
        padding: 5px 10px;
        //position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .tab-btn {
        display: block;
        margin-bottom: 10px;
        padding: 10px;
        background-color: #e0e0e0;
        cursor: pointer;
    }

        .tab-btn.active {
            background-color: #007bff;
            color: white;
        }

    .element-btn {
        display: block;
        margin: 10px 0;
        padding: 8px;
        background-color: #d4f0ff;
        cursor: pointer;
    }

        .element-btn:hover {
            background-color: #b6e0fd;
        }

    .email-element {
        margin: 10px;
        padding: 20px;
        border: 1px dashed #007bff;
        cursor: pointer;
        text-align: center;
    }

        .email-element.selected {
            border: 2px solid #007bff;
            background-color: #f0f8ff;
        }

    .email-canvas .empty-canvas {
        text-align: center;
        font-size: 16px;
        color: #bbb;
    }



    .email-sidebar .element-buttons::-webkit-scrollbar {
        width: 2px; /* Set the width of the scrollbar */
    }

    .email-sidebar .element-buttons::-webkit-scrollbar-thumb {
        background-color: #888; /* Set the color of the scrollbar thumb */
        border-radius: 10px; /* Round the corners of the thumb */
    }

    .email-sidebar .element-buttons::-webkit-scrollbar-track {
        background: #f0f0f0; /* Set the color of the scrollbar track */
    }


.s-Panel {
    margin: 0px !important;
    padding: 0px !important;
}

section.content-header {
    border-radius: 10px !important;
    background: #223458 !important;
}
/*//slick table footer design menuitem css ====================================== start - bottom part ----------------------*/

/* Pagination Container */
.s-Serenity-SlickPager.s-SlickPager.slick-pg {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 10px 16px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    font-family: "Segoe UI", sans-serif !important;
    font-size: 14px !important;
    width: 100% !important;
}

/* Inner Wrapper */
.slick-pg-in {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Pager Buttons */
.slick-pg-btn {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    border: none !important;
    background: #2A497E !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(42, 73, 126, 0.3) !important;
}

        .slick-pg-btn:hover {
            background: #1f3560 !important;
        }
    /* Current Page Input */
    .slick-pg-current {
        width: 50px !important;
        text-align: center !important;
        border: 1px solid #ddd !important;
        border-radius: 6px !important;
        padding: 4px !important;
        font-size: 14px !important;
        outline: none !important;
        transition: border 0.2s ease !important;
    }

        .slick-pg-current:focus {
            border-color: #2A497E !important;
            box-shadow: 0 0 4px rgba(42, 73, 126, 0.4) !important;
        }
    /* Page / Total Text */
    .slick-pg-control span,
    .slick-pg-stat {
        color: #2A497E !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }
    /* Reload Button */
    .slick-pg-reload {
        background: transparent !important;
        border: 1px solid #2A497E !important;
        border-radius: 6px !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #2A497E !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

        .slick-pg-reload:hover {
            background: #2A497E !important;
            color: #fff !important;
        }
    /* Page Size Dropdown */
    .slick-pg-size {
        padding: 4px 6px !important;
        border-radius: 6px !important;
        border: 1px solid #ddd !important;
        background: #fff !important;
        color: #2A497E !important;
        font-size: 14px !important;
        outline: none !important;
        transition: border 0.2s ease !important;
        cursor: pointer !important;
    }

        .slick-pg-size:focus {
            border-color: #2A497E !important;
        }
    /* Main table edit css or ui -==================================================== main table content  */
    /* Main Table Container */
    .slick-container {
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        font-family: "Segoe UI", sans-serif !important;
        font-size: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }
    /* Header Styling */
    .slick-header {
        background: #2A497E !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        /*border-bottom: 2px solid #1e355c !important;*/
    }

    .slick-header-column {
        padding: 8px 10px !important;
        border-right: 1px solid #1e355c !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

        .slick-header-column:last-child {
            border-right: none !important;
        }
    /* Sort Indicator */
    .slick-sort-indicator {
        margin-left: 6px !important;
        font-size: 10px !important;
    }
    /* Table Rows */
    .slick-row {
        display: flex !important;
        align-items: center !important;
        transition: background 0.2s ease !important;
        min-height: 36px !important;
    }
        /* Alternate Row Colors */
        .slick-row.even {
            background: #f9fafb !important;
        }

        .slick-row.odd {
            background: #ffffff !important;
        }
        /* Row Hover Effect */
        .slick-row:hover {
            background: #e6ecf7 !important;
        }
    /* Inactive Rows */
    .inactive-campaign {
        opacity: 0.6 !important;
        background: #f3f4f6 !important;
    }
    /* Cells */
    .slick-cell {
        padding: 8px 10px !important;
        border-right: 1px solid #e5e7eb !important;
        display: flex !important;
        align-items: center !important;
    }

        .slick-cell:last-child {
            border-right: none !important;
        }
    /* Links inside cells */
    .s-EditLink {
        color: #2A497E !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

        .s-EditLink:hover {
            text-decoration: underline !important;
        }
    /* Status Badges */
    .badge {
        padding: 3px 8px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        text-transform: capitalize !important;
        color: white !important;
    }

    .badge-success {
        background: #10b981 !important;
    }

    .badge-warning {
        background: #f59e0b !important;
    }

    .badge-danger {
        background: #ef4444 !important;
    }
    /* Run Campaign Button */
    .run-campaign-btn {
        background: #2A497E !important;
        border: 1px solid #2A497E !important;
        color: #2A497E !important;
        border-radius: 6px !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

        .run-campaign-btn:hover {
            background: #2A497E !important;
            color: #fff !important;
        }
        /* Disabled Button */
        .run-campaign-btn:disabled {
            border-color: #d1d5db !important;
            color: #d1d5db !important;
            cursor: not-allowed !important;
        }
    /* Scrollbar Styling */
    .slick-viewport::-webkit-scrollbar {
        height: 8px !important;
        width: 8px !important;
    }

    .slick-viewport::-webkit-scrollbar-thumb {
        background: #cbd5e1 !important;
        border-radius: 4px !important;
    }

        .slick-viewport::-webkit-scrollbar-thumb:hover {
            background: #94a3b8 !important;
        }
    /*    //form changes ui*/
    /* ✅ Apply styles only to this form */
    #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid {
        font-family: 'Segoe UI', Roboto, sans-serif;
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        max-width: 100%;
    }
        /* ✅ Category headings */
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid .category-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin: 20px 0 10px;
            padding-bottom: 6px;
            border-bottom: 1px solid #ddd;
        }
        /* ✅ Form fields container */
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid .field {
            margin-bottom: 15px;
            padding: 5px;
            box-sizing: border-box;
        }
        /* ✅ Labels */
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid label.caption {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #444;
            margin-bottom: 4px;
        }
        /* ✅ Required field asterisk */
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid sup[title="this field is required"] {
            color: red;
            margin-right: 4px;
        }
        /* ✅ Inputs & textboxes */
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid input[type="text"],
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid input[type="number"],
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid .editor {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #ccc;
            border-radius: 6px;
            background: #fafafa;
            font-size: 14px;
            transition: 0.2s;
            box-sizing: border-box;
        }
            /* ✅ Focus effect */
            #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid input:focus,
            #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid .editor:focus {
                border-color: #007bff;
                outline: none;
                background: #fff;
            }
        /* ✅ Error message style */
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid label.error {
            color: #e63946;
            font-size: 12px;
            margin-top: 3px;
            display: block;
        }
        /* ✅ File upload section */
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid .s-ImageUploadEditor {
            border: 1px dashed #ccc;
            padding: 10px;
            border-radius: 6px;
            text-align: center;
            background: #f9f9f9;
        }
        /* ✅ Upload button */
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid .add-file-button {
            background: #007bff;
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            display: inline-block;
        }

            #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid .add-file-button:hover {
                background: #0056b3;
            }
    /* ✅ Responsive design */
    @media (max-width: 768px) {
        #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid .field {
            width: 100% !important;
        }

    #VishwNetMediaManager_Administration_TenantDialog4_PropertyGrid {
        padding: 15px;
    }
}

.s-CampaignDialog {
    max-width: 100% !important;
    min-height: 600px;
}

/* //modal css making */
/* HARD OVERRIDE for Campaign Contacts Modal */
#VishwNetMediaManager_Contacts_ContactsImportDialog23 .modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    background: #fff !important;
    width: 100% !important;
}

/* Header */
#VishwNetMediaManager_Contacts_ContactsImportDialog23 .modal-header {
    background: #223458 !important;
    color: #fff !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 14px 20px !important;
    border-bottom: none !important;
}

/* Body */
#VishwNetMediaManager_Contacts_ContactsImportDialog23 .modal-body {
    padding: 25px !important;
    background: #f9fafb !important;
}

/* FULL WIDTH upload box */
#VishwNetMediaManager_Contacts_ContactsImportDialog23 .contactFileUpload {
    display: block !important;
    width: 100% !important;
    background: #fff !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 25px !important;
    text-align: center !important;
    transition: border-color 0.3s ease !important;
    cursor: pointer !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

    #VishwNetMediaManager_Contacts_ContactsImportDialog23 .contactFileUpload:hover {
        border-color: #223458 !important;
        background: #f0f4ff !important;
    }

/* Select Button */
#VishwNetMediaManager_Contacts_ContactsImportDialog23 .fileinput-button .button-inner {
    background: #223458 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

#VishwNetMediaManager_Contacts_ContactsImportDialog23 .fileinput-button:hover .button-inner {
    background: #16263a !important;
    color: #fff !important;
}

/* Delete Button */
#VishwNetMediaManager_Contacts_ContactsImportDialog23 .delete-button {
    background: red !important;
    margin-left: 10px !important;
    border-radius: 8px !important;
    padding: 21px 16px !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    color: #fff !important;
}

#VishwNetMediaManager_Contacts_ContactsImportDialog23 .delete-button:hover {
    background: #f87171 !important;
    color: #fff !important;
}

/* File Items full width + auto height */
#VishwNetMediaManager_Contacts_ContactsImportDialog23 ul.file-items {
    width: 100% !important;
    height: auto !important;
    margin-top: 10px !important;
    list-style: none !important;
    padding: 0 !important;
}

/* Footer buttons */
#VishwNetMediaManager_Contacts_ContactsImportDialog23 .modal-footer {
    border-top: none !important;
    padding: 15px 20px !important;
    background: #f9fafb !important;
    border-radius: 0 0 12px 12px !important;
}

#VishwNetMediaManager_Contacts_ContactsImportDialog23 .modal-footer .btn {
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.modal-footer .btn {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
}

.modal-footer .btn:hover {
    background: #223458 !important;
    color: #fff !important;
}

.s-ImageUploadEditor.hide-original-name ul {
    min-height: auto !important;
}

 .s-Serenity-Toolbar{
    background-color: none !important;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 5px;
    border: 0px !important;
    box-shadow: 0px !important;
    margin: 0px !important;
    margin-bottom: 10px !important;
    margin-top: 10px !important;
}

.s-Serenity-Toolbar .delete-button:not(.icon-tool-button) .button-inner:before {
    content: "\f2ed";
    color: #ffffff !important;
    font-size: 35px !important;
}

.s-ImageUploadEditor, .s-MultipleImageUploadEditor {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    width: 100% !important;
}

#VishwNetMediaManager_Contacts_ContactsImportDialog23_FileName .file-items .file-item {
    border: 1px solid var(--s-card-border);
    padding: 2px;
    width: 132px;
    margin-left: 20px !important;
    border-radius: 10px !important;
}

.s-VishwNetMediaManager-Contacts-ContactsImportDialog {
    background: rgba(0, 0, 0, 0.8) !important;
}


/*create campaign menuit*/

.campaigns-header-ui {
    background-color: #223458 !important;
    padding: 20px 30px !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

    .campaigns-header-ui .header-title-ui {
        font-size: 24px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        color: #ffffff !important;
    }

    .campaigns-header-ui .header-subtitle-ui {
        font-size: 14px !important;
        margin-top: 4px !important;
        color: #cfd8e3 !important;
    }

    .campaigns-header-ui .create-campaign-btn-ui {
        background-color: #ffffff !important;
        color: #223458 !important;
        font-weight: 600 !important;
        border: none !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    }

        .campaigns-header-ui .create-campaign-btn-ui:hover {
            background-color: #f0f4fa !important;
            transform: translateY(-1px) !important;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .campaigns-header-ui {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px !important;
    }

    .campaigns-header-ui .create-campaign-btn-ui {
        margin-top: 15px !important;
        width: 100% !important;
        text-align: center !important;
    }
}


/*table ui start of campaign*/

/* 1. Full width row container */
.slick-cell.campaign-card-column-ui {
    padding: 0 !important;
    margin: 0 !important;
}
/* Card container */
.campaign-card-ui {
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-left: 5px solid #223458 !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease !important;
/*    margin: 15px 0 !important;*/
}

    /* Hover effect */
    .campaign-card-ui:hover {
        box-shadow: 0 8px 24px rgba(34, 52, 88, 0.15) !important;
        transform: translateY(-3px) !important;
    }

/* Fix inactive rows */
.campaign-row.inactive-campaign {
    opacity: 1 !important;
    filter: none !important;
}

/* Main layout */
.campaign-card-main {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

/* Left section */
.campaign-card-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

/* Title */
.campaign-title-ui {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #000 !important;
}

/* Status row */
.campaign-status-row {
    display: flex !important;
    gap: 16px !important;
    font-size: 14px !important;
    color: #4a5568 !important;
}

/* Status badge */
.status-badge-ui {
    background-color: #e0ecff !important;
    color: #223458 !important;
    padding: 5px 12px !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* Right section */
.campaign-card-right {
    display: flex !important;
    align-items: flex-end !important;
    gap: 10px !important;
    font-size: 14px !important;
    color: #2d3748 !important;
    font-weight: 600 !important;
    text-align: right !important;
    flex-wrap: wrap !important;
}

.sent-ui, .metrics-ui, .ClickCounts-ui {
    font-weight: 700 !important;
    color: #1a202c !important;
    background: #e0ecff !important;
    padding: 5px 15px !important;
    border-radius: 50px !important;
}

/* Action buttons */
.campaign-card-actions-ui {
    margin-top: 12px !important;
    display: flex !important;
    gap: 12px !important;
}

.action-btn-ui {
    background-color: #223458 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    padding: 8px 12px !important;
}

    .action-btn-ui:hover {
        background-color: #1a2b47 !important;
        transform: scale(1.05) !important;
    }

    /* Progress container */
    .progress-container {
    width: 35% !important;
    font-family: Arial, sans-serif;
}

.Audience-Engagement {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

.progress-wrapper-campaign {
    position: relative;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    /*    background-color: #e0e0e0;*/
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}

.progress-wrapper-heading {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.progress-bar {
    background-color: #223458;
    width: 0%;
    height: 10px;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 12px;
    font-weight: 500;
    color: #000;
    background: #e0ecff !important;
    padding: 5px 12px !important;
    border-radius: 50px !important;
}

/* Responsive layout */
@media (max-width: 768px) {
    .campaign-card-main {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    .campaign-card-right {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .campaign-card-actions-ui {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .progress-container {
        width: 100% !important;
    }
}

/* Hide slick header */
.s-VishwNetMediaManager-RCS-CampaignGrid .slick-container .slick-header .slick-header-columns {
    display: none !important;
}




/*tday css changes in the ast month*/
/* Target only your modal */
#VishwNetMediaManager_Contacts_ContactsImportDialog20 .modal-content {
    border-radius: 12px !important;
    border: none !important;
    background: #fff !important;
    width: 100% !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
}

/* Header with theme color */
#VishwNetMediaManager_Contacts_ContactsImportDialog20 .modal-header {
    background: #223458 !important;
    color: #fff !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 14px 20px !important;
    border-bottom: none !important;
}

#VishwNetMediaManager_Contacts_ContactsImportDialog20 .modal-title {
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Body area */
#VishwNetMediaManager_Contacts_ContactsImportDialog20 .modal-body {
    padding: 20px !important;
    background: #f9fafb !important;
}

/* Upload area full width with dashed border */
#VishwNetMediaManager_Contacts_ContactsImportDialog20 .contactFileUpload {
    width: 100% !important;
    background: #fff !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 25px !important;
    text-align: center !important;
    transition: border-color 0.3s ease, background 0.3s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    position: relative !important;
}

    #VishwNetMediaManager_Contacts_ContactsImportDialog20 .contactFileUpload:hover {
        border-color: #223458 !important;
        background: #f0f4ff !important;
    }

/* Dashed scattered border look */
#VishwNetMediaManager_Contacts_ContactsImportDialog20 .contactFileUpload {
    background-image: linear-gradient(90deg, #cbd5e1 50%, transparent 50%), linear-gradient(90deg, #cbd5e1 50%, transparent 50%), linear-gradient(0deg, #cbd5e1 50%, transparent 50%), linear-gradient(0deg, #cbd5e1 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 12px 2px, 12px 2px, 2px 12px, 2px 12px;
    background-position: left top, left bottom, left top, right top;
}

/* Button styling */
#VishwNetMediaManager_Contacts_ContactsImportDialog20 .fileinput-button .button-inner {
    background: #223458 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

#VishwNetMediaManager_Contacts_ContactsImportDialog20 .fileinput-button:hover .button-inner {
    background: #16263a !important;
    color: #fff !important;
}

/* Delete button red */
#VishwNetMediaManager_Contacts_ContactsImportDialog20 .delete-button {
    background: red !important;
    color: #fff !important;
    margin-left: 10px !important;
    border-radius: 8px !important;
    padding: 22px 22px !important;
    transition: all 0.3s ease !important;
}

    #VishwNetMediaManager_Contacts_ContactsImportDialog20 .delete-button:hover {
        background: #f87171 !important;
    }

/* File items auto height */
#VishwNetMediaManager_Contacts_ContactsImportDialog20 ul.file-items {
    width: 100% !important;
    height: auto !important;
    margin-top: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin-left: 20px;
    border-radius: 10px !important;
}

/* Footer buttons */
#VishwNetMediaManager_Contacts_ContactsImportDialog20 .modal-footer {
    border-top: none !important;
    padding: 15px 20px !important;
    background: #f9fafb !important;
    border-radius: 0 0 12px 12px !important;
    text-align: right !important;
}

    #VishwNetMediaManager_Contacts_ContactsImportDialog20 .modal-footer .btn {
        padding: 8px 20px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        background: #223458 !important;
        color: #fff !important;
        border: none !important;
        transition: all 0.3s ease !important;
    }

        #VishwNetMediaManager_Contacts_ContactsImportDialog20 .modal-footer .btn:hover {
            background: #16263a !important;
        }


/* tenant table cell css override */
.s-VishwNetMediaManager-Administration-TenantGrid .slick-container .slick-viewport .grid-canvas .slick-row .slick-cell {
    /*    width: 200px !important;
    word-wrap: break-word !important;
    text-wrap: auto !important;
    min-height: 30px !important;*/
    width: 200px !important;
    word-wrap: break-word !important;
    text-wrap: auto !important;
    min-height: 50px !important;
    flex-wrap: wrap !important;
}

    .s-VishwNetMediaManager-Administration-TenantGrid .slick-container .slick-viewport .grid-canvas .slick-row .slick-cell .s-Administration-TenantLink {
        text-wrap: auto !important;
/*        width: 260px !important;*/
        word-wrap: break-word !important;
        text-wrap: auto !important;
        min-height: auto !important;
        flex-wrap: wrap !important;
    }
.timer-display {
    display: flow !important;
}

.s-DialogContent {
    height: calc(100vh - 80px); /* dialog height navbar ke niche */
}

.left-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .left-section .s-TabInfo {
        flex: 1;
        overflow-y: auto; /* form ke liye scroll */
    }

.preview-panel {
    background: #fff;
    border-left: 1px solid #ddd;
    padding: 10px;
    height: 100%;
    overflow-y: auto;
}


/* Rich Card Media Form Group - Button Below Input */
.richcard-media-form-group {
    margin-bottom: 20px;
}

.richcard-media-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}


.richcard-media-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.richcard-image-url-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

    .richcard-image-url-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }

    .richcard-image-url-input::placeholder {
        color: #9ca3af;
        font-size: 13px;
    }


.richcard-media-button-container {
    display: flex;
    justify-content: flex-end;
}


.richcard-media-server-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

    .richcard-media-server-btn:hover {
        background-color: #2563eb;
    }

    .richcard-media-server-btn:active {
        background-color: #1d4ed8;
    }

    .richcard-media-server-btn:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }


@media (max-width: 768px) {
    .richcard-media-button-container {
        justify-content: stretch;
    }

    .richcard-media-server-btn {
        width: 100%;
    }
}