:root {
    --primary-indigo: #4f46e5;
    --primary-indigo-light: #e0e7ff;
    --neutral-bg: #f8fafc;
    --sidebar-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);

    /* নতুন ভাইব্রেন্ট ও কালারফুল প্যালেট */
    --colorful-sidebar-bg: linear-gradient(180deg, #1e1b4b 0%, #311042 100%); /* প্রমিয়াম ডার্ক পার্পল গ্রেডিয়েন্ট */
    --neutral-bg: #f4f6fa;
    --text-dark: #0f172a;
    --text-light-muted: rgba(255, 255, 255, 0.65);
    --border-color: #e2e8f0;
    
    /* প্রতিটি লিংকের জন্য আলাদা আলাদা নিয়ন কালার */
    --color-dashboard: #38bdf8; /* স্কাই ব্লু */
    --color-analytics: #f43f5e; /* হট পিঙ্ক/রোজ */
    --color-layouts: #10b981;   /* নিয়ন গ্রিন */
    --color-components: #fbbf24;/* ব্রাইট ইয়োলো */
    --color-courses: #a855f7;   /* লাইট পার্পল */
}

body {
    background-color: var(--neutral-bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

/* --- কালারফুল সাইডবার বেস --- */
.sidebar-premium {
    min-height: 100vh;
    width: 260px;
    background: var(--colorful-sidebar-bg);
    border-right: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 25px rgba(30, 27, 75, 0.25);
}

.logo-text {
    font-size: 1.35rem;
    color: #ffffff;
    letter-spacing: -0.03em;
}

/* --- কালারফুল প্রোফাইল কার্ড --- */
.user-card-premium {
    background:linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgb(255 255 255 / 85%) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 14px;
}

.profile-avatar-wrapper {
    position: relative;
    padding: 3px;
    background: linear-gradient(45deg, #f43f5e, #38bdf8, #a855f7); /* অ্যাভাটারের চারপাশে কালারফুল বর্ডার */
    border-radius: 50%;
    display: inline-block;
}

.profile-avatar-wrapper img {
    background: #1e1b4b;
    padding: 2px;
    max-width: 50px;
    max-height: 50px;
}

.status-indicator-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border: 2px solid #1e1b4b;
    border-radius: 50%;
}

.menu-title-premium {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    padding-left: 12px;
    margin-bottom: 10px;
}

/* --- কালারফুল মেইন লিংকস --- */
.nav-item-premium {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.25s ease;
}

/* প্রতিটি আইটেমের হোভার কালার আলাদা এবং উজ্জ্বল হবে */
.nav-item-premium.link-dashboard:hover, .nav-item-premium.link-dashboard[aria-expanded="true"] {
    color: #ffffff !important;
    background: rgba(56, 189, 248, 0.15);
}
.nav-item-premium.link-dashboard i { color: var(--color-dashboard); }

.nav-item-premium.link-analytics:hover {
    color: #ffffff !important;
    background: rgba(244, 63, 94, 0.15);
}
.nav-item-premium.link-analytics i { color: var(--color-analytics); }

.nav-item-premium.link-layouts:hover, .nav-item-premium.link-layouts[aria-expanded="true"] {
    color: #ffffff !important;
    background: rgba(16, 185, 129, 0.15);
}
.nav-item-premium.link-layouts i { color: var(--color-layouts); }

.nav-item-premium.link-components:hover, .nav-item-premium.link-components[aria-expanded="true"] {
    color: #ffffff !important;
    background: rgba(251, 191, 36, 0.15);
}
.nav-item-premium.link-components i { color: var(--color-components); }

.nav-item-premium.link-courses:hover {
    color: #ffffff !important;
    background: rgba(168, 85, 247, 0.15);
}
.nav-item-premium.link-courses i { color: var(--color-courses); }

/* --- সাব-মেনু লিংক কালার --- */
.submenu-wrapper {
    margin-bottom: 8px;
    margin-top: 2px;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    margin-left: 24px;
}

.submenu-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 3px;
    transition: all 0.2s ease;
}

/* সাবমেনু একটিভ থাকলে গ্লোয়িং ইফেক্ট */
.submenu-item.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, var(--color-dashboard) 0%, rgba(56, 189, 248, 0) 100%);
    font-weight: 600;
    box-shadow: -3px 0 0 var(--color-dashboard);
}

