﻿
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /*    background: #f7f8fb;*/
    background: #fff;
}

.buyNow {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    border: 1px solid #1A73E8;
    border-radius: 7px;
    background: #1A73E8;
    padding: 5px 7px;
}

    .buyNow:hover {
        color: #1A73E8;
        background: #fff;
    }


/* drop down form headetr excel, pbi,googlesheet*/
/*//Pakages model*/
/* Modal Container */
/* Overlay */
#planModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
}

    #planModal.show {
        display: flex; /* flex for centering */
    }

    #planModal.hidden {
        display: none;
    }

/* Inner modal box */
.plan-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}

/* Header */
.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .plan-header h2 {
        font-size: 22px;
        color: #1e2a38;
    }

    .plan-header .planclose-btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

/* Cards container */
.plans-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Card */
.plan-card {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

    .plan-card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

/* Title + Price */
.plan-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111827;
}

.plan-price {
    font-size: 20px;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 15px;
}

    .plan-price span {
        font-size: 14px;
        color: #6b7280;
    }

/* Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

    .plan-features li {
        margin: 10px 0;
        padding-left: 22px;
        position: relative;
        font-size: 14px;
        color: #374151;
    }

        .plan-features li::before {
            content: "✔";
            color: #2563eb;
            position: absolute;
            left: 0;
            top: 0;
        }

/* Renew text */
.renew-text {
    font-size: 12px;
    color: #6b7280;
    margin: 12px 0;
}

/* Button */
.choose-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

    .choose-btn:hover {
        background: #1d4ed8;
    }

/*====== Strupe model =========*/
/* Stripe Modal Overlay */
#stripeModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
}

    #stripeModal.show {
        display: flex;
    }

    #stripeModal.hidden {
        display: none;
    }

    /* Stripe Modal Box */
    #stripeModal .plan-content {
        background: #fff;
        border-radius: 10px;
        padding: 20px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        font-family: Arial, sans-serif;
    }

    /* Stripe Modal Header */
    #stripeModal .plan-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

        #stripeModal .plan-header h2 {
            font-size: 20px;
            color: #1e2a38;
        }

        #stripeModal .plan-header .planclose-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
        }

/* Payment Button */
#payBtn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

    #payBtn:disabled {
        background: #9ca3af;
        cursor: not-allowed;
    }

/*================================ Payment Option Modal ========================================================*/
#paymentModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    /*max-height:180px;*/
}

    #paymentModal.show {
        display: flex;
    }

    #paymentModal.hidden {
        display: none;
    }

    #paymentModal .plan-content {
        background: #fff;
        border-radius: 10px;
        padding: 20px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        font-family: Arial, sans-serif;
    }

    #paymentModal .plan-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

        #paymentModal .plan-header h2 {
            font-size: 20px;
            color: #1e2a38;
        }

        #paymentModal .plan-header .planclose-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
        }

/* Billing Type Radio Buttons */
.pay-options {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

    .pay-options label {
        font-size: 14px;
        color: #374151;
        cursor: pointer;
    }

    .pay-options input {
        margin-right: 6px;
    }

/* Stripe Option Button */
#stripeOption {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 15px;
    width: 100%;
    transition: background 0.2s ease;
}

    #stripeOption:hover {
        background: #1d4ed8;
    }

/* PayPal Option Container */
#paypalOption {
    width: 100%;
    margin-top: 10px;
}

    /* Override PayPal Smart Button */
    #paypalOption iframe {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 6px;
    }


/*========== Toast Style ==========*/
.toast-container {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 9999;
}


.toast {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: #ffff !important;
    color: #514d4d !important;
    border: 1px solid #ffff !important;
    border-radius: 8px;
    padding: 18px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-top: 10px;
    z-index: 999999 !important;
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

    .toast.success {
        border-left: 5px solid #28a745;
    }

    .toast.error {
        border-left: 5px solid #dc3545;
    }


    .toast i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #73c310; /* ✅ circle background */
        color: white; /* checkmark color */
        font-size: 22px;
        font-weight: bold;
    }

    .toast .toast-close {
        background: none;
        border: none;
        color: #666;
        font-size: 25px;
        cursor: pointer;
        position: absolute;
        top: 8px;
        right: 15px;
        line-height: 1;
    }

        .toast .toast-close:hover {
            color: #000;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}



/*==============*/

button {
    cursor: pointer;
}

header.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    /*    height: 64px;
    padding: 0 12px;
    border-bottom: 1px solid #e0e0e0;
    padding-right: 36px;*/

    height: 80px;
    padding: 0 12px;
    border-bottom: 1px solid #E0E0E0;
    padding-right: 11px;
    background: #F7F8FB;
}

/* Left side */
.header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 117px;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.3s;
}

    .logo-link:hover {
        background: #f5f5f5;
    }

.logo-desktop {
    height: 24px;
    /*    width: 83px;*/
    width: 116px;
    padding-right: 11px;
    /*border-right: 1px solid #E0E0E0;*/
}

.logo-mobile {
    height: 24px;
    width: auto;
    display: none;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    color: #1A73E8;
}

    .nav-item a {
        text-decoration: none;
        color: inherit;
    }

/*    .nav-item:hover {
        color: #222;
    }*/

/*    .nav-item.active {
        border-bottom: 2px solid #3498db;
        padding: 18px 16px 18px 6px;
        color: #222;
    }*/

.badge {
    min-width: 24px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    background: #e0e0e0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right side */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    /*gap: 41px;*/
}

.hedaer-right-nav-item {
    display: flex;
    gap: 10px;
}

.icon-text {
    display: flex;
    background-color: #EFEFEF;
    border: 1px solid #DADADA;
    font-size: 14px;
    padding: 8px 14px;
    color: #000;
    gap: 6px;
    align-items: center;
    border-radius: 7px;
    text-decoration: none;
    position: relative;
}

    .icon-text:hover {
        background-color: #FF651C;
        color: #FFF;
        border: 1px solid #DADADA;
        text-decoration: none;
    }



/*    -----------------*/

