/* Telegram UI Styles */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Gorizontal scroll’ni olib tashlash */
}

.bg-light {
    overflow-y: auto; /* Vertikal scroll faqat kerak bo‘lganda paydo bo‘ladi */
}

body {
    background-color: #F0F2F5; /* Telegram’ning asosiy fon rangi */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.navbar {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
}

.navbar-brand {
    color: #0088CC !important; /* Telegram’ning ko‘k rangi */
    font-weight: 600;
}

.navbar-brand img {
    margin-top: -4px;
}

.navbar-toggler {
    color: #707579;
}

.offcanvas {
    background-color: #FFFFFF;
    border-right: 1px solid #E5E5E5;
}

.offcanvas-header {
    border-bottom: 1px solid #E5E5E5;
}

.offcanvas-title {
    color: #0088CC;
    font-weight: 600;
}

.telegram-sidebar-item {
    border-bottom: 1px solid #E5E5E5;
    transition: background-color 0.2s ease;
}

.telegram-sidebar-item:hover {
    background-color: #E5E5E5;
}

.telegram-sidebar-item svg {
    color: #707579;
}

.list-group-item {
    background-color: #FFFFFF;
    border: none;
    border-bottom: 1px solid #E5E5E5 !important;
}

.telegram-chat-item {
    padding: 15px !important;
    transition: background-color 0.2s ease;
}

.telegram-chat-item:hover {
    background-color: #F0F2F5;
}

.telegram-chat-item h6 {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.telegram-chat-item p {
    font-size: 14px;
    color: #707579;
}

.telegram-chat-item small {
    font-size: 12px;
    color: #707579;
}

.btn-primary {
    background-color: #0088CC !important;
    border-color: #0088CC !important;
    color: #FFFFFF !important;
    border-radius: 20px !important;
}

.btn-primary:hover {
    background-color: #007AB8 !important;
    border-color: #007AB8 !important;
}

.btn-outline-primary {
    border-color: #0088CC !important;
    color: #0088CC !important;
    border-radius: 20px !important;
}

.btn-outline-primary:hover {
    background-color: #0088CC !important;
    color: #FFFFFF !important;
}

.btn-outline-danger {
    border-color: #E53E3E !important;
    color: #E53E3E !important;
    border-radius: 20px !important;
}

.btn-outline-danger:hover {
    background-color: #E53E3E !important;
    color: #FFFFFF !important;
}

.badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 12px;
}

.pagination .page-link {
    color: #0088CC;
    border: none;
}

.pagination .page-item.active .page-link {
    background-color: #0088CC;
    color: #FFFFFF;
}

.modal-content {
    border-radius: 10px;
}

.input-group .form-control {
    border-radius: 20px 0 0 20px;
}

.input-group .btn-primary {
    border-radius: 0 20px 20px 0;
}

/* Telegram UI Styles (avvalgi qism saqlanadi) */

/* Kartochkalar uchun qo‘shimcha stil */
.telegram-card {
    background-color: #FFFFFF;
    transition: background-color 0.2s ease;
}

.telegram-card:hover {
    background-color: #F0F2F5;
}

.telegram-card h6 {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.telegram-card p {
    font-size: 14px;
    color: #707579;
}

.telegram-card .font-12 {
    font-size: 12px;
    color: #707579;
}

.telegram-filter-icon {
    width: 24px; /* Ikonka o‘lchamini aniq belgilash */
    height: 24px;
    color: #707579; /* Ikonka rangi */
    transition: color 0.2s ease;
    display: inline-block; /* Ikonkaning ko‘rinishini ta'minlash */
}

.telegram-filter-icon:hover {
    color: #0088CC; /* Hover’da Telegram ko‘k rangi */
}

.dropdown-toggle::after {
    display: none; /* Bootstrap’ning standart strelkasini olib tashlash */
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    font-size: 14px;
    color: #707579;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.dropdown-item:hover {
    color: #0088CC;
    background-color: #F0F2F5;
}

.dropdown-item svg {
    color: #0088CC;
}



/* Telegram UI Styles (avvalgi qism saqlanadi) */

/* Filtr ikonkasi uchun qo‘shimcha stil */
.telegram-filter-icon {
    width: 24px; /* Ikonka o‘lchamini aniq belgilash */
    height: 24px;
    color: #707579; /* Ikonka rangi */
    transition: color 0.2s ease;
    display: inline-block; /* Ikonkaning ko‘rinishini ta'minlash */
}

.telegram-filter-icon:hover {
    color: #0088CC; /* Hover’da Telegram ko‘k rangi */
}

.dropdown-toggle::after {
    display: none; /* Bootstrap’ning standart strelkasini olib tashlash */
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    font-size: 14px;
    color: #707579;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.dropdown-item:hover {
    color: #0088CC;
    background-color: #F0F2F5;
}

.dropdown-item svg {
    color: #0088CC;
}

/* Mobil qurilmalarda sarlavha va ikonka bir qatorda */
@media (max-width: 767px) {
    .telegram-heading {
        font-size: 20px; /* Mobil qurilmalarda sarlavha o‘lchamini kichraytirish */
    }

    .telegram-filter-icon {
        margin-left: 10px; /* Sarlavha va ikonka orasidagi masofani kamaytirish */
    }
}

/* Telegram UI Styles (avvalgi qism saqlanadi) */

/* Filtr ikonkasi uchun qo‘shimcha stil */
.telegram-filter-icon {
    width: 24px; /* Ikonka o‘lchamini aniq belgilash */
    height: 24px;
    color: #707579; /* Ikonka rangi */
    transition: color 0.2s ease;
    display: inline-block; /* Ikonkaning ko‘rinishini ta'minlash */
}

.telegram-filter-icon:hover {
    color: #0088CC; /* Hover’da Telegram ko‘k rangi */
}

.dropdown-toggle::after {
    display: none; /* Bootstrap’ning standart strelkasini olib tashlash */
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    font-size: 14px;
    color: #707579;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.dropdown-item:hover {
    color: #0088CC;
    background-color: #F0F2F5;
}

.dropdown-item svg {
    color: #0088CC;
}

/* Mobil qurilmalarda sarlavha va ikonka bir qatorda */
@media (max-width: 767px) {
    .telegram-heading {
        font-size: 20px; /* Mobil qurilmalarda sarlavha o‘lchamini kichraytirish */
    }

    .telegram-filter-icon {
        margin-left: 10px; /* Sarlavha va ikonka orasidagi masofani kamaytirish */
    }
}

.channel-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* Kerakli o'lchamga qarab o'zgartiring */
    display: block;
}