.submenu-item:hover {
    color: #ffffff;
    padding-left: 20px; /* হোভার করলে একটু ডানপাশে সরবে */
}

/* ডায়নামিক অ্যারো রোটেশন */
.nav-item-premium .arrow-icon {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.nav-item-premium[aria-expanded="true"] .arrow-icon {
    transform: rotate(90deg);
    color: #ffffff;
}
/* ন্যাভবারের কাস্টম ফিক্সড স্টাইল */
.navbar-fixed-custom {
    left: 260px; /* সাইডবারের উইডথ অনুযায়ী ডানে থাকবে */
    width: calc(100% - 260px);
    z-index: 1000;
    transition: left 0.3s, width 0.3s;
}

/* সাইডবার টগল হলে ন্যাভবার পুরো স্ক্রিন জুড়ে যাবে */
#wrapper.toggled .navbar-fixed-custom {
    left: 0;
    width: 100%;
}

/* কন্টেন্ট এরিয়ার উপরে ন্যাভবারের সমপরিমাণ স্পেস দেওয়া হলো */
#page-content-wrapper {
    width: 100%;
    padding-left: 260px;
    padding-top: 80px; /* ন্যাভবারের হাইট অনুযায়ী কন্টেন্ট নিচে নামানোর জন্য */
    transition: padding 0.3s;
}

/* রেসপনসিভ বা মোবাইল ভিউ অ্যাডজাস্টমেন্ট */
@media (max-width: 991px) {
    .navbar-fixed-custom {
        left: 0;
        width: 100%;
    }
    #page-content-wrapper {
        padding-left: 0;
        padding-top: 80px;
    }
}
.search-box-premium {
    max-width: 320px;
    position: relative;
}

.search-box-premium .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-box-premium .form-control {
    background-color: var(--neutral-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding-left: 38px;
    font-size: 0.85rem;
}

.search-box-premium .form-control:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    border-color: var(--primary-indigo);
}

.action-btn-premium {
    border: none;
    background: transparent;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn-premium:hover {
    background-color: var(--neutral-bg);
    color: var(--text-dark);
}

.dot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-indigo);
    border-radius: 50%;
}

.vertical-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
}

/* Cards Premium Styling */
.card-premium {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-premium:hover {
    box-shadow: var(--card-shadow-hover);
}

/* Welcome Card Premium (Mesh Gradient Effect) */
.welcome-card-premium {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.2);
}

.floating-rocket-premium {
    position: absolute;
    height: 140px;
    right: 45px;
    bottom: 20px;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.stat-icon-wrapper-premium {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.color-earnings {
    background-color: var(--primary-indigo-light);
    color: var(--primary-indigo);
}

.badge-trend-up {
    color: #10b981;
    background-color: #ecfdf5;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-more-premium {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.progress-premium {
    height: 6px;
    background-color: var(--border-color);
    border-radius: 10px;
}

/* Helper Utility utilities */
.font-xs { font-size: 0.7rem; }
.font-sm { font-size: 0.8rem; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.02em; }
.max-w-md { max-width: 450px; }

/* Fixed Heights Charts */
.mini-chart-container { height: 50px; position: relative; }
.main-chart-container-premium { height: 230px; position: relative; }

/* --- ডেস্কটপ এবং জেনারেল লেআউট --- */
#page-content-wrapper {
    width: 100%;
    padding-left: 260px;
    padding-top: 80px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-fixed-custom {
    left: 260px;
    width: calc(100% - 260px);
    z-index: 1010;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ডেস্কটপে কলাপ্সড (Toggled) অবস্থা */
@media (min-width: 992px) {
    #wrapper.toggled .sidebar-premium {
        transform: translateX(-100%);
    }
    #wrapper.toggled #page-content-wrapper {
        padding-left: 0;
    }
    #wrapper.toggled .navbar-fixed-custom {
        left: 0;
        width: 100%;
    }
}

/* --- মোবাইল ও ট্যাবলেট স্ক্রিন (Responsive) --- */
@media (max-width: 991px) {
    .sidebar-premium {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    /* মোবাইলে যখন সাইডবার ওপেন হবে */
    #wrapper.toggled .sidebar-premium {
        transform: translateX(0);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    }
    
    #page-content-wrapper {
        padding-left: 0; /* মোবাইলে ফুল উইডথ কন্টেন্ট */
    }
    
    .navbar-fixed-custom {
        left: 0;
        width: 100%;
    }
}
@media (max-width: 991px) {
    .sidebar-premium {
        transform: translateX(-100%);
    }
    #page-content-wrapper {
        padding-left: 0;
    }
    #wrapper.toggled .sidebar-premium {
        transform: translateX(0);
    }
}
/* সাব-মেনু কন্টেইনার স্টাইল */
.submenu-wrapper {
    margin-bottom: 5px;
    position: relative;
}