/* Dropdown container */
.drop-menu {
    display: none;
    position: absolute;
    top: 85%;
    left: 8px;
    background-color: white;
    border: 1px solid #ccc;
    min-width: 120px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

    /* Dropdown items */
    .drop-menu a {
        display: block;
        padding: 8px 12px;
        text-decoration: none;
        color: black;
    }

        .drop-menu a:hover {
            background-color: #f0f0f0;
        }

/* Show dropdown on hover */
.ico-dro:hover .drop-menu {
    display: block;
}

.ico-dro2:hover .drop-menu {
    left: 534px;
    display: block;
}

/*    ---------------*/


.avatar-wrapper {
    position: relative;
}

.avatar {
    height: 36px;
    width: 36px;
    border-radius: 6px;
    background: #ddd;
    cursor: pointer;
    object-fit: cover;
    object-position: center;
}

#dropdownMenu {
    display: none;
}

    #dropdownMenu.active {
        display: flex; /* or block/grid, whatever you use */
    }

/* Responsive (mobile) */
@media (max-width: 768px) {
    header.header {
        height: 56px;
        padding: 0 12px;
    }

    .logo-link {
        border-right: none;
        width: auto;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .nav {
        display: none;
    }

    .avatar {
        height: 32px;
        width: 32px;
        border-radius: 8px;
    }
}

/* --------------------- */

.dashboard-header {
    background: #EFEFEF;
    padding: 2rem 4.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Row Layout */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

/* Left Side */
.left-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 44px;
    min-width: 300px;
    max-width: 400px;
    background: #fafafa;
}

    .search-bar img {
        width: 20px;
        height: 20px;
        position: absolute;
        left: 12px;
    }

    .search-bar input {
        width: 100%;
        height: 100%;
        padding-left: 44px;
        border: none;
        outline: none;
        font-size: 14px;
        background: transparent;
        color: #222;
    }

/* Actions */
.actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    background: #EFEFEF;
    padding: 20px;
}

/* Primary Button */
.btn-primary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
    padding: 1rem;
    border-radius: 12px;
    background: #1a73e8;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    align-items: center;
    justify-content: center;
    height: 161px;
    text-align: center;
}

    .btn-primary:hover {
        background: #FF651C;
        border: 1px solid #DADADA;
    }

    .btn-primary img {
        /*width: 24px;
        height: 24px;*/
        width: 144px;
        height: 55px;
    }

/* Remove all link states */
.icon-text,
.icon-text:visited,
.icon-text:hover,
.icon-text:active,
.icon-text:focus {
    text-decoration: none !important;
    color: #000 !important;
}

/* Secondary Buttons */
.btn-secondary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    align-items: flex-start;
    position: relative;
}

    .btn-secondary:hover {
        /*        background: #1557b0;*/
        background: #FF651C;
        border: 1px solid #DADADA;
    }

    .btn-secondary img {
        width: 24px;
        height: 24px;
    }

        .btn-secondary img.hover {
            display: none;
        }

    .btn-secondary:hover img.default {
        display: inline;
    }

    /*    .btn-secondary:hover img.hover {
        display: inline;
    }*/

    .btn-secondary span {
        font-size: 16px;
        font-weight: 600;
    }

/* AI Button Special */
.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.new-badge {
    background: linear-gradient(90deg, #5b86e5, #36d1dc);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 0 6px;
    border-radius: 6px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right Side */
/* .right-side {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      } */

/* Sort Button */
.sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
    font-weight: 600;
}

    .sort-btn:hover {
        background: #f5f5f5;
    }

    .sort-btn img {
        width: 16px;
        height: 16px;
    }

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #eee;
    padding: 2px;
    border-radius: 8px;
    height: 36px;
    padding-top: 14px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f9f9f9;
    transition: background 0.3s;
}

    .view-btn img {
        width: 16px;
        height: 16px;
    }

    .view-btn:hover {
        background: #f0f0f0;
    }

    .view-btn.active {
        background: #ddd;
    }

/*    --------- datalist button active*/
/* ===== List View Layout ===== */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0 20px 30px;
    gap: 20px;
}

/* ========= GRID VIEW ========= */
.grid-view .template-card {
    width: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent; /* Add this line */
}

    .grid-view .template-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        border-color: #FF651C; /* Change border color on hover */
    }

.grid-view .card-thumb {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.grid-view .card-name {
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    color: #111827;
}

.grid-view .card-actions {
    margin-top: 8px;
}

.grid-view .card-menu {
    display: none;
}


/* ========= LIST VIEW ========= */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 30px;
    margin-right: 30px;
}

    .list-view .template-card {
        display: flex;
        align-items: center;
        /*justify-content: space-between;*/
        background: #fff;
        border-radius: 12px;
        /*        padding: 10px 16px;*/
        padding: 6px 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        transition: background 0.2s ease;
        flex-direction: row;
        gap: 0;
        border: 2px solid transparent; /* Add this line */
        width: 380px;
    }

        .list-view .template-card:hover {
            background: #f9fbff;
            border-color: #FF651C;
        }

    .list-view .card-left {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .list-view .template-card h3 {
        width: 100%;
    }

    .list-view .card-thumb {
        width: 20px;
        height: 10px;
        border-radius: 6px;
        object-fit: cover;
        background: #f3f4f6;
    }

    .list-view .card-name {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
    }

    .list-view .card-actions {
        display: none;
    }

    .list-view .card-menu {
        position: relative;
        display: inline;
    }

/* ===== Three dots and dropdown ===== */
.card-menu {
    display: none;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

/*.menu-btn img {
        width: 12px;
        height: 12px;
    }*/

.menu-dropdown {
    position: absolute;
    right: 0;
    top: 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    min-width: 120px;
    z-index: 100;
}

    .menu-dropdown.active {
        display: flex;
    }

    .menu-dropdown button {
        background: none;
        border: none;
        padding: 8px 12px;
        text-align: left;
        cursor: pointer;
        color: #374151;
        font-size: 14px;
    }

        .menu-dropdown button:hover {
            background: #f3f4f6;
        }

/* ----------------------- */

/* === Subscription Banner === */

.SubBanner {
    padding: 0px 34px;
    gap: 16px;
}

.subscription-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px;
    margin-bottom: 32px;
    background-color: #e9f0ff;
    border-radius: 12px;
}

/* Left section (icon + text) */
.banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-icon {
    width: 24px;
    height: 24px;
}

.subscription-banner p {
    font-size: 16px;
    font-weight: bold;
    color: #333; /* text color */
    margin: 0;
}

.subscription-banner .highlight {
    color: #0066ff; /* active text */
}

/* Button */
.banner-button {
    background-color: #0066ff; /* active */
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .banner-button:hover {
        /*background-color: #004fcc;*/ /* darker active */
        background-color: #FF651C;
        color: #fff;
        border: 1px solid #DADADA;
    }

#trialBanner {
    display: none;
}

#Template_SubcribeBanner {
    display: none;
}
/* === Mobile Styling === */
@media (max-width: 768px) {
    .subscription-banner {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        z-index: 25;
        margin-bottom: 0;
        gap: 8px;
    }

    .banner-icon {
        display: none; /* hide icon on mobile */
    }

    .subscription-banner p {
        font-size: 14px;
    }

    .banner-button {
        width: 100%;
        height: 36px;
    }
}


