#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999999999999;
}

#loader-wrapper .loader-section {
    position: fixed;
    top: 0;
    width: 51%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

#loader-wrapper .loader-section.section-left {
    left: 0;
}

#loader-wrapper .loader-section.section-right {
    right: 0;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f15b26;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    z-index: 99999;
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f15b26;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f15b26;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

.loaded #loader-wrapper {
    visibility: hidden;
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
    -webkit-transition: all 0.3s 1s ease-out;
    transition: all 0.3s 1s ease-out;
}

.loaded #loader-wrapper .loader-section.section-left {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader-wrapper .loader-section.section-right {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader {
    opacity: 0;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.loaded #loader-wrapper {
    visibility: hidden;
    transform: translateY(-100%);
}

.loaded #loader {
    opacity: 0;
}

/* MODERN ENTERPRISE UI GLOBALS */
body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-color: #f8f9fa;
}

/* DATATABLES MODERNIZATION */
table.dataTable thead tr {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #e9ecef;
}

table.dataTable tfoot tr {
    background-color: #f8f9fa !important;
}

table.dataTable tfoot tr th {
    color: #495057 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

table.dataTable thead tr th {
    color: #495057 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    padding: 16px 14px !important;
}

table.dataTable {
    border: 1px solid #e9ecef !important;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

table.dataTable tbody td {
    padding: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
    color: #333;
}

table.dataTable tbody tr:hover {
    background-color: #fcfcfc !important;
}

/* MODERN CARD DEFAULTS */
.card {
    border: 0 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px;
    margin-bottom: 24px;
}

.card-header {
    background: #fff !important;
    border-bottom: 1px solid #f1f3f5 !important;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0 !important;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

/* SIDEBAR / TOPBAR RESET */
#sidebar {
    background: #ffffff;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.03);
    border-right: 1px solid #eee;
}

#sidebar ul li a {
    color: #555 !important;
    font-weight: 500;
}

#sidebar ul li.active>a {
    background: #f0f4f8 !important;
    color: #3b82f6 !important;
    font-weight: 600;
    border-radius: 8px;
    margin: 0 10px;
}

.topbar {
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid #eee;
}

@media (max-width: 767px) {
    #template-customizer {
        display: none;
    }
}

/* ═══════ BENTO BOX / BLOGGR UI OVERRIDES ═══════ */
body {
    background-color: #f4f5f7 !important;
    padding-bottom: 100px;
    /* Space for fixed bento footer */
}

#content {
    min-height: 100vh;
    padding-top: 100px !important;
    padding-left: 310px !important;
    /* Sidebar width + 30 padding */
    width: 100% !important;
    padding-right: 30px !important;
    transition: all 0.3s ease;
}

/* ══════ TOPBAR NEW CLASSES ══════ */
.topbar-control-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fff;
}

.topbar-title {
    color: #222;
    letter-spacing: -0.5px;
}

.topbar-badge {
    width: 10px;
    height: 10px;
    right: 5px;
    top: 5px;
}

.topbar-user-pill {
    cursor: pointer;
    background: #f4f5f7;
    padding: 6px 16px 6px 6px;
    border-radius: 40px;
}

.topbar-user-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #fff;
}

.topbar-user-text-wrap {
    line-height: 1.2;
}

.topbar-user-name {
    font-size: 14px;
    color: #222;
}

.topbar-user-role {
    font-size: 12px;
}

.topbar-dropdown-menu {
    border-radius: 16px;
    padding: 8px;
    min-width: 200px;
    z-index: 9999;
}

.topbar-dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}

/* ══════ BENTO WIDGET CLASSES (DASHBOARD REFACTOR) ══════ */
.bento-card-padding {
    padding: 28px;
    border-radius: 36px !important;
}

.bento-card-padding-lg {
    padding: 32px;
    border-radius: 36px !important;
}

.bento-card-padding-xl {
    padding: 36px;
    border-radius: 36px !important;
}

.bento-badge {
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
}

.bento-title-lg {
    font-size: 24px;
}

