/* ── Global Confirm Dialog ─────────────────────────────────────── */
.nir-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.nir-confirm-overlay.active { display: flex; }

.nir-confirm-box {
    background: #0f172a;
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.04);
    text-align: center;
    animation: nirConfirmIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
@keyframes nirConfirmIn {
    from { transform: scale(0.88) translateY(12px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.nir-confirm-icon {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(239,68,68,0.12);
    border: 1.5px solid rgba(239,68,68,0.28);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.6rem;
    color: #ef4444;
    box-shadow: 0 0 24px rgba(239,68,68,0.15);
}

.nir-confirm-title {
    color: #f1f5f9;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.nir-confirm-msg {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0 0 26px;
}

.nir-confirm-actions { display: flex; gap: 10px; justify-content: center; }
.nir-confirm-btn {
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.16s ease;
    min-width: 110px;
    letter-spacing: 0.01em;
}
.nir-confirm-cancel {
    background: rgba(148,163,184,0.08);
    border-color: rgba(148,163,184,0.2);
    color: #94a3b8;
}
.nir-confirm-cancel:hover {
    background: rgba(148,163,184,0.15);
    border-color: rgba(148,163,184,0.35);
    color: #e2e8f0;
}
.nir-confirm-ok {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(239,68,68,0.35);
}
.nir-confirm-ok:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 6px 20px rgba(239,68,68,0.45);
    transform: translateY(-1px);
}
.nir-confirm-ok:active { transform: translateY(0); }

.image-preview {
    background-image: var(--preview-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

body.sidebar-collapsed .main-sidebar {
    width: 0;
    overflow: hidden;
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

.image-preview label,
#callback-preview label {
    top: 200px;
    opacity: 1;
    background-color: #fb8a5f;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    width: auto;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {

    color: #fff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 12px;
}

@media screen and (max-width:767.98px) {
    .section {
        margin-top: 0px !important;
    }
}

/* Sidebar dropdown fix */
#sidebar-wrapper .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100%;
    padding-left: 15px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Smooth collapse animation */
#sidebar-wrapper .collapse {
    transition: height 0.3s ease;
}

/* When open */
#sidebar-wrapper .collapse.show {
    height: auto !important;
}

/* Submenu link style */
#sidebar-wrapper .dropdown-menu .nav-link {
    font-size: 14px;
    padding: 8px 15px;
    color: #606060;
}

#sidebar-wrapper .dropdown-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}



/* Card */
.adm-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
    margin-bottom: 24px;
}
.adm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.adm-card-header-icon {
    width: 36px; height: 36px;
    background: rgba(98,91,246,.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
}
.adm-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #191d21;
    margin: 0;
    flex: 1;
}
.adm-card-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}
.adm-card-header-meta {
    font-size: 12px;
    color: #98a6ad;
}
.adm-card-body {
    padding: 20px;
}
.adm-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* Buttons */
.adm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.adm-btn:hover { text-decoration: none; filter: brightness(.92); }
.adm-btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.adm-btn-secondary{ background: #6c757d; color: #fff; border-color: #6c757d; }
.adm-btn-danger   { background: #fc544b; color: #fff; border-color: #fc544b; }

/* Icon buttons */
.adm-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    text-decoration: none;
}
.adm-btn-icon:hover { filter: brightness(.88); text-decoration: none; }
.adm-btn-icon-primary { background: rgba(98,91,246,.12); color: var(--primary); }
.adm-btn-icon-cyan    { background: rgba(58,186,244,.12); color: #3abaf4; }
.adm-btn-icon-danger  { background: rgba(252,84,75,.12);  color: #fc544b; }
.adm-action-btns { display: flex; gap: 6px; align-items: center; }

/* Badges */
.adm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
}
.adm-badge-green { background: rgba(71,195,99,.12); color: #2e9e52; }
.adm-badge-red   { background: rgba(252,84,75,.12); color: #d63b33; }
.adm-badge-cyan  { background: rgba(58,186,244,.12); color: #1e90c2; }

/* Table */
.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.adm-table thead th {
    background: #f8f9fa;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.adm-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #3d4552;
    vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: #fafbff; }
.adm-table-name { font-weight: 500; color: #191d21; }
.adm-table-img  { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }
.adm-code {
    background: #f0f1f8;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

/* Empty state */
.adm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #b0b8c1;
}
.adm-empty-state i { font-size: 36px; margin-bottom: 10px; opacity: .5; }
.adm-empty-state p { margin: 0; font-size: 14px; }
.adm-empty-state-full { min-height: 200px; }

/* Forms */
.adm-form-group { margin-bottom: 16px; }
.adm-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #3d4552;
    margin-bottom: 6px;
}
.adm-required { color: #fc544b; margin-left: 2px; }
.adm-input, .adm-textarea, .adm-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 13.5px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #3d4552;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.adm-input:focus, .adm-textarea:focus, .adm-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(98,91,246,.12);
}
.adm-textarea { resize: vertical; min-height: 100px; }
.adm-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236c757d' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; cursor: pointer; }
.adm-select-sm { padding: 5px 28px 5px 10px; font-size: 12.5px; }
.adm-input-group { display: flex; gap: 0; }
.adm-input-group .adm-input { border-radius: 6px 0 0 6px; flex: 1; }
.adm-input-group .adm-ai-btn,
.adm-input-group .adm-iconpicker-btn { border-radius: 0 6px 6px 0; }

/* Search */
.adm-search-form { display: flex; }
.adm-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f6fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 12px;
    min-width: 200px;
}
.adm-search-bar i { color: #98a6ad; font-size: 13px; }
.adm-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #3d4552;
    width: 100%;
}
.adm-search-input::placeholder { color: #b0b8c1; }

/* AI buttons */
.adm-ai-btn {
    padding: 8px 12px;
    background: rgba(98,91,246,.08);
    color: var(--primary);
    border: 1px solid rgba(98,91,246,.2);
    border-left: none;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
    white-space: nowrap;
}
.adm-ai-btn:hover { background: rgba(98,91,246,.15); }
.adm-ai-btn-full {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(98,91,246,.08);
    color: var(--primary);
    border: 1px solid rgba(98,91,246,.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
}
.adm-ai-btn-full:hover { background: rgba(98,91,246,.15); }

/* Icon picker button */
.adm-iconpicker-btn {
    padding: 8px 12px;
    background: #f4f6fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-left: none;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
}
.adm-iconpicker-btn:hover { background: #e9ecef; }

/* Image preview */
.adm-img-preview {
    width: 100%;
    height: 160px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color .2s;
}
.adm-img-preview:hover { border-color: var(--primary); }
.adm-img-preview label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    color: #98a6ad;
    font-size: 13px;
    background: rgba(255,255,255,.85);
}
.adm-img-preview label i { font-size: 24px; color: var(--primary); }
.adm-img-preview input[type=file] { display: none; }

/* Modal */
.adm-modal-content {
    background: #fff;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.adm-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
}
.adm-modal-header-danger { background: rgba(252,84,75,.06); border-bottom-color: rgba(252,84,75,.15); }
.adm-modal-header-cyan   { background: rgba(58,186,244,.06); border-bottom-color: rgba(58,186,244,.15); }
.adm-modal-icon {
    width: 38px; height: 38px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.adm-modal-header-danger .adm-modal-icon { background: rgba(252,84,75,.12); color: #fc544b; }
.adm-modal-header-cyan   .adm-modal-icon { background: rgba(58,186,244,.12); color: #3abaf4; }
.adm-modal-header:not(.adm-modal-header-danger):not(.adm-modal-header-cyan) .adm-modal-icon { background: rgba(98,91,246,.12); color: var(--primary); }
.adm-modal-title { font-size: 15px; font-weight: 600; color: #191d21; margin: 0; flex: 1; }
.adm-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #98a6ad;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
    transition: color .2s, background .2s;
}
.adm-modal-close:hover { background: rgba(0,0,0,.06); color: #3d4552; }
.adm-modal-body { padding: 20px; }
.adm-modal-text { color: #5a6476; font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.adm-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* Section grid */
.adm-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
}
.adm-section-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}
.adm-section-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(98,91,246,.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.adm-section-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(98,91,246,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: var(--primary);
}
.adm-section-name { font-size: 14px; font-weight: 600; color: #191d21; }
.adm-section-meta { font-size: 12px; color: #98a6ad; }
.adm-section-link { display: none; }
.adm-section-info { display: flex; flex-direction: column; gap: 2px; }




textarea { height: 80px !important; }


.nb-lang-select{width:auto}


.mn-lang-select{width:auto}
.mn-icon-input{max-width:150px}
.mn-drop-area{min-height:55px}


.menus_manage ul{border:1px solid #dee2e6;min-height:110px;padding:8px;border-radius:6px;}
.menus_manage ul li{padding:7px 12px;margin-bottom:4px;background:#f8f9fa;border:1px solid #e9ecef;cursor:grab;border-radius:5px;transition:all .15s;}
.menus_manage ul li:hover{background:#e9ecef;}
.menu-drop-area{background:#fafafa!important;}
.sortable-ghost{opacity:.4;background:#c8ebfb!important;}
.sortable-drag{opacity:1;z-index:9999;}
.remove-menu-item{color:#dc3545;cursor:pointer;margin-left:auto;}
.remove-menu-item:hover{color:#b02a37;}
.group-drop-area{background:rgba(99,102,241,.05)!important;border:1px dashed #818cf8!important;}


.pagination .page-item.active .page-link {
            background-color: rgb(95, 116, 235);
            border: none;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: transparent;
            border-color: transparent;
        }

        .pagination .page-item.active .page-link:hover {
            background-color: rgb(95, 116, 235);
        }

        .gap-2 {
            gap: 0.5rem;
        }


.ra-avatar{width:34px;height:34px;font-size:13px;font-weight:700}
.ra-role-select{min-width:160px;height:auto}
.ra-perm-badge{font-size:9px}


.ri-perm-badge{font-size:10px}


.tk-preview-box{min-height:150px}
.tk-upload-label{cursor:pointer}
.tk-thumb{max-width:200px}
.tk-preview-img{max-height:120px}


.an-empty-icon{font-size:2rem;opacity:.3}


.td-nav-card:hover{transform:translateY(-2px)}
.ts-icon-box i{font-size:1.6rem}
.card .card-header .form-control {
            border-radius: 0.375rem;
        }

        .card .card-header .btn:not(.note-btn) {
            border-radius: 0.375rem;
        }


.ud-avatar{width:50px;height:50px}


.ui-search-input{max-width:300px}




/* Filter forms */
.filter-form-wrap { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }

/* Numeric / monospace table cells */
.cell-mono { font-family: monospace; white-space: nowrap; }
.cell-num  { text-align: right; font-family: monospace; white-space: nowrap; }

/* Long-text truncation inside table cells */
.cell-trunc { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Report card header on small screens */
@media (max-width: 767.98px) {
    .card-header.d-flex.flex-wrap { flex-direction: column; align-items: flex-start !important; }
    .rp-search-input { width: 100% !important; }
}

/* Backend tables: cap column min-widths so they don't collapse too narrow */
.table th, .table td { vertical-align: middle; }

/* ============================================================
   CMS / Frontend Builder Utilities
   ============================================================ */

/* Section grid cards — hover lift */
.hover-shadow { transition: box-shadow .2s ease, transform .15s ease; }
.hover-shadow:hover { box-shadow: 0 6px 20px rgba(0,0,0,.18) !important; transform: translateY(-2px); }

/* Section icon circle (replaces inline width/height) */
.cms-section-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Language select — auto width in header bar */
.cms-lang-select { width: auto; max-width: 180px; }

/* Image preview box height */
.img-preview-box { height: 150px; }

/* ============================================================
   Menu Management Board (backend/menu/index)
   ============================================================ */
.mn-panel { border: 1px solid rgba(255,255,255,.07); border-radius: 10px; overflow: hidden; height: 100%; }
.mn-drop-panel { border-color: rgba(99,179,237,.25); }
.mn-panel-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .82rem; font-weight: 600; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06); }
.mn-drop-panel .mn-panel-head { border-bottom-color: rgba(99,179,237,.2); }

.mn-list { min-height: 80px; padding: 8px; }
.mn-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 5px; border-radius: 7px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); font-size: .85rem; cursor: default; transition: background .15s; }
.mn-item:last-child { margin-bottom: 0; }
.mn-drop-area .mn-item { background: rgba(99,179,237,.06); border-color: rgba(99,179,237,.15); }
.mn-handle { cursor: grab; font-size: 1rem; }
.mn-handle:active { cursor: grabbing; }

.mn-remove { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; color: #e85261; font-size: .8rem; padding: 2px 4px; border-radius: 4px; transition: background .15s; cursor: pointer; line-height: 1; }
.mn-remove:hover { background: rgba(232,82,97,.12); }

.sortable-ghost { opacity: .35; }
.sortable-drag { opacity: .9; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.mn-drop-area.drag-over { outline: 2px dashed rgba(99,179,237,.5); outline-offset: 2px; }

.mn-group { border: 1px solid rgba(255,255,255,.08); border-radius: 9px; margin-bottom: 12px; overflow: hidden; }
.mn-group:last-child { margin-bottom: 0; }
.mn-group-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); }
.mn-group-head .form-control { font-size: .82rem; }
.mn-remove-group { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; color: #e85261; font-size: .9rem; padding: 4px; border-radius: 5px; cursor: pointer; }
.mn-remove-group:hover { background: rgba(232,82,97,.12); }

.mn-icon-wrap { position: relative; display: flex; align-items: center; max-width: 130px; flex-shrink: 0; }
.mn-icon-preview { position: absolute; left: 8px; font-size: .95rem; color: var(--primary, #6259ca); pointer-events: none; z-index: 2; }
.mn-icon-input { padding-left: 30px !important; }
.mn-group-drop { min-height: 50px; padding: 6px; }

/* Brand logo thumbnail in element table */
.cms-brand-img { height: 40px; width: auto; object-fit: contain; }

/* Dashboard */
:root {
    --db-blue:   #6d28d9;
    --db-green:  #059669;
    --db-red:    #dc2626;
    --db-amber:  #d97706;
    --db-cyan:   #0891b2;
    --db-violet: #7c3aed;
    --db-pink:   #db2777;
    --db-teal:   #0f766e;
}
.db-kpi { background:#fff; border-radius:14px; padding:22px 24px; display:flex; align-items:center; gap:18px; border:1px solid #f1f5f9; box-shadow:0 1px 4px rgba(0,0,0,.05); transition:box-shadow .2s,transform .2s; height:100%; }
.db-kpi:hover { box-shadow:0 6px 24px rgba(0,0,0,.09); transform:translateY(-2px); }
.db-kpi-icon { width:54px; height:54px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.db-kpi-icon.blue   { background:#ede9fe; color:var(--db-blue); }
.db-kpi-icon.green  { background:#d1fae5; color:var(--db-green); }
.db-kpi-icon.red    { background:#fee2e2; color:var(--db-red); }
.db-kpi-icon.amber  { background:#fef3c7; color:var(--db-amber); }
.db-kpi-icon.cyan   { background:#cffafe; color:var(--db-cyan); }
.db-kpi-icon.violet { background:#ede9fe; color:var(--db-violet); }
.db-kpi-icon.pink   { background:#fce7f3; color:var(--db-pink); }
.db-kpi-icon.teal   { background:#ccfbf1; color:var(--db-teal); }
.db-kpi-label { font-size:12px; color:#94a3b8; font-weight:500; margin-bottom:4px; text-transform:uppercase; letter-spacing:.5px; }
.db-kpi-value { font-size:22px; font-weight:700; color:#1e293b; line-height:1.1; }
.db-kpi-sub   { font-size:11px; color:#94a3b8; margin-top:2px; }
.db-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; padding-bottom:10px; border-bottom:2px solid #f1f5f9; }
.db-section-head h6 { font-size:14px; font-weight:700; color:#1e293b; margin:0; }
.db-today-banner { background:linear-gradient(135deg,#4f46e5 0%,#7c3aed 100%); border-radius:16px; padding:24px 28px; color:#fff; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.db-today-banner h4 { font-size:20px; font-weight:700; margin:0 0 4px; }
.db-today-banner p  { margin:0; opacity:.8; font-size:13px; }
.db-today-stat { text-align:center; }
.db-today-stat-val { font-size:24px; font-weight:800; }
.db-today-stat-lbl { font-size:11px; opacity:.75; text-transform:uppercase; letter-spacing:.5px; }
.db-today-divider { width:1px; height:40px; background:rgba(255,255,255,.25); }
.db-winrate-bar { height:8px; border-radius:99px; background:#f1f5f9; overflow:hidden; }
.db-winrate-fill { height:100%; border-radius:99px; background:linear-gradient(90deg,#10b981,#06b6d4); transition:width 1s ease; }
.db-status-pill { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:99px; font-size:12px; font-weight:600; }
.db-status-pill.on  { background:#d1fae5; color:#065f46; }
.db-status-pill.off { background:#fee2e2; color:#991b1b; }
.db-status-dot { width:7px; height:7px; border-radius:50%; }
.db-status-dot.on  { background:#10b981; box-shadow:0 0 0 2px rgba(16,185,129,.3); animation:pulse-green 1.5s infinite; }
.db-status-dot.off { background:#ef4444; }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 0 2px rgba(16,185,129,.3)} 50%{box-shadow:0 0 0 5px rgba(16,185,129,.1)} }
.db-cron-box { background:#0f172a; border-radius:12px; padding:18px 20px; }
.db-cron-box code { color:#7dd3fc; font-size:13px; }
.db-cron-copy { background:#1e3a5f; color:#7dd3fc; border:none; border-radius:8px; padding:6px 14px; font-size:12px; font-weight:600; cursor:pointer; transition:background .2s; }
.db-cron-copy:hover { background:#1d4ed8; color:#fff; }
.db-table th { font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:#94a3b8; font-weight:600; border-bottom:2px solid #f1f5f9 !important; padding:10px 14px !important; }
.db-table td { font-size:13px; color:#374151; padding:10px 14px !important; vertical-align:middle; border-color:#f8fafc !important; }
.db-table tbody tr:hover td { background:#f8fafc; }
.db-chart-card { background:#fff; border-radius:14px; border:1px solid #f1f5f9; box-shadow:0 1px 4px rgba(0,0,0,.05); }
.db-quick-link { display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:10px; text-decoration:none; color:#374151; font-size:13px; font-weight:500; transition:background .15s,border-color .15s; border:1px solid #f1f5f9; }
.db-quick-link:hover { background:#f5f3ff; color:#6d28d9; border-color:#ede9fe; }
.db-quick-link .icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.db-quick-icon { font-size:20px; color:#7c3aed; flex-shrink:0; }
.db-alert-card { display:block; padding:20px 18px; border-radius:14px; text-decoration:none; text-align:center; transition:opacity .2s,transform .2s; }
.db-alert-card:hover { opacity:.9; transform:translateY(-2px); text-decoration:none; }
.db-alert-card.orange { background:linear-gradient(135deg,#f97316,#fb923c); color:#fff; }
.db-alert-card.red    { background:linear-gradient(135deg,#dc2626,#f87171); color:#fff; }
.db-alert-card.blue   { background:linear-gradient(135deg,#2563eb,#60a5fa); color:#fff; }
.db-alert-card.purple { background:linear-gradient(135deg,#7c3aed,#a78bfa); color:#fff; }
.db-alert-num { font-size:32px; font-weight:800; line-height:1; }
.db-alert-lbl { font-size:12px; font-weight:600; opacity:.85; margin-top:4px; text-transform:uppercase; letter-spacing:.5px; }
.db-salon-icon { color:#3cd2a5; }
.fw-500 { font-weight:500 !important; }
.fw-600 { font-weight:600 !important; }
.fw-700 { font-weight:700 !important; }
.fw-800 { font-weight:800 !important; }
.fw-900 { font-weight:900 !important; }

/* Addon Manager */
.addon-card { background:#1a2035; border:1px solid rgba(255,255,255,0.07); border-radius:12px; padding:20px 24px; display:flex; align-items:center; gap:18px; transition:border-color .2s; }
.addon-card:hover { border-color:rgba(99,179,237,.25); }
.addon-icon { width:52px; height:52px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.5rem; flex-shrink:0; }
.addon-icon.chatbot    { background:rgba(99,179,237,.12);  color:#63b3ed; }
.addon-icon.default    { background:rgba(100,100,100,.12); color:#aaa; }
.addon-body { flex:1; min-width:0; }
.addon-name { font-size:1rem; font-weight:700; color:#e2e8f0; margin:0 0 2px; }
.addon-desc { font-size:0.8rem; color:#94a3b8; margin:0; }
.addon-meta { font-size:0.72rem; color:#4a5568; margin-top:4px; }
.addon-badge-active   { background:rgba(72,187,120,.15); color:#48bb78; border:1px solid rgba(72,187,120,.3); padding:3px 10px; border-radius:20px; font-size:0.72rem; font-weight:600; }
.addon-badge-inactive { background:rgba(252,129,129,.1);  color:#fc8181; border:1px solid rgba(252,129,129,.25); padding:3px 10px; border-radius:20px; font-size:0.72rem; font-weight:600; }
.upload-zone { border:2px dashed rgba(99,179,237,.3); border-radius:12px; padding:40px 24px; text-align:center; cursor:pointer; transition:border-color .2s,background .2s; }
.upload-zone:hover { border-color:rgba(99,179,237,.6); background:rgba(99,179,237,.04); }
.upload-zone i { font-size:2.5rem; color:rgba(99,179,237,.5); margin-bottom:12px; display:block; }
.upload-zone p { margin:0; color:#94a3b8; font-size:0.85rem; }

/* Email Editor */
.list-group-item:hover { background:#f8f9ff; }


/* General Settings */
.sp-replacer { padding:0; border:1px solid rgba(0,0,0,.125); border-radius:5px 0 0 5px; border-right:none; }
.sp-preview { width:100px; height:46px; border:0; }
.sp-preview-inner { width:110px; }
.sp-dd { display:none; }


/* Addon Manager */

/* Addon Icon Circles */
.addon-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.addon-icon.chatbot    { background: rgba(99,179,237,.15);  color: #63b3ed; }
.addon-icon.default    { background: rgba(160,174,192,.15); color: #a0aec0; }

/* Installed Addon Row */
.addon-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    transition: border-color .2s;
}
.addon-card:hover { border-color: rgba(99,179,237,.25); }
.addon-body       { flex: 1; min-width: 0; }
.addon-name  { font-weight: 600; color: #e2e8f0; font-size: .95rem; margin-bottom: 2px; }
.addon-desc  { color: #94a3b8; font-size: .8rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addon-meta  { color: #64748b; font-size: .75rem; margin: 0; }

/* Status Badges */
.addon-badge-active,
.addon-badge-inactive {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
}
.addon-badge-active   { background: rgba(72,187,120,.15); color: #48bb78; border: 1px solid rgba(72,187,120,.3); }
.addon-badge-inactive { background: rgba(160,174,192,.1);  color: #94a3b8; border: 1px solid rgba(160,174,192,.2); }
.addon-badge-active::before,
.addon-badge-inactive::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.addon-badge-active::before   { background: #48bb78; }
.addon-badge-inactive::before { background: #94a3b8; }

/* ZIP Upload Zone */
.upload-zone {
    border: 2px dashed rgba(99,179,237,.3);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    color: #64748b;
    font-size: .82rem;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: rgba(99,179,237,.7);
    background: rgba(99,179,237,.05);
}
.upload-zone i       { font-size: 2.2rem; color: #63b3ed; margin-bottom: 8px; display: block; }
.upload-zone .fw-600 { color: #cbd5e0; }

/* How-to Info Box */
.how-to-box {
    background: rgba(99,179,237,.06);
    border: 1px solid rgba(99,179,237,.15);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .78rem;
    color: #94a3b8;
}
.how-to-box ol { padding-left: 16px; margin: 6px 0 0; }
.how-to-box li { margin-bottom: 2px; }

/* Quick Install Item */
.quick-install-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.quick-install-item:last-child { border-bottom: none; padding-bottom: 0; }
.quick-item-name { color: #e2e8f0; font-size: .88rem; font-weight: 600; }
.card-header-hint { font-size: .75rem; color: #64748b; margin: 4px 0 0; }

/* Inline Uninstall Confirm Strip */
.addon-confirm-strip {
    min-width: 190px;
    background: rgba(220,53,69,.08);
    border: 1px solid rgba(220,53,69,.3);
    border-radius: 10px;
    padding: 12px 14px;
    flex-shrink: 0;
}
.addon-confirm-inner {
    font-size: .83rem;
    color: #cbd5e0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Sidebar Scroll Fix — sidebar must scroll independently of page content */
.main-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
}
.main-sidebar::-webkit-scrollbar { width: 4px; }
.main-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
.main-sidebar::-webkit-scrollbar-track { background: transparent; }

/* Admin Sidebar Logo */
/* Admin Sidebar Logo */
.main-sidebar .sidebar-brand {
    height: auto;
    line-height: normal;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}
.sidebar-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.sidebar-logo-img {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}
body.sidebar-mini .sidebar-brand-logo {
    justify-content: center;
}
body.sidebar-mini .sidebar-logo-img {
    height: 36px;
}

/* Admin Notification Dropdown */
.noti-dropdown-menu {
    min-width: 340px;
    max-width: 360px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.1);
}
.noti-header {
    background: #f8f9fa;
    font-size: .875rem;
}
.noti-mark-all {
    font-size: .78rem;
    transition: color .2s;
}
.noti-mark-all:hover { color: #0d6efd !important; }
.noti-list {
    max-height: 340px;
    overflow-y: auto;
}
.noti-list::-webkit-scrollbar { width: 4px; }
.noti-list::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 4px; }
.noti-item {
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition: background .15s;
}
.noti-item:last-child { border-bottom: none; }
.noti-item--unread { background: rgba(13,110,253,.05); }
.noti-item--unread:hover { background: rgba(13,110,253,.1); }
.noti-item:not(.noti-item--unread):hover { background: #f8f9fa; }
.noti-link { color: #212529; gap: 0; }
.noti-link:hover { color: #212529; text-decoration: none; }
.noti-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}
.noti-text {
    font-size: .83rem;
    font-weight: 500;
    color: #212529;
    max-width: 220px;
}
.noti-time {
    font-size: .73rem;
    margin-top: 2px;
}
.noti-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d6efd;
    margin-top: 4px;
}
.noti-empty {
    font-size: .85rem;
    padding: 24px 16px;
}

/* ============================================================
   nir- Extracted Inline Styles — backend blade files
   ============================================================ */


/* Stat icon colour variants — background on wrapper, colour inherited by icon */
/* email/edit.blade.php */
.nir-email-sidebar-sticky {
    top: 80px;
}
.nir-var-code {
    font-size: 13px;
}
.nir-var-desc {
    font-size: 12px;
}
.nir-var-info {
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
}


/* email/templates.blade.php */
.nir-email-tpl-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.nir-email-tpl-type {
    font-size: 11px;
}


/* email/config.blade.php */
.nir-email-smtp-fields {
    /* toggled via JS/PHP — display:none handled inline */
}


/* layout/navbar.blade.php */
.nir-notif-empty-icon {
    font-size: 1.5rem;
}


/* language/index.blade.php */
.nir-lang-flag {
    font-size: 1.4rem;
    line-height: 1;
}
.nir-lang-code-badge {
    width: 28px;
    height: 28px;
    font-size: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* frontend/index.blade.php & frontend/sections.blade.php */
.nir-input-group-auto {
    width: auto;
}
.nir-frontend-thumb {
    height: 40px;
    width: auto;
    object-fit: cover;
    border-radius: 4px;
}


/* UTILITY CLASSES */
.gjs-editor-wrap { height: 0px; overflow: hidden; position: relative; }

/* Icon circle backgrounds */
.nir-icon-bg-primary   { background-color: rgba(98,  91,  246, .12) !important; }
.nir-icon-bg-success   { background-color: rgba(71,  195, 99,  .12) !important; }
.nir-icon-bg-info      { background-color: rgba(58,  186, 244, .12) !important; }
.nir-icon-bg-secondary { background-color: rgba(108, 117, 125, .12) !important; }
.nir-icon-bg-warning   { background-color: rgba(255, 164, 38,  .12) !important; }
.nir-icon-bg-danger    { background-color: rgba(252, 84,  75,  .12) !important; }
.nir-icon-primary      { color: var(--primary)  !important; }
.nir-icon-success      { color: #47c363         !important; }
.nir-icon-info         { color: #3abaf4         !important; }
.nir-icon-secondary    { color: #6c757d         !important; }
.nir-icon-warning      { color: #ffa426         !important; }
.nir-icon-danger       { color: #fc544b         !important; }

/* General Settings image uploader cards */
.gs-img-uploader { cursor: pointer; }
.gs-img-preview {
    width: 100%; height: 130px;
    background-image: var(--preview-bg);
    background-color: #f1f5f9; background-size: contain;
    background-repeat: no-repeat; background-position: center;
    border: 2px dashed #cbd5e1; border-radius: 10px;
    position: relative; overflow: hidden; transition: border-color .2s;
}
.gs-img-uploader:hover .gs-img-preview { border-color: var(--primary, #6777ee); }
.gs-img-uploader-sm .gs-img-preview { height: 90px; }
.gs-img-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); color: #fff; opacity: 0;
    transition: opacity .2s; font-size: .82rem; gap: 4px;
}
.gs-img-overlay iconify-icon { font-size: 1.4rem; }
.gs-img-uploader:hover .gs-img-overlay { opacity: 1; }
.gs-file-input { display: none; }

/* badge soft colors */
.bg-primary-soft { background: rgba(103,119,238,.1); }
.bg-warning-soft { background: rgba(255,164,38,.1); }
.bg-success-soft { background: rgba(71,195,99,.1); }

/* toggle cards */
.gs-toggle-card {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 14px 16px;
}
.gs-toggle-label { font-weight: 600; font-size: .88rem; color: #374151; margin-bottom: 4px; }

/* Global Settings tabs */
.gs-tabs { border-bottom: 2px solid #e2e8f0; gap: 4px; flex-wrap: wrap; }
.gs-tabs .nav-link {
    color: #6b7280; border: none; border-bottom: 2px solid transparent;
    margin-bottom: -2px; padding: 10px 16px; font-weight: 600;
    font-size: .88rem; display: flex; align-items: center; gap: 5px;
    transition: color .15s, border-color .15s;
}
.gs-tabs .nav-link:hover { color: var(--primary, #6777ee); border-bottom-color: var(--primary, #6777ee); }
.gs-tabs .nav-link.active { color: var(--primary, #6777ee); border-bottom-color: var(--primary, #6777ee); background: transparent; }

/* card header with icon */
.gs-card-header {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 20px; font-size: .9rem;
    background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.gs-card-header iconify-icon { font-size: 1.15rem; }

/* preview sm */
.gs-img-preview-sm { height: 80px !important; }