/* ----------------------- */
/* === Base Modal Overlay === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

    .modal.active {
        display: flex;
        opacity: 1;
    }

/* === Modal Content Box */
.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* === Header ===  */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.modal-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.back-icon {
    left: 24px;
}

.close-icon {
    right: 24px;
}

/* === Body ===  */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.template-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .template-card.selected {
        border: 2px solid #007BFF; /* blue border */
        border-radius: 8px; /* match your card style */
    }


    .template-card:hover {
        transform: translateY(-2px);
        border-color: #007bff;
        background: #fff;
    }

    .template-card img {
        width: 100%;
        border-radius: 8px;
    }

    .template-card p {
        font-size: 15px;
        font-weight: 500;
        color: #333;
    }

/* === Footer === */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}

.btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-gray {
    background: #f3f4f6;
    color: #333;
    border: 1px solid #ddd;
}

    .btn-gray:hover:not(:disabled) {
        background: #e5e7eb;
    }

.btn-blue {
    background: #007bff;
    color: #fff;
    border: none;
}

    .btn-blue:hover:not(:disabled) {
        background: #0056cc;
    }

/* === Mobile === */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        border-radius: 12px;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}


/* ---------------------- */

.cards-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-left: 30px;
    margin-bottom: 20px;
}



.template-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 200px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

    .template-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .template-card h3 {
        margin: 0 0 10px;
        font-size: 14px;
        color: #333;
        margin: 6px 0px;
        max-width: 170px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.card-actions {
    display: flex;
    justify-content: space-between;
}


    .card-actions button {
        flex: 1;
        margin: 2px;
        padding: 6px;
        font-size: 13px;
        cursor: pointer;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .card-actions .openBtn {
        background: #4CAF50;
        color: white;
    }

    .card-actions .dupBtn {
        background: #2196F3;
        color: white;
    }

    .card-actions .delBtn {
        background: #f44336;
        color: white;
    }


/* ------------------- */

.template-card img.card-thumb {
    width: 100%;
    height: 135px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.list-view img.card-thumb {
    width: 44%;
    height: 57px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* ---------------------------- */
.header-right {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
}

.avatar-wrapper {
    cursor: pointer;
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ccc;
}

/* Dropdown menu */
.dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    width: 180px;
    z-index: 1000;
}

    .dropdown a {
        display: flex;
        align-items: center;
        padding: 10px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        transition: background 0.2s;
    }

        .dropdown a:hover {
            background: #f0f0f0;
        }

        .dropdown a i {
            margin-right: 8px;
        }


/* ------------------------------ */


.right-side {
    display: flex;
    gap: 17px;
    align-items: center;
    margin-bottom: 20px;
}

.view-toggle .view-btn {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    padding: 6px 10px;
}

    .view-toggle .view-btn.active {
        background: #007bff;
        border-color: #007bff;
    }

/* Card container styles */
/*.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}*/

/* Grid view */
/*.cards-container.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}*/

/* List view */
/*.cards-container.list-view {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

    .cards-container.list-view .card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1047px;
    }

.card img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
*/
/* --------------------Sort block css------------ */
.sort-wrapper {
    position: relative;
    display: inline-block;
}

.sort-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    min-width: 150px;
    z-index: 100;
}

    .sort-menu li {
        padding: 8px 12px;
        cursor: pointer;
        list-style: none;
    }

        .sort-menu li:hover {
            background: #f0f0f0;
        }

.hidden {
    display: none;
}

/* ------------------ Profile Model Control ------------ */
/* ===== Modal Backdrop ===== */
.profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

/* ===== Modal Box ===== */
.profile-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    animation: profileFadeIn 0.3s ease-in-out;
}

@keyframes profileFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Modal Header ===== */
.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
}

    .profile-modal-header h2 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

.profile-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* ===== Modal Body ===== */
.profile-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

.profile-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .profile-fields label {
        font-weight: 600;
        font-size: 14px;
    }

    .profile-fields input {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 15px;
        width: 100%;
    }

        .profile-fields input[readonly] {
            background: #f5f5f5;
        }

/* ===== Modal Footer ===== */
.profile-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid #ddd;
}

.profile-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.profile-cancel {
    background: #e5e7eb;
}

.profile-save {
    background: #2563eb;
    color: white;
}

.profile-delete {
    background: #ef4444;
    color: white;
    margin-right: auto;
}

.profile-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

.profile-change-pic {
    font-size: 13px;
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
}

    .profile-change-pic:hover {
        color: #1d4ed8;
    }
/* ------------------ Index page responsive query --------------- */

/* ================= BREAKPOINTS ================= */