.bento-title-xl {
    font-size: 48px;
    margin-bottom: 4px;
}

.bento-title-xxl {
    font-size: 56px;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.bento-desc-sub {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
}

.bento-desc-heavy {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.2px;
}

.flex-row-val {
    font-size: 15px;
    font-weight: 500;
}

.flex-row-val-bold {
    font-size: 15px;
    font-weight: 600;
}

.icon-16-op8 {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.icon-16-op7 {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.icon-20 {
    width: 20px;
    height: 20px;
}

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

.icon-32 {
    width: 32px;
    height: 32px;
}

.shadow-indigo {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.08) !important;
    position: relative;
    overflow: hidden;
}

.shadow-rose {
    box-shadow: 0 10px 40px rgba(244, 63, 94, 0.08) !important;
    position: relative;
    overflow: hidden;
}

.shadow-emerald {
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.08) !important;
    position: relative;
    overflow: hidden;
}

.circle-indigo {
    width: 48px;
    height: 48px;
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.circle-rose {
    width: 48px;
    height: 48px;
    background: #f43f5e;
    color: white;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.circle-emerald {
    width: 48px;
    height: 48px;
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.decor-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 160px;
    height: 160px;
    opacity: 0.04;
    z-index: 1;
    transform: rotate(-15deg);
}

.bg-indigo-light {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1 !important;
}

.bg-rose-light {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e !important;
}

.bg-emerald-light {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981 !important;
}

.bg-purple-light {
    background: rgba(128, 97, 217, 0.1);
    color: #8061d9 !important;
}

.bg-purple-med {
    background: rgba(128, 97, 217, 0.8);
    color: white !important;
}

.bg-dark-light {
    background: rgba(34, 34, 34, 0.05);
    color: #222 !important;
}

.bg-blue-light {
    background: rgba(56, 126, 242, 0.1);
    color: #387ef2 !important;
}

.bg-white-circle {
    width: 48px;
    height: 48px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #f59e0b;
}

.health-card {
    background: rgba(0, 0, 0, 0.02);
    padding: 24px;
    border-radius: 24px;
}

.health-icon-indigo {
    color: #6366f1;
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
}

.health-icon-emerald {
    color: #10b981;
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
}

.health-icon-amber {
    color: #f59e0b;
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
}

.health-icon-rose {
    color: #f43f5e;
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
}

.health-subtitle {
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
}

/* ══════ DARK FLUID SIDEBAR ══════ */
#sidebar {
    background-color: #1e1e1e !important;
    width: 280px !important;
    position: fixed !important;
    top: 0;
    left: 0;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    height: 100vh !important;
    min-height: 100vh !important;
    z-index: 1001;
    transition: all 0.3s ease;
    overflow-y: visible !important;
    /* Important: allow box shadow bleed for ::before/after */
    overflow-x: visible !important;
}

/* ══════ KILL PLUTO LEGACY THEME RULES ══════ */
.sidebar_blog_1,
.sidebar_blog_2,
.sidebar_user_info {
    background: transparent !important;
    /* Force transparent against old #15283c */
}

#sidebar ul.components ul {
    background: transparent !important;
    /* Remove old #214162 blue box */
    padding: 0 !important;
}

#sidebar ul li a.dropdown-toggle::after {
    display: none !important;
    /* Hide Pluto/Bootstrap duplicate arrow */
}

#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
}

#sidebar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
}

/* SIDEBAR LIGHT BENTO OVERRIDES */
.sidebar_blog_1,
.sidebar_blog_2 {
    background: transparent !important;
}

#sidebar .sidebar-header {
    background: transparent !important;
    border-bottom: none;
    padding: 24px 20px 0;
    /* Add top/side padding to frame logo */
}