/* সাব-মেনুর ভেতরের লিংকগুলোর স্টাইল */
.submenu-item {
    display: block;
    padding: 8px 14px;
    color:#99a9bf;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    color: var(--text-dark);
    background-color: var(--neutral-bg);
}

.submenu-item.active {
    color: var(--primary-indigo);
    background-color: transparent;
    font-weight: 600;
}

/* ড্রপডাউন অ্যারো (Arrow) অ্যানিমেশন */
.nav-item-premium .arrow-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

/* যখন মেনু ওপেন থাকবে (collapsed ক্লাস থাকবে না) তখন তীরটি নিচের দিকে ঘুরবে */
.nav-item-premium[aria-expanded="true"] .arrow-icon {
    transform: rotate(90deg);
    color: var(--primary-indigo);
}

/* প্রোফাইল ড্রপডাউন কাস্টমাইজেশন */
.dropdown-toggle-custom {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dropdown-toggle-custom:hover {
    transform: scale(1.05); /* হোভার করলে সামান্য বড় হবে */
}

/* বুটস্ট্র্যাপের ডিফল্ট অ্যারো (arrow) চিহ্নটি প্রোফাইলের উপর থেকে সরানোর জন্য */
.dropdown-toggle-custom::after {
    display: none !important;
}

/* প্রোফাইল ড্রপডাউন মেনুর স্টাইল */
.header-profile-dropdown .dropdown-menu {
    min-width: 200px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    animation: slideDownIn 0.2s ease-out; /* স্মুথ ওপেনিং অ্যানিমেশন */
}

.header-profile-dropdown .dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

/* আইটেমগুলোর উপর হোভার ইফেক্ট */
.header-profile-dropdown .dropdown-item:hover {
    background-color: var(--neutral-bg);
    color: var(--primary-indigo);
    padding-left: 20px; /* হোভার করলে লেখাগুলো সামান্য ডানে সরবে */
}

.header-profile-dropdown .dropdown-item.text-danger:hover {
    background-color: #fef2f2;
    color: #ef4444 !important;
}

/* ড্রপডাউন ওপেন হওয়ার জন্য একটি স্মুথ অ্যানিমেশন */
@keyframes slideDownIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- কালারফুল স্ট্যাটস কার্ড স্টাইলস --- */
.stats-card-colorful {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* হোভার করলে কার্ডটি সুন্দরভাবে ভেসে উঠবে */
.stats-card-colorful:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05) !important;
}

/* আইকন বক্স কমন স্টাইল */
.stats-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* --- থিম ভিত্তিক কালার ভ্যারিয়েশনস --- */

/* ১. Sky Blue (Clients) */
.border-blue:hover {
    border-color: #38bdf8 !important;
}
.bg-blue-subtle {
    background-color: rgba(56, 189, 248, 0.12);
}
.text-blue {
    color: #0284c7;
}

/* ২. Rose/Pink (Projects) */
.border-rose:hover {
    border-color: #f43f5e !important;
}
.bg-rose-subtle {
    background-color: rgba(244, 63, 94, 0.12);
}
.text-rose {
    color: #e11d48;
}

/* ৩. Green (Licenses) */
.border-green:hover {
    border-color: #10b981 !important;
}
.bg-green-subtle {
    background-color: rgba(16, 185, 129, 0.12);
}
.text-green {
    color: #059669;
}

/* ৪. Purple (Packages) */
.border-purple:hover {
    border-color: #a855f7 !important;
}
.bg-purple-subtle {
    background-color: rgba(168, 85, 247, 0.12);
}
.text-purple {
    color: #9333ea;
}