/* ?? Small Devices (mobile ? 640px) */
@media (max-width: 640px) {
    header.header {
        height: 56px;
        padding: 0 12px;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        height: 20px;
    }

    .nav {
        display: none;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .search-bar {
        width: 100%;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .subscription-banner {
        flex-direction: column;
        gap: 8px;
    }

    .modal-content {
        width: 95%;
    }

    .profile-modal-box {
        width: 95%;
    }
}

/* ?? Medium Devices (tablets ? 768px) */
@media (max-width: 768px) {
    header.header {
        padding: 0 16px;
    }

    .nav-item {
        font-size: 16px;
    }

    .dashboard-header {
        padding: 1.5rem;
    }

    .search-bar {
        min-width: 50px;
    }
    /*min-width: 200px; */
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* ?? Large Devices (laptops ? 1024px) */
@media (max-width: 1024px) {
    .dashboard-header {
        padding: 2rem;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .nav-item {
        font-size: 17px;
    }

    .modal-content {
        max-width: 800px;
    }
}

/* ??? Extra Large (desktop ? 1280px) */
@media (max-width: 1280px) {
    .dashboard-header {
        padding: 0rem 3rem;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* ????? Ultra Wide (xl ? 1536px) */
@media (min-width: 1536px) {
    .dashboard-header {
        padding: 0rem 6rem;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }

    .nav-item {
        font-size: 20px;
    }

    .modal-content {
        max-width: 1100px;
    }

    .profile-modal-box {
        max-width: 720px;
    }
}


/* ------------------------Template Page css-------------------- */

main {
    position: absolute;
    top: 153px; /* header */
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    box-sizing: border-box;
}




.sankey-col {
    flex: 3;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.canvas-wrap {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 0;
    height: 100%;
    z-index: 101;
}

svg {
    flex: 1;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    padding: 0px;
}

.table-section {
    flex: 2; /* takes 2 parts */
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 5px 5px 5px 5px rgb(242, 243, 246);
    min-height: 0;
}

.table-container {
    flex: 1; /* fills remaining space */
    overflow-y: auto;
    min-height: 269px;
    /* max-height: 269px; */
    /* max-height: calc(60vh - var(--controls-height) - 0px); */
    max-height: calc(var(--vh-percent, 60) * 1vh - var(--controls-height));
}



.controls {
    display: flex;
    gap: 8px;
    align-items: center;
    /* margin-top: 8px; */
    padding: 6px;
    position: fixed;
    bottom: 0;
    background-color: #fff;
    width: 100%;
}


/* ============= */
.DTextClass {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0;
    color: #6b7280;
    justify-content: center;
    height: 100%;
}


/* =========== */


#data-table tr.selected {
    background-color: #dbeafe;
}

#data-table {
    border-collapse: collapse;
    user-select: text;
}

    #data-table th,
    #data-table td {
        user-select: text;
        cursor: text;
    }

/* Main */
h1 {
    color: rgb(54,107,135);
    font-weight: 700;
    font-size: 32px;
    cursor: pointer;
    margin: 10px 0 12px;
}

#diagramTitle {
    text-align: center;
    margin-bottom: 5px;
    height: auto;
    font-size: 27px;
}
/* hidden state */
.hidden {
    display: none;
    height: 0;
}

.note {
    background-color: rgb(234, 234, 234);
    padding: 10px;
    margin-top: 0px;
    border-radius: 4px;
    color: #333;
}

    .note.box {
        margin-top: 5px;
        padding: 17px;
        box-shadow: 5px 5px 5px rgba(242,243,246,1);
        background-color: #25af6033;
        border: 1px solid #25af60;
    }

.BalanceNotebox {
    background-color: #fff;
    min-height: 325px;
    max-height: 325px;
}

.table-section h3 {
    margin: 6px 0;
    color: #2f5a6f;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    color: #6b7280;
}

th, td {
    border: 1px solid #ddd;
    padding: 16px;
    font-size: 12px;
    color: #6b7280;
}

th {
    background: #fff;
    ;
    text-align: left;
    color: #6b7280;
}

td[contenteditable] {
    min-width: 40px;
    color: #6b7280;
}

#add-row {
    /*margin-top: 10px;*/
    padding: 8px 10px;
    width: fit-content;
    font-size: 13px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 4px;
}





#data-table td.selected {
    background: #cce5ff; /* light blue */
}







/* Input box styling */
#row-count {
    width: 60px;
    text-align: center;
    font-size: 16px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

    /* Remove number input arrows (spinners) */
    /* Chrome, Safari, Edge, Opera */
    #row-count::-webkit-inner-spin-button,
    #row-count::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.incdec-btn {
    width: 20px;
    height: 20px;
    background: #E9F0FF;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--active-color, #007bff); /* replace with your active text color */
    cursor: pointer;
    user-select: none;
    border: none;
}

    /* Disabled state */
    .incdec-btn:disabled {
        opacity: 0.5;
        cursor: default;
    }




/* Firefox */
/* #row-count[type=number] {
  -moz-appearance: textfield;
} */


.data-note {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    min-height: 310px;
    max-height: 310px;
}
/* .controls { display:flex; gap:8px; align-items:center; margin-top:8px; padding: 6px; position: fixed; bottom: 0; background-color: #fff;} */

/* Hover dimming */
.dimmed {
    opacity: 0.5 !important;
    transition: opacity 0.18s ease;
}

.highlight {
    opacity: 1 !important;
    filter: saturate(1.2);
    transition: opacity 0.08s ease;
}

/* Tooltip */
.sankey-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
    z-index: 5;
}



/* ------Editor Position control-------- */
/* Default row layout */
main.layout-left {
    flex-direction: row-reverse;
}

main.layout-right {
    flex-direction: row;
}

main.layout-bottom {
    flex-direction: column;
    position: absolute;
}

/* Editor panel sizing */
.layout-left #editorPanel,
.layout-right #editorPanel {
    width: 40%;
    height: auto;
}

.layout-bottom #editorPanel {
    width: 100%;
    height: 40%; /* takes 40% of the vertical space */
}


/* Bottom layout: stack Sankey and editor vertically */
main.layout-bottom {
    flex-direction: column;
    align-items: stretch; /* make children span full width */
    height: 100%; /* let them share total height */
}