/* BRAND LOGO STYLES */
.brand-text {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.brand-accent {
    color: #a855f7;
}

/* ══════ HERO PROFILE BENTO ══════ */
.bento-profile-hero {
    position: relative;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Lighter border for dark mode */
    margin-bottom: 12px;
}

.bento-profile-cover {
    height: 70px;
    /* Reduced from 100px */
    border-radius: 16px;
    margin: 12px;
    margin-bottom: -35px;
    /* Reduced to compensate */
    background: linear-gradient(135deg, #a855f7, #c084fc);
    /* Vibrant purple */
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.bento-profile-hero .user_img {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.bento-profile-hero .user_img img {
    border: 4px solid #1e1e1e;
    /* Match new sidebar bg */
    border-radius: 50%;
    width: 64px;
    /* Reduced slightly */
    height: 64px;
    object-fit: cover;
}

.bento-profile-hero h6 {
    margin-top: 8px;
    font-size: 16px;
    /* Reduced */
    font-weight: 800;
    color: #ffffff !important;
}

.bento-profile-hero .role-text {
    font-size: 12px;
    color: #a1a1aa;
    margin-bottom: 10px;
    font-weight: 500;
}

.bento-profile-hero .profile-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.bento-profile-hero .profile-actions a,
.bento-profile-hero .profile-actions i {
    color: #ffffff;
    /* Contrast on dark */
    font-size: 16px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.bento-profile-hero .profile-actions a:hover i {
    transform: scale(1.15);
    opacity: 1;
    color: #d8b4fe;
}

/* PULSATING ONLINE BEACON */
.beacon-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    top: -2px;
}

.beacon {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #10d482;
    border-radius: 50%;
    position: relative;
}

.beacon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(16, 212, 130, 0.6);
    animation: beaconPulse 1.5s infinite;
}

@keyframes beaconPulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ══════ FLUID DARK MENU ITEMS ══════ */
#sidebar ul.components {
    padding: 10px 0 10px 20px;
    /* Right padding 0 to allow fluid bleed */
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#sidebar ul li {
    padding: 0;
    margin: 0;
    position: relative;
    /* Essential for absolute fluid curves */
}

/* Base Link */
#sidebar ul li a {
    color: #a1a1aa !important;
    padding: 12px 14px !important;
    border-radius: 30px 0 0 30px !important;
    /* Left curved, right flush to connect to body */
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 !important;
}

#sidebar ul li a span {
    flex-grow: 1;
}

/* Soft Icon Structure Re-used */
.icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background-color: transparent !important;
    /* Force transparent for pure minimalist look */
}

.icon-wrap i {
    font-size: 22px;
    transition: color 0.2s ease;
    color: #a1a1aa !important;
    /* Base gray icons */
}

/* Override previously loaded color classes to keep pure minimalist look */
.bg-orange-soft,
.bg-blue-soft,
.bg-green-soft,
.bg-purple-soft {
    background-color: transparent !important;
}

.color-orange,
.color-blue,
.color-green,
.color-purple {
    color: #a1a1aa !important;
}

/* ════ ACTİVE STATE (THE FLUID INVERTED CURVES) ════ */
/* Active Background */
#sidebar ul.components>li.active>a {
    background: #f4f5f7 !important;
    /* Exact match to body background */
    color: #1e1e1e !important;
}

/* Active Icon Color */
#sidebar ul.components>li.active>a .icon-wrap i {
    color: #1e1e1e !important;
}

/* Top Inverted Curve via CSS Box-Shadow */
#sidebar ul.components>li.active>a::before {
    content: "";
    position: absolute;
    top: -30px;
    right: 0;
    height: 30px;
    width: 30px;
    background: transparent !important;
    border-radius: 50%;
    box-shadow: 15px 15px 0 0 #f4f5f7 !important;
    pointer-events: none;
    z-index: -1;
}

/* Bottom Inverted Curve via CSS Box-Shadow */
#sidebar ul.components>li.active>a::after {
    content: "";
    position: absolute;
    bottom: -30px;
    right: 0;
    height: 30px;
    width: 30px;
    background: transparent !important;
    border-radius: 50%;
    box-shadow: 15px -15px 0 0 #f4f5f7 !important;
    pointer-events: none;
    z-index: -1;
}

