/* Sidebar: dashboard uslubida - ikonkalar quti ichida, faol bo'lim to'liq rangli */
#nav-sidebar-inner { background: #fff; }
html.dark #nav-sidebar-inner { background: var(--color-base-900); }

#nav-sidebar-apps h2 {
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--color-base-400); margin-top: 10px;
}
#nav-sidebar-apps ol { gap: 4px; }
#nav-sidebar-apps ol a {
    height: 44px; border-radius: 12px; font-weight: 500; color: var(--color-base-600);
    transition: background .15s, color .15s, box-shadow .15s;
}
#nav-sidebar-apps ol a .material-symbols-outlined {
    width: 32px; height: 32px; margin-right: 12px; border-radius: 10px; display: grid; place-items: center;
    font-size: 19px; background: var(--color-base-100); color: var(--color-base-500); flex: none;
    transition: background .15s, color .15s;
}
#nav-sidebar-apps ol a:hover { background: var(--color-primary-50); color: var(--color-primary-700) !important; }
#nav-sidebar-apps ol a:hover .material-symbols-outlined { background: #fff; color: var(--color-primary-600); }
#nav-sidebar-apps ol a.active {
    background: var(--color-primary-600) !important; color: #fff !important; font-weight: 600;
    box-shadow: 0 8px 20px -6px rgb(79 70 229 / .55);
}
#nav-sidebar-apps ol a.active .material-symbols-outlined { background: rgb(255 255 255 / .18); color: #fff; }

html.dark #nav-sidebar-apps ol a { color: var(--color-base-300); }
html.dark #nav-sidebar-apps ol a .material-symbols-outlined { background: var(--color-base-800); color: var(--color-base-400); }
html.dark #nav-sidebar-apps ol a:hover { background: rgb(99 102 241 / .12); color: var(--color-primary-300) !important; }
html.dark #nav-sidebar-apps ol a:hover .material-symbols-outlined { background: rgb(99 102 241 / .2); color: var(--color-primary-300); }