/* Sankey area on top */
.layout-bottom .sankey-col {
    flex: 1 1 60%; /* take 60% of height */
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    /* margin-bottom: 154px; */
}

/* Editor panel at bottom */
.layout-bottom #editorPanel {
    flex: 0 0 40%; /* take 40% of height */
    width: 100%;
    overflow-y: auto; /* scroll inside editor only */
    background: #f6f7f9;
    border-radius: 6px;
    margin-top: 0px;
    /* margin-top: 100px; */
    min-height: 400px;
}

/* Sankey SVG grows nicely */
.layout-bottom svg {
    flex: 1;
    width: 100%;
    height: 100%;
    max-height: none;
}


/* ------------ */

/* --------------------------- */
#nodeEditPopup {
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#addFlowMenu .flow-option:hover {
    background: #f2f2f2;
}

/* Notice bar and header UI (original preserved) */


.notice-bar {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E9F0FF;
    padding: 0 16px;
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    z-index: 1000;
}

    .notice-bar img {
        width: 16px;
        height: auto;
    }

    .notice-bar p {
        font-size: 14px;
        line-height: 1.4;
        font-weight: 600;
        color: #222;
        margin-bottom: 0;
    }

    .notice-bar span {
        color: #0056ff;
        cursor: pointer;
        transition: color 0.3s ease;
    }

        .notice-bar span:hover {
            color: #0040c9;
        }

.header2 {
    width: 100%;
    height: 56px;
    display: flex;
    border-bottom: 1px solid #ccc;
    background: #fff;
    overflow-x: auto;
    user-select: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 100;
    margin-bottom: 5px;
    overflow: hidden;
    padding-top: 2px;
}


.menu-item {
    display: flex;
    flex-direction: column;
    min-width: fit-content;
    border-right: 1px solid #ddd;
    cursor: pointer;
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 56px;
    padding: 0 16px;
    background: #fff;
    transition: background 0.3s;
}

    .menu-btn:hover {
        background: #eaf3ff;
    }

    /*.menu-btn img {
        width: 12px;
        height: 12px;
    }*/

    .menu-btn p {
        font-size: 16px;
        font-weight: 600;
        color: #222;
        white-space: nowrap;
    }

/* Dropdown / popup common (preserved) */
.popup {
    position: absolute;
    /* top: 28%; */
    top: 154px;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 10px;
    display: none;
    min-width: 350px;
    max-width: 380px;
    z-index: 9999;
    color: #1e2a38;
    font-size: 14px;
}

.Dpopup {
    position: absolute;
    /* top: 28%; */

    top: 154px;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 10px;
    display: none;
    min-width: 134px;
    max-width: 380px;
    z-index: 9999;
    color: #1e2a38;
    font-size: 14px;
}

/* Hide all popups by default */

/* Show popup only when its menu-item is open */
.menu-item.open .popup {
    display: block;
}




.popup button, .popup select, .popup input[type="text"] {
    width: 100%;
    border: none;
    padding: 6px;
    margin: 2px 0;
    text-align: left;
    background: white;
    border: 1px solid #ccc;
}

    .popup button:hover {
        background: #E9F0FF;
    }

/*    file popup*/
.file-popup {
    left: 0px;
    font-size: 15px;
}
/* labels popup tweaks */
.labels-popup {
    margin-left: 410px;
    overflow-y: auto;
    max-height: 390px;
}

    .labels-popup label {
        color: #aaa;
        font-size: 12px;
    }

    .labels-popup select, .labels-popup input {
        width: 100%;
        padding: 5px;
        margin-top: 8px;
        border: 1px solid black;
    }

.block {
    width: 100%;
    max-width: 600px;
    font-family: sans-serif;
    margin-top: 12px;
}

    .block h4 {
        margin-bottom: 8px;
        font-size: 14px;
    }

.block-row {
    display: flex;
    justify-content: space-between;
    gap: 2%;
    align-items: flex-start;
}

    .block-row > div {
        display: flex;
        flex-direction: column;
    }

    .block-row .prefix, .block-row .suffix {
        flex: 1;
    }

    .block-row .value {
        flex: 2;
    }

/* download popup */
#downloadOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

#downloadPopup {
    position: fixed;
    top: 248px;
    left: 705px;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 6px;
    width: 40px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

.popup-header {
    /*    background: #004b23;*/
    background: #3a5bf1;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

    .popup-header button {
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
    }

.popup-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* small helpers */

/* --- View Popup --- */

.view-btn {
    display: flex;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 16px;
    left: 4%;
    gap: 5px;
    position: relative;
    width: 94%;
    justify-content: left;
    background: none;
    border: none;
}
    /* cursor: not-allowed;*/
    .view-btn input {
        margin-right: 8px;
    }

    .view-btn .tooltip-text {
        visibility: hidden;
        width: 220px;
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 6px 8px;
        border-radius: 6px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 11px;
    }


        .view-btn .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }

    .view-btn:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

.viewP {
    margin-left: 260px;
}


/* ------------File Popup---------- */


/* ======= Original JS preserved, with only the minimal fixes described ======= */

/* Minimal, non-invasive fix so header remains visible after scripts run */

/* end additions */
#downloadOverlay,
#downloadPopup {
    display: none; /* hidden by default */
}

/* --- Layout Popup --- */
.layout-popup {
    margin-left: 153px;
}

    .layout-popup label {
        color: #aaa;
        font-size: 14px;
        margin-top: 12px;
    }

    .layout-popup select,
    .layout-popup input[type=range] {
        margin-top: 5px;
        width: 100%;
    }

    .layout-popup .first-label {
        color: #aaa;
        font-size: 15px;
    }




/* --- Labels Popup --- */
.labels-popup label {
    color: #aaa;
    font-size: 12px;
}

.labels-popup select,
.labels-popup input {
    width: 100%;
    padding: 5px;
    margin-top: 8px;
    border: 1px solid black;
}

.block {
    width: 100%;
    max-width: 600px;
    font-family: sans-serif;
    margin-top: 12px;
}

    .block h4 {
        margin-bottom: 8px;
    }