/* Hover States for non-active */
#sidebar ul.components>li:not(.active)>a:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

#sidebar ul.components>li:not(.active)>a:hover .icon-wrap i {
    color: #ffffff !important;
}

/* Dropdown Menu Arrow */
.submenu-indicator {
    font-size: 12px !important;
    transition: transform 0.3s ease !important;
    color: inherit;
}

#sidebar ul li a[aria-expanded="true"] .submenu-indicator {
    transform: rotate(90deg);
}

/* Submenu Styles */
#sidebar ul ul.collapse {
    background: transparent !important;
    margin-bottom: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    /* Connection Line */
    margin-left: 36px;
    /* Align deeply into the menu */
    padding-left: 0;
}

#sidebar ul ul.collapse a {
    padding: 8px 10px 8px 16px !important;
    font-size: 14px;
    color: #a1a1aa !important;
    font-weight: 500;
    position: relative;
    border-radius: 0 10px 10px 0 !important;
}

#sidebar ul ul.collapse a::before {
    content: '';
    position: absolute;
    left: -2px;
    /* Pull into border */
    top: 50%;
    margin-top: -3px;
    width: 12px;
    height: 2px;
    /* Horizontal branching line */
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

#sidebar ul ul.collapse a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding-left: 20px !important;
    /* Slight animation */
    transform: none;
}

#sidebar ul ul.collapse a:hover::before {
    background: #ffffff;
    width: 16px;
}

/* BENTO TOPBAR (FIXED AND FLUSH) */
.topbar {
    background: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    border-bottom: none !important;
    margin: 0 !important;
    border-radius: 0 0 20px 20px !important;
    position: fixed !important;
    top: 0 !important;
    right: 30px !important;
    left: 310px !important;
    width: calc(100% - 340px) !important;
    z-index: 1000;
    padding: 12px 24px !important;
    height: auto !important;
}

/* User Pill Hover */
.user-pill {
    transition: all 0.2s ease;
}

.user-pill:hover {
    background: #e9ecef !important;
}

/* Dropdown tweaks */
.topbar .dropdown-menu .dropdown-item:hover {
    background-color: #f4f5f7;
}

/* MAIN CONTENT OVERRIDES (Merge/override) */
#content {
    padding-top: 100px !important;
    padding-left: 310px !important;
    /* Sidebar 280px + Spacing 30px */
}

/* When sidebar collapses (If toggle exists) */
#sidebar.active {
    margin-left: -320px !important;
}

#sidebar.active~#content {
    padding-left: 24px !important;
}

/* BENTO FOOTER (FIXED FULL WIDTH) */
.bento-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 310px !important;
    right: 30px !important;
    width: calc(100% - 340px) !important;
    background: #ffffff !important;
    padding: 16px 24px !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03) !important;
    z-index: 1005 !important;
    /* Above sidebar */
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.02) !important;
    display: flex;
    flex-direction: column;
    /* Changed from row to column so they stack stack cleanly */
    justify-content: center;
    align-items: center;
    gap: 4px;
    /* Slight gap between the two stacked texts */
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
}