/* E'lon: chapda forma, o'ngda Telegram ko'rinishi (yopishib turadi) */
.bc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 1100px) { .bc-layout { grid-template-columns: 1fr; } }
.bc-aside .bc-phone { width: 100%; }
.bc-main { min-width: 0; }
.bc-aside { position: sticky; top: 84px; }
.bc-phone { background: #0e1621; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px -12px rgb(15 23 42 / .35);
            border: 6px solid #1c2733; }
.bc-phone-head { display: flex; gap: 12px; align-items: center; padding: 12px 18px; background: #17212b; color: #fff; }
.bc-phone-head b { display: block; font-size: 16px; } .bc-phone-head small { color: #6c7883; font-size: 12px; }
.bc-ava { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #0ea5e9);
          display: grid; place-items: center; }
.bc-chat { padding: 18px 16px 20px; min-height: 420px; max-height: calc(100vh - 170px); overflow-y: auto;
           background: #0e1621 radial-gradient(circle at 20% 20%, rgb(99 102 241 / .08), transparent 40%); }
.bc-msg { background: #182533; color: #fff; border-radius: 16px 16px 16px 4px; padding: 12px 16px; font-size: 16px;
          line-height: 1.45; word-break: break-word; }
.bc-msg a { color: #6ab3f3; } .bc-msg blockquote { border-left: 3px solid #6ab3f3; padding-left: 8px; margin: 4px 0; }
.bc-msg pre, .bc-msg code { background: #0e1621; border-radius: 6px; padding: 1px 4px; }
.bc-msg ul { list-style: disc; padding-left: 18px; } .bc-msg ol { list-style: decimal; padding-left: 18px; }
.bc-msg h1, .bc-msg h2, .bc-msg h3, .bc-msg h4 { font-weight: 700; }
.bc-empty { color: #6c7883; }
.bc-kb { margin-top: 6px; display: grid; gap: 6px; }
.bc-kb-row { display: flex; gap: 6px; }
.bc-kb-btn { flex: 1; min-width: 0; background: rgb(43 82 120 / .85); color: #fff; text-align: center; border-radius: 10px;
             padding: 12px 8px; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-hint { text-align: center; font-size: 12px; color: var(--color-base-500); margin-top: 8px; }

/* tugmalar konstruktori - ixcham kartochkalar */
.bc-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; padding: 8px; margin-bottom: 6px;
          border: 1px dashed var(--color-base-300); border-radius: 10px; }
.bc-row-n { font-size: 11px; color: var(--color-base-500); width: 100%; }
.bc-btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; background: var(--color-base-50);
          border: 1px solid var(--color-base-200); border-radius: 8px; padding: 6px; flex: 1 1 150px; min-width: 0; }
.bc-btn > input, .bc-btn > select:not(.bc-type), .bc-btn > .bc-note { grid-column: 1 / -1; }
.bc-btn input, .bc-btn select { min-width: 0; width: 100%; border: 1px solid var(--color-base-200); border-radius: 6px;
                                padding: 4px 6px; font-size: 12px; background: #fff; }
.bc-btn input.bad { border-color: #f43f5e; }
.bc-note { font-size: 11px; color: var(--color-base-500); padding: 2px; }
.bc-x { color: var(--color-base-400); padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.bc-x:hover { color: #e11d48; background: #ffe4e6; }
.bc-add { font-size: 12px; font-weight: 500; color: var(--color-primary-600); border: 1px dashed var(--color-primary-300);
          border-radius: 8px; padding: 4px 10px; background: var(--color-primary-50); }
.bc-add:hover { background: var(--color-primary-100); }
.bc-row > .bc-add { flex: 0 0 auto; align-self: center; }
.bc-add-row { width: 100%; padding: 6px; }
html.dark .bc-btn { background: var(--color-base-800); border-color: var(--color-base-700); }
html.dark .bc-btn input, html.dark .bc-btn select { background: var(--color-base-900); border-color: var(--color-base-700); color: #fff; }
html.dark .bc-add { background: rgb(99 102 241 / .12); }

/* Telegram Desktop ko'rinishi: chapda xira chatlar ro'yxati, o'ngda e'lon */
.tg-window { display: grid; grid-template-columns: 34% minmax(0, 1fr); height: calc(100vh - 150px); min-height: 520px;
             border-radius: 14px; overflow: hidden; background: #0e1621; box-shadow: 0 20px 40px -12px rgb(15 23 42 / .35);
             border: 1px solid #1f2b38; }
.tg-list { background: #17212b; border-right: 1px solid #0e1621; overflow: hidden; }
.tg-search { margin: 10px; padding: 7px 12px; border-radius: 18px; background: #242f3d; color: #6c7883; font-size: 13px; }
.tg-chat { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; }
.tg-chat small { color: #6c7883; font-size: 11px; align-self: start; }
.tg-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.tg-bot { background: linear-gradient(135deg, #6366f1, #0ea5e9); }
.tg-lines { min-width: 0; }
.tg-lines b, .tg-lines i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-lines b { color: #fff; font-size: 13px; }
.tg-lines i { color: #7f91a4; font-size: 12px; font-style: normal; }
.tg-active { background: #2b5278; }
.tg-active small, .tg-active i { color: #b8d3ec; }
.tg-blur { filter: blur(3px); opacity: .55; user-select: none; pointer-events: none; }
.tg-main { display: flex; flex-direction: column; min-width: 0; }
.tg-head { padding: 10px 18px; background: #17212b; color: #fff; border-bottom: 1px solid #0e1621; }
.tg-head b { display: block; font-size: 15px; }
.tg-head small { color: #6c7883; font-size: 12px; }
.tg-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; justify-content: flex-end;
           background: #0e1621 radial-gradient(circle at 30% 20%, rgb(99 102 241 / .07), transparent 45%); }
.tg-bubble-wrap { max-width: 85%; }
.tg-window .bc-msg { position: relative; border-radius: 14px 14px 14px 4px; font-size: 14.5px; padding: 9px 14px 22px; }
.tg-time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #6d8aa5; }
.tg-window .bc-kb-btn { font-size: 14px; padding: 10px 8px; }
@media (max-width: 1500px) { .tg-window { grid-template-columns: minmax(0, 1fr); } .tg-list { display: none; } }
.bc-kb-empty { opacity: .45; font-style: italic; }
/* yuborilgan e'lon: Telegram'dagi ko'rinishi */
.bc-sent { max-width: 560px; padding: 16px; border-radius: 14px; background: #0e1621; margin-bottom: 10px; }
.bc-sent-lang { font-size: 11px; color: #6c7883; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