.block-row {
    display: flex;
    justify-content: space-between;
    gap: 2%;
    align-items: center;
}

    .block-row > div {
        display: flex;
        flex-direction: column;
    }

    .block-row .prefix, .block-row .suffix {
        flex: 1;
    }

    .block-row .value {
        flex: 2;
        margin-bottom: 5px;
        padding: 8px;
    }

/* Overlay */
#deleteOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Popup Box */
#deletePopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    width: 300px;
    text-align: center;
}

    #deletePopup h3 {
        margin-top: 0;
    }

    #deletePopup .popup-actions {
        margin-top: 20px;
        display: flex;
        justify-content: space-around;
    }

    #deletePopup button {
        padding: 8px 14px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

#confirmDelete.danger {
    background: red;
    color: white;
}

#cancelDelete {
    background: #ccc;
}

#deleteOverlayAccount {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000000;
}

/* Popup Box */
#deletePopupAccount {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000000;
    width: 300px;
    text-align: center;
}

    #deletePopupAccount .popup-actions {
        margin-top: 20px;
        display: flex;
        justify-content: space-around;
    }

    #deletePopupAccount button {
        padding: 8px 14px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

#confirmDeleteAccount.danger {
    background: red;
    color: white;
}

#cancelDeleteAccount {
    background: #ccc;
}

/* ---------------------------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 63px;
    padding: 0 12px;
    border-bottom: 1px solid #e0e0e0;
    padding-right: 36px;
    position: fixed;
    background: #fff;
    z-index: 1100;
}

/* Left side */
.topbar-left {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Logo */
/*.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 64px;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.3s;
}

    .logo-link:hover {
        background: #f5f5f5;
    }

.logo-desktop {
    height: 24px;
    width: auto;
}

.logo-mobile {
    height: 24px;
    width: auto;
    display: none;
}
*/
/* Right side */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-wrapper {
    position: relative;
}

.avatar {
    height: 36px;
    width: 36px;
    border-radius: 6px;
    background: #ddd;
    cursor: pointer;
    object-fit: cover;
    object-position: center;
}

#dropdownMenu {
    display: none;
}

    #dropdownMenu.active {
        display: flex; /* or block/grid, whatever you use */
    }

.dropdown {
    position: absolute;
    top: 48px; /* below avatar */
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-direction: column;
    min-width: 160px;
    z-index: 1101;
}

    .dropdown a {
        padding: 10px 16px;
        color: #333;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background 0.2s;
    }

        .dropdown a:hover {
            background: #f5f5f5;
        }


/* --------------------------------------- */
/* === Color Popup Styles === */

/* ===== Popup Container ===== */

#colorPopup {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #1f1f1f;
    margin-left: 48px;
    /* Scrollbar behavior */
    overflow-y: auto; /* vertical scrollbar only when needed */
    overflow-x: hidden; /* prevent horizontal scroll */
    max-height: 380px; /* set a max height so scroll can trigger */
    scrollbar-width: thin; /* Firefox: makes scrollbar thinner */
    scrollbar-color: #888 #f1f1f1; /* Firefox: thumb + track colors */
}

    /* Chrome, Edge, Safari */
    #colorPopup::-webkit-scrollbar {
        width: 8px; /* scrollbar thickness */
    }

    #colorPopup::-webkit-scrollbar-track {
        background: #f1f1f1; /* scrollbar track */
        border-radius: 4px;
    }

    #colorPopup::-webkit-scrollbar-thumb {
        background: #888; /* scrollbar handle */
        border-radius: 4px;
    }

        #colorPopup::-webkit-scrollbar-thumb:hover {
            background: #555; /* darker on hover */
        }


#colorList {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 12px 0;
}

/* ===== Single Color Item ===== */
.color-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

    .color-item:last-child {
        border-bottom: none;
    }

/* Color swatch square */
.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Right side content */
.color-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Label input */
.color-name {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    outline: none;
    width: 100%;
}

    .color-name:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
    }

/* Sub-action: Edit Keywords */
.color-keywords {
    font-size: 13px;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

    .color-keywords:hover {
        text-decoration: underline;
    }

/* Delete icon */
.color-delete {
    color: #ef4444;
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
    align-self: center;
}

    .color-delete:hover {
        color: #dc2626;
    }

/* ===== Add Color Button ===== */
#addColorBtn {
    border: 1.5px solid #2563eb;
    border-radius: 8px;
    background: #fff;
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 32px);
    margin: 12px auto 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

    #addColorBtn:hover {
        background: #eff6ff;
    }

/* ================== */
/* === Prevent text/image selection & ghost drag === */
/* svg, rect, g, text {
  user-select: none;          
  -webkit-user-select: none;  
  -ms-user-select: none;     
  -moz-user-select: none;     
  
  -webkit-user-drag: none;    
  -khtml-user-drag: none;     
  -moz-user-drag: none;      
  -o-user-drag: none;        
}


rect:focus, g:focus, text:focus {
  outline: none;
} */


/* ------------------Cell operation ------------------- */
#custom-context-menu {
    position: fixed;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: sans-serif;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

    #custom-context-menu ul {
        list-style: none;
        margin: 0;
        padding: 5px 0;
    }

    #custom-context-menu li {
        padding: 6px 15px;
        cursor: pointer;
        white-space: nowrap;
        font-size: 12px;
    }

        #custom-context-menu li:hover {
            background: #007bff;
            color: #fff;
        }

    #custom-context-menu hr {
        border: none;
        border-top: 1px solid #ddd;
        margin: 5px 0;
    }

/* ------------- */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: -4px;
    /*border-bottom: 1px solid #e5e7eb;*/
    margin-top: 5px;
}