/* SHINE ANIMATION FOR STUDIO TEXT */
.shine-text {
    background: linear-gradient(120deg, #222 30%, #ffba38 40%, #ffba38 45%, #222 55%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s infinite linear;
    font-weight: 800;
    display: inline-block;
}

@keyframes shine {
    to {
        background-position: -200% center;
    }
}

@media (max-width: 1024px) {
    .bento-footer {
        left: 24px;
    }
}



/* BENTO CARD DEFAULTS */
.card {
    border-radius: 28px !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    padding: 4px;
    overflow: hidden;
    position: relative;
}

.bento-white:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ═══════ HELPERS & UTILITIES ═══════ */
.cursor-pointer {
    cursor: pointer !important;
}

.fs-10 {
    font-size: 10px !important;
}

.fs-11 {
    font-size: 11px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-14 {
    font-size: 14px !important;
}

.fs-16 {
    font-size: 16px !important;
}

.fs-18 {
    font-size: 18px !important;
}

.fs-28 {
    font-size: 28px !important;
}

.rad-8 {
    border-radius: 8px !important;
}

.rad-10 {
    border-radius: 10px !important;
}

.rad-12 {
    border-radius: 12px !important;
}

.rad-18 {
    border-radius: 18px !important;
}

.gap-10 {
    gap: 10px !important;
}

.letter-sp-05 {
    letter-spacing: 0.5px !important;
}

.icon-box-46 {
    width: 46px;
    height: 46px;
}

.bento-error-box {
    border-radius: 18px;
    background: rgba(244, 63, 94, 0.03);
    border: 2px solid rgba(244, 63, 94, 0.2) !important;
}

.bento-chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.badge-isleniyor {
    background: #ffa502;
    color: #fff;
}

.px-y-6-10 {
    padding: 6px 10px !important;
}

.bento-shadow {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02) !important;
}

.card-header {
    border-radius: 28px 28px 0 0 !important;
    background: transparent !important;
    padding: 24px 24px 10px 24px !important;
    border-bottom: none !important;
}

.card-header .card-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #111 !important;
    text-transform: none !important;
    letter-spacing: 0;
}

/* BENTO SOLID COLORS */
.bento-card {
    padding: 24px;
    position: relative;
    border-radius: 28px !important;
    margin-bottom: 24px;
    transition: transform 0.2s;
}

.bento-card:hover {
    transform: translateY(-4px);
}

.bento-yellow {
    background-color: #ffba38 !important;
    color: #111 !important;
    border: none !important;
}

.bento-purple {
    background-color: #8061d9 !important;
    color: #fff !important;
    border: none !important;
}

.bento-dark {
    background-color: #222222 !important;
    color: #fff !important;
    border: none !important;
}

.bento-blue {
    background-color: #e5f0ff !important;
    color: #387ef2 !important;
    border: none !important;
}

.bento-white {
    background-color: #ffffff !important;
    color: #222222 !important;
    border: none !important;
}

/* BENTO COMPONENTS */
.bento-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.bento-pill-light {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.bento-pill-dark {
    background: rgba(0, 0, 0, 0.1);
    color: #111;
}

.bento-pill-blue {
    background: rgba(56, 126, 242, 0.1);
    color: #387ef2;
}

.bento-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    display: block;
    color: inherit;
}

.bento-val {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 4px;
    line-height: 1;
    color: inherit;
}

.bento-desc {
    font-size: 13px;
    opacity: 0.75;
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.bento-link {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

.bento-yellow .bento-link {
    border-color: rgba(0, 0, 0, 0.15);
}

.bento-purple .bento-link,
.bento-dark .bento-link {
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
}

.bento-purple .bento-link:hover,
.bento-dark .bento-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bento-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -10px;
    width: 140px;
    height: 140px;
    opacity: 0.08;
    color: inherit;
    transform: rotate(-15deg);
}

.table-bento {
    border-radius: 20px;
    border: none !important;
}

.table-bento thead tr th {
    padding: 20px 24px !important;
    border-bottom: 1px solid #f0f0f0;
    background: #fff !important;
}

.table-bento tbody td {
    padding: 18px 24px;
    border-bottom: 1px solid #f8f8f8;
}

/* Bloggr Table Pattern */
.table-bloggr {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.table-bloggr thead th {
    border: none !important;
    padding: 16px 20px !important;
    font-weight: 700;
    opacity: 0.5;
    font-size: 12px;
    text-transform: uppercase;
}

.table-bloggr tbody tr td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    padding: 18px 20px !important;
    vertical-align: middle;
    color: #333;
}

.table-bloggr tbody tr:last-child td {
    border-bottom: none !important;
}

.table-bloggr tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.015) !important;
}