/* ফন্ট সাইজ ইউটিলিটি ক্লাস (যদি অলরেডি না থাকে) */
.font-xs {
    font-size: 0.75rem;
}

    /* এডিটরের ভেতরের এরিয়া */
    .ck-editor__editable_inline {
        min-height: 200px !important;
        background-color: #f8f9fa !important;
        border-bottom-left-radius: 0.5rem !important;
        border-bottom-right-radius: 0.5rem !important;
        color: #212529 !important;
        padding: 0 15px !important;
    }
    /* এডিটরের টুলবার */
    .ck-toolbar {
        background-color: #f1f3f5 !important;
        border-top-left-radius: 0.5rem !important;
        border-top-right-radius: 0.5rem !important;
        border-color: #dee2e6 !important;
    }
    /* বর্ডার হ্যান্ডেলিং */
    .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused) {
        border-color: #dee2e6 !important;
    }
    .ck.ck-editor__main>.ck-editor__editable.ck-focused {
        border-color: #a855f7 !important; /* আপনার থিমের বেগুনি কালার */
        box-shadow: 0 0 0 0.25rem rgba(168, 85, 247, 0.15) !important;
    }
    /* CKEditor এর মূল ফ্রেমের বর্ডার রেডিয়াস এবং কালার */
    .cke_chrome {
        border-radius: 0.5rem !important;
        border: 1px solid #dee2e6 !important;
        overflow: hidden;
    }
    /* টুলবার ব্যাকগ্রাউন্ড */
    .cke_inner {
        background: #f8f9fa !important;
    }
    .cke_top {
        background: #f1f3f5 !important;
        border-bottom: 1px solid #dee2e6 !important;
        padding: 6px 8px !important;
    }
    /* ফোকাস স্টাইল */
    .cke_chrome:focus-within {
        border-color: #a855f7 !important; /* বেগুনি কালার */
        box-shadow: 0 0 0 0.25rem rgba(168, 85, 247, 0.15) !important;
    }

       /* টেবিল ডিজাইন */
    #packageTable th {
        border-bottom: 2px solid #f1f3f5 !important;
        padding: 15px 10px;
    }
    #packageTable td {
        padding: 16px 10px;
        border-bottom: 1px solid #f8f9fa;
    }
    .avatar-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* সার্চ ইনপুট স্টাইল */
    .dataTables_filter input {
        border: 1px solid #dee2e6 !important;
        border-radius: 50px !important;
        padding: 6px 16px !important;
        background-color: #f8f9fa !important;
        font-size: 14px;
    }
    .dataTables_filter input:focus {
        border-color: #a855f7 !important;
        box-shadow: 0 0 0 0.25rem rgba(168, 85, 247, 0.15) !important;
        outline: none;
    }

    /* ড্রপডাউন মেনু আইটেম */
    .dropdown-menu-item {
        display: block;
        width: 100%;
        padding: 0.4rem 1rem;
        clear: both;
        font-weight: 500;
        color: #495057;
        text-align: inherit;
        text-decoration: none;
        white-space: nowrap;
        background-color: transparent;
        border: 0;
        font-size: 14px;
    }
    .dropdown-menu-item:hover {
        background-color: #f8f9fa;
        color: #212529;
    }

    /* পেজিনেশন ডিজাইন */
    .page-item.active .page-link {
        background-color: #a855f7 !important;
        border-color: #a855f7 !important;
        border-radius: 50%;
        color: white !important;
    }
    .page-link {
        color: #6c757d !important;
        border: none !important;
        padding: 6px 12px;
        margin: 0 4px;
        border-radius: 50% !important;
    }
    .page-link:hover {
        background-color: #f1f3f5 !important;
    }
    /* ৩-ডট বাটন মডার্ন ডিজাইন */
.btn-action-trigger {
    width: 34px;
    height: 34px;
    margin-left: auto;
    border-radius: 50% !important;
    background-color: transparent;
    border: none !important;
    transition: all 0.2s ease-in-out;
    font-size: 15px;
    cursor: pointer;
}

.btn-action-trigger:hover, 
.btn-action-trigger[aria-expanded="true"] {
    background-color: rgba(168, 85, 247, 0.08) !important; /* হালকা বেগুনি গ্লো হোভার */
    color: #a855f7 !important;
}

/* ড্রপডাউন মেনু আরও স্মুথ ও প্রিমিয়াম করার জন্য */
.dropdown-menu {
    min-width: 150px;
    transform-origin: top right;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.15s ease;
}

.dropdown-menu-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.dropdown-menu-item.text-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* আইকন কালার */
.text-primary-gradient {
    color: #a855f7; /* বেগুনি থিমের সাথে মিল রেখে আইকন কালার */
}