.tab {
    padding: 10px 8px;
    border-top: 1px solid #DADADA;
    border-bottom: 1px solid #DADADA;
    border-left: 1px solid #DADADA;
    border-right: 1px solid #DADADA;
    background: none;
    font-size: 13px;
    cursor: pointer;
    color: #808080;
    border-radius: 7px;
    background: #ffffff;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 5px;
}

    .tab.active {
        color: #1A73EB;
        border-top: 1px solid #1A73EB;
        border-left: 1px solid #1A73EB;
        border-right: 1px solid #1A73EB;
        border-bottom: 1px solid #1A73EB;
        font-weight: bold;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Error badge */
.badge {
    height: 24px;
    min-width: 24px;
    padding: 0 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 140%;
    color: #ffffff;
    background-color: #6B7280; /* gray */
}


/* ----------------- */
.alert-box {
    display: none;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    background: rgba(248, 113, 113, 0.2); /* #F8717133 */
    border: 1px solid #F87171;
    cursor: pointer;
    border-radius: 4px;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    width: 16px;
    height: 16px;
}

.alert-text {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: #333; /* replace with your "text-text" color */
    display: flex;
    align-items: center;
    gap: 8px;
}


.arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}


/* ------------- template page css reponsive -------------- */

/* ===================== GLOBAL ===================== */

/* ===================== RESPONSIVE ===================== */

/* ?? Small devices (?640px) */
@media (max-width: 640px) {
    .topbar {
        padding: 0 8px;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    /* body{overflow: hidden;} */
    /* Stack Sankey + Table vertically */
    main {
        flex-direction: column;
        top: 153px; /* leave room for headers */
        position: relative; /* remove absolute for mobile */
        height: calc(100vh - 150px);
        overflow-y: auto;
    }

    .sankey-col,
    .table-section {
        flex: 1 1 50%;
        width: 100%;
        min-height: 200px;
        overflow: hidden;
    }

    .table-container {
        max-height: 200px;
        min-height: 200px;
        overflow-y: auto;
    }

    /* Tabs/menu collapse into scrollable row */
    .header2 {
        height: auto;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    /*.menu-btn p {
        font-size: 14px;
    }*/

    /*.menu-btn img {
        width: 20px;
        height: 20px;
    }*/

    /* Popups fit screen width */
    .popup {
        min-width: 90vw;
        max-width: 90vw;
        left: 50%;
        transform: translateX(-50%);
    }

    .layout-popup {
        margin-left: 0;
    }

    .viewP {
        margin-left: 0;
    }

    .labels-popup {
        margin-left: 0;
    }

    #colorPopup {
        margin-left: 0;
    }

    .nodePopup {
        min-width: 65vw;
        max-width: 65vw;
        left: 0;
        margin-left: 0;
    }
}

/* ?? Medium devices (?768px) */
@media (max-width: 768px) {
    .table-container {
        max-height: 220px;
    }

    .notice-bar {
        font-size: 12px;
    }

    .header2 {
        height: 70px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    /*.menu-btn p {
        font-size: 14px;
    }*/

    /*.menu-btn img {
        width: 20px;
        height: 20px;
    }*/

    /* Popups fit screen width */
    .popup {
        min-width: 90vw;
        max-width: 90vw;
        left: 50%;
        transform: translateX(-50%);
    }

    .layout-popup {
        margin-left: 0;
    }

    .viewP {
        margin-left: 0;
    }

    .labels-popup {
        margin-left: 0;
    }

    #colorPopup {
        margin-left: 0;
    }

    .nodePopup {
        min-width: 65vw;
        max-width: 65vw;
        left: 0;
        margin-left: 0;
    }
}

/* ?? Laptops (?1024px) */
@media (max-width: 1024px) {
    .layout-left #editorPanel,
    .layout-right #editorPanel {
        width: 45%;
    }

    .layout-bottom #editorPanel {
        min-height: 300px;
    }
}

/* ??? XL screens (?1440px) */
@media (min-width: 1440px) {
    .layout-left #editorPanel,
    .layout-right #editorPanel {
        width: 35%;
    }

    .cards-container {
        gap: 24px;
    }
}

/*================Login page==============*/

.container {
    max-width: 455px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: auto;
}

.formtitle {
    font-size: 33px;
    font-weight: 800;
    line-height: 40px;
    letter-spacing: -0.02em;
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        height: 44px;
        padding: 0 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    }

.submit-btn {
    background-color: #0066ff;
    color: white;
    height: 44px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .submit-btn:hover {
        background-color: #0052cc;
    }

.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer {
    text-align: center;
    font-size: 14px;
}

    .footer a {
        color: #0066ff;
        font-weight: bold;
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }


/*  =================================== Share Model ===============================*/

/* ===== Basic Modal Styling ===== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    .share-modal.hidden {
        display: none;
    }

.share-modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
}

    .share-modal-content h2 {
        margin-bottom: 10px;
    }

    .share-modal-content input {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 14px;
    }

    .share-modal-content button {
        background-color: #007bff;
        border: none;
        color: white;
        /*        padding: 10px 16px;*/
        padding: 0px;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.3s;
        height: 40px;
    }

        .share-modal-content button:hover {
            background-color: #0056b3;
        }

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #555;
}

.copy-message {
    font-size: 13px;
    color: green;
    margin-top: 8px;
}


/*==================*/


.topbar-right-nav-item {
    display: flex;
    gap: 10px;
}








/*    -----------------*/

/* Dropdown container */
.Tdrop-menu {
    display: none;
    position: absolute;
    top: 85%;
    /*    right: 8px;*/
    background-color: white;
    border: 1px solid #ccc;
    min-width: 120px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

    /* Dropdown items */
    .Tdrop-menu a {
        display: block;
        padding: 8px 12px;
        text-decoration: none;
        color: black;
    }

        .Tdrop-menu a:hover {
            background-color: #f0f0f0;
        }

/* Show dropdown on hover */
.topico-dro:hover .Tdrop-menu {
    display: block;
    right: 802px;
}

.topico-dro2:hover .Tdrop-menu {
    right: 223px;
    display: block;
}

/*    ---------------*/


.template-card-width {
    width: 270px;
}

/* updateds css*/


#saveChartBtn {
    padding: 5px;
    border: 1px solid #DADADA;
    border-radius: 7px;
    background: #EFEFEF;
    font-size: 15px;
    margin-left: 10px;
    text-align: center;
    justify-content: center;
    display: flex;
    gap: 11px;
    align-items: center;
}

    #saveChartBtn:not(:disabled):hover {
        padding: 5px;
        border: 1px solid #1A73E8;
        border-radius: 7px;
        background: #1A73E8;
        font-size: 15px;
        color: #fff;
    }

    #saveChartBtn:disabled {
        opacity: 0.5;
        filter: grayscale(50%);
    }