/* DataTables Bloggr Overrides */
.dataTables_wrapper {
    padding-top: 8px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: rgba(0, 0, 0, 0.5) !important;
    font-size: 13px !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 6px 16px !important;
    outline: none !important;
    box-shadow: none !important;
    margin-left: 8px;
    background: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
    background: #fff !important;
    margin: 0 4px !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
    color: #007bff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
    background: #f8f9fa !important;
    color: #007bff !important;
    border-color: #e9ecef !important;
}

/* ══════ BENTO BUTTON ADDITIONS ══════ */
.bento-btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3) !important;
    font-weight: 600;
}

.bento-btn-warning:hover {
    background-color: #e0a800 !important;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4) !important;
}

.bento-btn-outline-light {
    background-color: #fff !important;
    border: 1px solid #e9ecef !important;
    color: #111 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    font-weight: 600;
}

.bento-btn-outline-light:hover {
    background-color: #f8f9fa !important;
    border-color: #ddd !important;
}

/* ══════ BENTO MODAL & PREVIEW CLASSES (CLEANUP INLINE CSS) ══════ */
.bento-preview-img-hidden {
    max-height: 150px;
    display: none;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 5px;
}

.bento-preview-img-visible {
    max-height: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 5px;
    display: inline-block;
}

.bento-preview-img-edit-hidden {
    max-height: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 5px;
    display: none;
}

/* ══════ BENTO DATATABLES FILTERS & SELECT2 OVERRIDES ══════ */
.dataTables_wrapper select,
.dataTables_wrapper input[type="text"],
.dataTables_wrapper input[type="search"],
.filtering select,
.filtering input {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    background-color: #fff !important;
    color: #333 !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.dataTables_wrapper select,
.filtering select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23777" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}

.dataTables_wrapper select:focus,
.dataTables_wrapper input[type="text"]:focus,
.dataTables_wrapper input[type="search"]:focus,
.filtering select:focus,
.filtering input:focus {
    border-color: #007bff !important;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15) !important;
}

.select2-container--default .select2-selection--single {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    height: 48px !important;
    padding: 10px 18px !important;
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #007bff !important;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

.select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    border-top: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 8px 12px !important;
}

.bento-back-btn {
    background-color: #fff !important;
    color: #495057 !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.bento-back-btn:hover {
    background-color: #f8f9fa !important;
    color: #007bff !important;
    border-color: #ddd !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
}

.bento-modal-img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.bento-login-container {
    min-height: 100vh;
}

.bento-brand-glow {
    max-width: 200px;
}

.bento-header-title-icon {
    color: #3498db;
}

/* ========================================
   REMOTE CONFIG — iOS Toggle Switch
   ======================================== */
.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: #34c759;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(18px);
}

.toggle-switch.danger input:checked+.toggle-slider {
    background: #ff3b30;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    user-select: none;
}

.toggle-label.active {
    color: #34c759;
}

.toggle-label.inactive {
    color: #999;
}

.toggle-label.danger-active {
    color: #ff3b30;
}

/* ========================================
   BENTO UI — SweetAlert2 Premium Override
   ======================================== */
.swal2-popup.bento-swal-popup {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 2rem 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.swal2-popup.bento-swal-popup .swal2-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.swal2-popup.bento-swal-popup .swal2-html-container,
.swal2-popup.bento-swal-popup .swal2-content {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.swal2-popup.bento-swal-popup .swal2-confirm {
    border-radius: 12px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
    border: none;
    transition: all 0.2s ease;
}

.swal2-popup.bento-swal-popup .swal2-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.4);
}

.swal2-popup.bento-swal-popup .swal2-icon {
    border-width: 3px;
    margin: 1rem auto;
}

.swal2-popup.bento-swal-popup .swal2-icon.swal2-success {
    border-color: #34c759;
    color: #34c759;
}

.swal2-popup.bento-swal-popup .swal2-icon.swal2-success .swal2-success-line-long,
.swal2-popup.bento-swal-popup .swal2-icon.swal2-success .swal2-success-line-tip {
    background-color: #34c759;
}

.swal2-popup.bento-swal-popup .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(52, 199, 89, 0.3);
}