/* Header qotib qolishi uchun */
.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Aside qotib qolishi uchun */
.fixed-aside {
    position: fixed;
    top: 56px; /* Navbar balandligi (56px) */
    left: 0;
    height: calc(100vh - 56px); /* Navbar’dan keyin to‘liq balandlik */
    width: 25%; /* Sidebar kengligi */
    z-index: 1020;
}

/* Main qismining joylashuvi */
.main-content {
    margin-left: 25%; /* Sidebar kengligiga moslash */
    padding-top: 56px; /* Navbar balandligiga moslash */
    min-height: 100vh;
}

/* Telegram uslubidagi hero bo‘limi */
.telegram-hero {
    background: linear-gradient(135deg, #0088CC 0%, #005BB5 100%);
    color: #fff;
    border-radius: 10px;
    padding: 50px 20px;
}

/* Telegram uslubidagi sarlavha */
.telegram-heading {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

/* Telegram uslubidagi card dizayni */
.telegram-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Telegram uslubidagi tugmalar */
.telegram-btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    min-width: 120px;
    text-align: center;
}

.btn-primary.telegram-btn {
    background-color: #0088CC;
    border-color: #0088CC;
}

.btn-primary.telegram-btn:hover {
    background-color: #0077B5;
    border-color: #0077B5;
}

.btn-outline-primary.telegram-btn {
    border-color: #0088CC;
    color: #0088CC;
}

.btn-outline-primary.telegram-btn:hover {
    background-color: #0088CC;
    color: #fff;
}

.btn-outline-success.telegram-btn {
    border-color: #00C853;
    color: #00C853;
}

.btn-outline-success.telegram-btn:hover {
    background-color: #00C853;
    color: #fff;
}

/* Telegram uslubidagi avatar */
.telegram-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid #0088CC;
}

/* Telegram uslubidagi footer */
.telegram-footer {
    background: #F0F2F5;
    border-top: 1px solid #E7E8EA;
    width: 100%; /* To‘liq kenglik */
    position: relative; /* Sidebar’dan mustaqil bo‘lishi uchun */
    left: 0;
    right: 0;
    margin-left: 0; /* Sidebar ta'sirini olib tashlash */
    padding: 40px 0; /* Balandlikni oshirish uchun padding */
    min-height: 200px; /* Minimal balandlik */
}

.telegram-footer-link {
    color: #0088CC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.telegram-footer-link:hover {
    color: #0077B5;
    text-decoration: underline;
}

/* Mobil qurilmalarda dizaynni moslashtirish */
@media (max-width: 991px) {
    .fixed-aside {
        position: static;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding-top: 56px;
    }

    .telegram-footer {
        margin-left: 0; /* Mobil qurilmalarda ham to‘liq kenglik */
    }
}

@media (max-width: 767px) {
    .telegram-heading {
        font-size: 20px;
    }

    .telegram-hero {
        padding: 30px 15px;
    }

    .telegram-btn {
        padding: 6px 16px;
        font-size: 13px;
        min-width: 100px;
    }

    .telegram-avatar {
        width: 40px;
        height: 40px;
    }

    .telegram-footer {
        padding: 20px 0; /* Mobil qurilmalarda padding kamaytirildi */
        min-height: 150px; /* Mobil qurilmalarda balandlik kamaytirildi */
    }
}