/*    // form download dropdown*/

/*.menu-item {
    position: relative;
    display: inline-block;
}

.menu-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
}

    .menu-btn .left img {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }*/

/* Dropdown container */
/*.download-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 6px;
    min-width: 140px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 6px 0;
}*/

/* Dropdown items */
/*.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

    .dropdown-item:hover {
        background: #f2f2f2;
    }*/


.download-popup {
    left: 150px;
}

.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

/*// ========= import data =============*/


.import-wrapper {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 5px 20px 20px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.upload-area {
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    padding: 40px 10px 15px 10px;
    background-color: #fafafa;
    cursor: pointer;
    transition: 0.2s;
}

    .upload-area:hover {
        background-color: #f0f0f0;
    }

.upload-icon img {
    width: 50px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.upload-text {
    font-size: 16px;
    margin-bottom: 5px;
    border-bottom: 2px dashed #DADADA;
    padding-bottom: 20px;
    margin-bottom: 15px;
}

.choose-file {
    color: #337ab7;
    text-decoration: underline;
    cursor: pointer;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 12px;
}

.import-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.btn-cancel, .btn-import {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-cancel {
    background-color: #ededed;
}

.btn-import {
    background-color: #007bff;
    color: #fff;
}



    .btn-import:hover {
        color: #1A73EB;
        border: 1px solid #1A73EB;
        background: #E9F0FF;
    }

/*// ====== menu bar button hover*/
.menu-btn:hover {
    background: #EFEFEF;
}

/*//===========*/


.position-selector {
    display: flex;
    gap: 12px;
}

.pos-option {
    width: 90px;
    height: 70px;
    border: 1px solid #dadada;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transition: all .2s ease;
    font-size: 13px;
    color: #555;
    padding: 12px 17px;
}

    .pos-option:hover {
        border-color: #b5b5b5;
    }

    .pos-option.active {
        border: 2px solid #1A73EB;
        background: #F0F6FF;
        font-weight: bold;
        color: #1A73EB;
    }

.pos-icon {
    width: 45px;
    height: 20px;
    margin: auto;
    background-color: #eee;
    position: relative;
}

    /* Gray block (left) */
    .pos-icon.left::before {
        content: "";
        position: absolute;
        left: 0;
        width: 12px;
        height: 100%;
        background: #c1c1c1;
    }

    /* Gray block (right) */
    .pos-icon.right::before {
        content: "";
        position: absolute;
        right: 0;
        width: 12px;
        height: 100%;
        background: #c1c1c1;
    }

    /* Gray block (bottom) */
    .pos-icon.bottom::before {
        content: "";
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 8px;
        background: #c1c1c1;
    }



/*    // ---------------------------selectr bar*/


#nodeWidth {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    outline: none;
}

    /* Chrome, Safari, Edge */
    #nodeWidth::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        background: #FF651C;
        border-radius: 50%;
        cursor: pointer;
        margin-top: 0px; /* vertically center the thumb */
    }

    /* Firefox */
    #nodeWidth::-moz-range-thumb {
        width: 12px;
        height: 12px;
        background: #FF651C;
        border-radius: 50%;
        cursor: pointer;
    }


#nodeHeight {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    outline: none;
}

    /* Chrome, Safari, Edge */
    #nodeHeight::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        background: #FF651C;
        border-radius: 50%;
        cursor: pointer;
        margin-top: 0px; /* vertically center the thumb */
    }

    /* Firefox */
    #nodeHeight::-moz-range-thumb {
        width: 12px;
        height: 12px;
        background: #FF651C;
        border-radius: 50%;
        cursor: pointer;
    }




#nodeSpacing {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    outline: none;
}

    /* Chrome, Safari, Edge */
    #nodeSpacing::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        background: #FF651C;
        border-radius: 50%;
        cursor: pointer;
        margin-top: 0px; /* vertically center the thumb */
    }

    /* Firefox */
    #nodeSpacing::-moz-range-thumb {
        width: 12px;
        height: 12px;
        background: #FF651C;
        border-radius: 50%;
        cursor: pointer;
    }




#labelSize {
    -webkit-appearance: none;
    width: 100%;
    height: 0px;
    border-radius: 5px;
    outline: none;
}

    /* Chrome, Safari, Edge */
    #labelSize::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        background: #FF651C;
        border-radius: 50%;
        cursor: pointer;
        margin-top: 0px; /* vertically center the thumb */
    }

    /* Firefox */
    #labelSize::-moz-range-thumb {
        width: 12px;
        height: 12px;
        background: #FF651C;
        border-radius: 50%;
        cursor: pointer;
    }


/*//==================*/


.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    font-size: 14px;
}

    .toggle-row.disabled {
        opacity: 0.5;
        position: relative;
    }

.tooltip-text {
    position: absolute;
    left: 0;
    top: 110%;
    font-size: 12px;
    color: #666;
}

/* Switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

    /* Hide default checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* Slider background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

    /* Circle */
    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .3s;
        border-radius: 50%;
    }

/* When checked (orange toggle like image) */
input:checked + .slider {
    background-color: #ff7a00; /* orange */
}

    input:checked + .slider:before {
        transform: translateX(22px);
    }

/* Disabled behavior */
input:disabled + .slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

/*// label label updation==============*/

.segment-group {
    display: inline-flex;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
}

    .segment-group button {
        padding: 6px 14px;
        font-size: 14px;
        border: 1px solid #D9D9D9;
        background: #fff;
        color: #1e2a38;
        cursor: pointer;
        transition: 0.2s;
    }

        .segment-group button:not(:last-child) {
            border-right: 1px solid #dcdcdc;
        }

        .segment-group button.active {
            background: #FF651C;
            color: #fff;
        }

        .segment-group button:hover {
            background: #ffe2c7;
        }