.swal2-popup.bento-swal-popup .swal2-icon.swal2-warning {
    border-color: #ff9500;
    color: #ff9500;
}

.swal2-popup.bento-swal-popup .swal2-icon.swal2-info {
    border-color: #5ac8fa;
    color: #5ac8fa;
}

/* ========================================
   MESSAGING HUB — Provider & Log Styles
   ======================================== */
.mt-20 {
    margin-top: 20px;
}

.alert-time {
    font-size: 11px;
}

.provider-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sms {
    background: #e8f4fd;
    color: #2980b9;
}

.badge-whatsapp {
    background: #e8faf0;
    color: #1e8449;
}

.badge-both {
    background: #f3e8fd;
    color: #7d3c98;
}

.status-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.led-connected {
    background: #27ae60;
    box-shadow: 0 0 6px rgba(39, 174, 96, 0.4);
}

.led-error {
    background: #e74c3c;
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.4);
}

.led-unconfigured {
    background: #f39c12;
    box-shadow: 0 0 6px rgba(243, 156, 18, 0.4);
}

.provider-primary-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.balance-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.balance-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
}

.badge-sent {
    background: #e8faf0;
    color: #27ae60;
}

.badge-delivered {
    background: #e8f4fd;
    color: #3498db;
}

.badge-failed {
    background: #fde8e8;
    color: #e74c3c;
}

.badge-pending {
    background: #fef9e7;
    color: #d4ac0d;
}

.provider-actions .btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 12px;
    margin-right: 4px;
}

.alert-card {
    background: #fff;
    border: 1px solid #fde8e8;
    border-left: 4px solid #e74c3c;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    color: #c0392b;
    font-size: 13px;
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.05);
}

.provider-id {
    font-size: 11px;
    opacity: 0.5;
}

.provider-title {
    margin: 0 0 8px;
    font-weight: 800;
    font-size: 20px;
}

.provider-status {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
}

.provider-msg {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.5;
}

.provider-balance {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
    opacity: 0.8;
}

.empty-icon {
    font-size: 48px;
    opacity: 0.3;
}

.empty-state {
    padding: 40px;
    color: #888;
}

.log-msg-col {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-empty {
    padding: 30px;
    opacity: 0.5;
}

/* BENTO MODAL UI */
.bento-modal {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    background: #fff;
}

.bento-modal .modal-header {
    border-bottom: 1px solid #f1f2f6;
    padding: 24px 32px 16px;
    background: #fff;
}

.bento-modal .modal-title {
    font-weight: 800;
    color: #2c3e50;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bento-modal .close {
    color: #888;
    font-size: 28px;
    font-weight: 300;
    opacity: 0.5;
    text-shadow: none;
}

.bento-modal .close:hover {
    opacity: 1;
    color: #e74c3c;
}

.bento-modal .modal-body {
    padding: 24px 32px;
}

.bento-modal .modal-footer {
    border-top: 1px solid #f1f2f6;
    padding: 16px 32px 24px;
    background: #fcfcfc;
}

.bento-modal .form-group label {
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.bento-modal .form-control {
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    padding: 12px 16px;
    height: auto;
    font-size: 14px;
    background: #fcfcfc;
    transition: all 0.3s ease;
    box-shadow: none;
}

.bento-modal .form-control:focus {
    background: #fff;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.bento-modal .btn {
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s;
}

.bento-modal .btn-secondary {
    background: #ecf0f1;
    border: none;
    color: #7f8c8d;
}

.bento-modal .btn-secondary:hover {
    background: #e0e6ed;
    color: #2c3e50;
}

.bento-modal .btn-primary {
    background: #3498db;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.bento-modal .btn-primary:hover {
    background: #2980b9;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

/* Messaging page title icon */
.messaging-title-icon {
    color: #3498db;
}

/* Privacy Policy standalone page */
.privacy-page {
    font-family: Arial, sans-serif;
    margin: 20px;
    line-height: 1.6;
}

.privacy-page h1,
.privacy-page h2 {
    color: #333;
}

.privacy-page p {
    margin: 10px 0;
}

/* Balance bar modifiers */
.balance-bar-dark {
    background: rgba(0, 0, 0, 0.1);
}

/* ========================================
   PJAX Navigation — Loading Bar
   ======================================== */
#pjax-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #3498db);
    background-size: 200% 100%;
    z-index: 99999;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#pjax-loading-bar.pjax-loading-active {
    width: 80%;
    opacity: 1;
    animation: pjax-shimmer 1.5s infinite linear;
}

#pjax-loading-bar.pjax-loading-done {
    width: 100%;
    opacity: 0;
}

@keyframes pjax-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.midde_cont {
    transition: opacity 0.15s ease;
}

/* ========================================
   SIDEBAR ENHANCEMENTS — Preserving Dark Fluid Pattern
   ======================================== */

/* --- Active submenu item indicator --- */
#sidebar ul ul.collapse li.active>a,
#sidebar ul ul.collapse a[class*='active'],
#sidebar ul ul.collapse li>a.active-sub {
    color: #ffffff !important;
    background: rgba(168, 85, 247, 0.15) !important;
    font-weight: 700;
}

#sidebar ul ul.collapse li.active>a::before,
#sidebar ul ul.collapse a.active-sub::before {
    background: #a855f7 !important;
    width: 16px;
    height: 3px;
    border-radius: 2px;
}

/* --- Active parent icon gets accent color --- */
#sidebar ul li.active>a .icon-wrap i {
    color: #7c3aed !important;
}

/* --- Hover glow on icon wrap --- */
#sidebar ul li:not(.active)>a:hover .icon-wrap {
    background: rgba(168, 85, 247, 0.08) !important;
    border-radius: 12px;
}

/* --- Submenu expand/collapse smooth --- */
#sidebar ul ul.collapse {
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

#sidebar ul ul.collapse.show {
    opacity: 1;
}

/* --- Submenu hover: smooth slide + purple accent --- */
#sidebar ul ul.collapse a:hover {
    padding-left: 22px !important;
}

#sidebar ul ul.collapse a:hover::before {
    background: #a855f7 !important;
    width: 16px;
}

/* --- Active parent text glow --- */
#sidebar ul li.active>a span {
    font-weight: 800;
    letter-spacing: 0.3px;
}

/* --- Brand logo hover pulse --- */
.brand-logo-area:hover .brand-text {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    transition: text-shadow 0.3s ease;
}

/* --- Profile actions: hover purple glow ring --- */
.bento-profile-hero .profile-actions a:hover {
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

/* --- Scrollbar: show on hover, purple thumb --- */
#sidebar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(168, 85, 247, 0.25);
}

/* --- Sidebar bottom fade gradient (scroll hint) --- */
#sidebar::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 280px;
    height: 40px;
    background: linear-gradient(to top, #1e1e1e, transparent);
    pointer-events: none;
    z-index: 1002;
}

/* --- Menu section divider line (subtle) --- */
#sidebar ul.components>li:first-child {
    margin-top: 4px;
}

/* --- Submenu connection line: animate on open --- */
#sidebar ul ul.collapse.show {
    border-left-color: rgba(168, 85, 247, 0.2);
}

/* --- Active item ripple ring (subtle) --- */
#sidebar ul.components>li.active>a .icon-wrap::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}
/* ========================================
   SIDEBAR BUG FIXES — Curve & Dot Cleanup
   ======================================== */

/* Fix: Beyaz kavis artıkları — kavislerin arka planını sidebar bg ile eşle */
#sidebar ul.components > li.active > a::before,
#sidebar ul.components > li.active > a::after {
    background-color: #1e1e1e !important;
}

/* Fix: Alt menü padding — metni sağa kaydır, bağlantı çizgisine yaklaşmasın */
#sidebar ul ul.collapse li > a {
    padding-left: 20px !important;
}

/* Fix: Alt menülere sızan hover/active efektlerini temizle */
#sidebar ul ul.collapse li > a::after {
    display: none !important;
}
