/* Asosiy Ranglar */
:root {
    --color-base: #000516; /* Asosiy fon rangi (juda to'q ko'k/qora) */
    --color-sidebar: #00071c; /* Yon panel foni - biroz ochroq */
    --color-text-light: #f0f8ff; /* Asosiy yorug' matn rangi */
    --color-accent: #ff2a6d; /* Aksent rangi (qizilpushti) */
    --color-secondary: #00d9ff; /* Ikkilamchi aksent (och ko'k - hover uchun) */
    --color-card-bg: #000a20; /* Kartalar/Rasmlar foni */
}

/* Umumlashgan stillar */
body {
    background-color: var(--color-base);
    color: var(--color-text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* --- Yon Panel (Sidebar) Stillari --- */
.sidebar {
    width: 65px; /* Kichik, faqat iconlar uchun */
    min-width: 65px;
    background-color: var(--color-sidebar);
    border-right: 1px solid #001f4c; /* Kichik ajratuvchi chiziq */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.sidebar .logo {
    display: block;
    padding: 10px 0;
}

.sidebar .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    margin: 15px auto;
    border-radius: 50%;
    color: var(--color-text-light);
    font-size: 1.5rem;
    position: relative;
}

.sidebar .nav-link:hover {
    color: var(--color-accent);
    background-color: rgba(255, 42, 109, 0.1); /* Aksent rangining xira foni */
}

.sidebar .nav-link i {
    z-index: 10;
}

.sidebar .nav-link:focus, .sidebar .nav-link.active {
    color: var(--color-accent);
}

.sidebar small {
    color: #6c757d !important;
    font-size: 0.7rem;
}

/* --- Asosiy Kontent (Main Content) Stillari --- */
.main-content {
    padding: 20px;
    background-color: var(--color-base);
}

/* --- Rasmlar Galeriyasi (Pinterest uslubi) --- */
.image-grid {
    column-count: 5; /* 5 ustunlik tartib */
    column-gap: 15px; /* Ustunlar orasidagi bo'shliq */
    padding: 10px;
    /* Kichik ekranlar uchun media query qo'shing */
}

@media (max-width: 1200px) {
    .image-grid {
        column-count: 4;
    }
}

@media (max-width: 992px) {
    .image-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .image-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .image-grid {
        column-count: 1;
    }
}


/* --- Rasm Kartasi (Image Card) Stillari --- */
.image-card {
    display: inline-block; /* Ustunlarga bo'lish uchun muhim */
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 42, 109, 0.3); /* Yaltiroq effekt */
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Username joylashuvi (Top Left, ichkarida) */
.image-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); /* Gradient foni */
    opacity: 0; /* Boshida yashirin */
    transition: opacity 0.3s ease;
    z-index: 5;
}

.image-card:hover .image-info {
    opacity: 1; /* Hoverda ko'rinadi */
}

.image-info .username {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 5px;
}

.image-info .username:hover {
    color: var(--color-accent);
}

/* Qolgan stillar (agar kerak bo'lsa) */
.text-muted {
    color: #6c757d !important;
} 
/* --- Profil Sahifasi Stillari --- */

.profile-container {
    max-width: 935px; /* Instagramga o'xshash kenglik */
    margin: 0 auto;
    padding: 20px;
}

/* Profil Header (Avatarlar va Statlar joylashgan joy) */
.profile-header {
    border-bottom: 1px solid #001f4c; /* Pastki ajratuvchi chiziq */
    padding-bottom: 30px !important;
}

/* Avatar Stillari */
.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--color-card-bg);
    border: 3px solid var(--color-accent); /* Aksent rangli yaltiroq chegara */
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.5); /* Yumshoq yaltiroq effekt */
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Matn va Statlar */
.profile-username {
    color: var(--color-text-light);
    font-size: 1.8rem;
    font-weight: 300; /* Yupqaroq shrift */
    margin-bottom: 5px;
}

.profile-bio {
    color: #a0a0a0;
    max-width: 600px;
    font-size: 0.95rem;
}

.profile-stats strong {
    font-size: 1.1rem;
    color: var(--color-accent);
}

.profile-stats small {
    display: block;
    color: #6c757d !important;
}

/* Tugmalar Stillari */
.profile-actions .btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-light);
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.profile-actions .btn-primary:hover {
    background-color: #e02562;
    border-color: #e02562;
}

.profile-actions .btn-outline-light {
    color: var(--color-text-light);
    border-color: #001f4c;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.profile-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* --- Postlar Galereyasi (Pinterest/Instagram uslubi) --- */
/* Bu yerda avvalgi Pinterest stilidan foydalanamiz, lekin uni "profile-posts" klassiga qo'llaymiz */

.profile-posts {
    /* 3 ustunlik tartibi */
    column-count: 3;
    column-gap: 15px;
    padding: 10px 0;
}

/* Kichik ekranlar uchun */
@media (max-width: 768px) {
    .profile-posts {
        column-count: 2;
    }
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .profile-posts {
        column-count: 1;
    }
}
.biii{
    padding: 5px 8px !important;
}
.post-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.post-card:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.post-card img {
    width: 100%;
    height: auto;
    display: block;
}
/* index */
/* --- Index Sahifasi (Pinterest Style) Stillari --- */

/* Masonry Container (Ustunlar o'zgarmadi) */
.masonry {
    /* Masonry o'rniga CSS Grid ishlatiladi */
    display: grid;
    /* 5 ta ustun yaratish, har birining kengligi teng */
    grid-template-columns: 32.5% 32.5% 32.5%; 
    gap: 15px; /* Kataklar orasidagi bo'shliq */
    padding: 10px;
}

@media (max-width: 1200px) { .masonry { column-count: 3; } }
@media (max-width: 992px) { .masonry { column-count: 3; } }
@media (max-width: 768px) { .masonry { column-count: 2; } }

/* Rasm Kartasi (Har bir element) */
.masonry-item {
    display: inline-block;
    width: 350px;
    margin-bottom: 0 !important;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    position: relative; /* Overlay uchun asos */
    background-color: var(--color-card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
.imgg{
    width: 30px !important;
}
.masonry-item:hover {
    transform: scale(1.02); /* Kichik kattalashish */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.profile-container .profile-posts.masonry-grid{
    display: grid;
    grid-template-columns: 32.5% 32.5% 32.5%;
    gap: 1%;
}
@media only screen and (max-width: 768px) {
    .profile-container .profile-posts.masonry-grid{
    display: grid;
    grid-template-columns: 48.5% 48.5%;
    gap: 1.2%;
}
}
@media only screen and (max-width: 576px) {
    .profile-container .profile-posts.masonry-grid{
    display: grid;
    grid-template-columns: 100%;
}
}
.post-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* --- Rasm Ustidagi Qatlam (Overlay) Stillari --- */

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Xira fon */
    opacity: 0; /* Boshida yashirin */
    transition: opacity 0.3s ease;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.masonry-item:hover .post-overlay {
    opacity: 1; /* Hoverda ko'rinadi */
}

/* Username Badge (Yuqori chap) */
.username-badge {
    align-self: flex-start;
    background-color: rgba(255, 42, 109, 0.7); /* Aksent rangli fon */
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.username-badge a {
    color: var(--color-text-light);
}

/* Download Tugmasi (Yuqori o'ng) */
.overlay-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}
.overlay-actions2 {
    position: absolute;
    top: -10px;
    right: 48px;
}
.download-btn {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    font-weight: bold;
    font-size: 0.8rem;
    padding: 5px 10px;
    /* Download ikonka uchun Bootstrap Icons ishlatiladi */
}

.download-btn:hover {
    background-color: #e02562;
    border-color: #e02562;
}

/* Like info (Pastki chap) */
.like-info {
    align-self: flex-start;
    color: var(--color-text-light);
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 3px 8px;
    border-radius: 5px;
}
@media (max-width: 1200px) {
    .masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .masonry {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 576px) {
    .masonry {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Rasm Kartasi (Har bir element) */
.masonry-item {
    width: 100%;
    /* Grid elementlari uchun bir xil balandlikni ta'minlash */
    /* height: 250px; Misol uchun 250px balandlik beramiz */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: scale(1.02); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.post-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    /* Rasmning katakni to'liq qoplashi va cho'zilib ketmasligi uchun */
    object-fit: cover; display: block;
    border-radius: 10px;
}

/* --- Rasm Ustidagi Qatlam (Overlay) Stillari --- */
/* (Bular avvalgi javobdagi kabi qoladi, ularni o'zgartirish shart emas) */

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); 
    opacity: 0; 
    transition: opacity 0.3s ease;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5; /* Overlayning rasm ustida ekanligini ta'minlaydi */
}

.masonry-item:hover .post-overlay {
    opacity: 1; 
}
/* --- Yuklash (Upload) Sahifasi Stillari --- */

/* Asosiy konteynerni markazlashtirish */
.main-content h3 {
    color: var(--color-text-light);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

form {
    max-width: 500px; /* Formulani markazda ushlab turish uchun */
    margin: 0 auto;
    padding: 30px;
    background-color: var(--color-sidebar); /* Yon panel rangi bilan biroz ajratish */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #001f4c;
}

/* Django form.as_p tomonidan chiqarilgan p elementlari */
form p {
    margin-bottom: 15px;
}

/* Label Stillari */
form label {
    display: block;
    color: #a0a0a0;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Input va Textarea Stillari */
form input:not([type="submit"]):not([type="file"]), 
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #001f4c;
    border-radius: 5px;
    background-color: var(--color-base); /* To'q fon */
    color: var(--color-text-light);
    transition: border-color 0.3s ease;
}

form input:focus, 
form textarea:focus {
    border-color: var(--color-accent); /* Fokusda aksent rangi */
    box-shadow: 0 0 5px rgba(255, 42, 109, 0.5);
    outline: none;
}

/* File Input (Rasm tanlash) Stillari */
form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #001f4c; /* Chiziqli chegara */
    border-radius: 5px;
    background-color: var(--color-base);
    color: var(--color-text-light);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

form input[type="file"]:hover {
    border-color: var(--color-secondary);
}


/* Yuklash Tugmasi */
.btn-success {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: var(--color-accent); /* Aksent rangini ishlatamiz */
    border-color: var(--color-accent);
    color: var(--color-text-light);
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-success:hover {
    background-color: #e02562;
    border-color: #e02562;
    transform: translateY(-2px);
}
.like-btn{
    padding: 5px;
    font-size: 15px;
    font-weight: bold;
    background-color: var(--color-accent); /* Aksent rangini ishlatamiz */
    border-color: var(--color-accent);
    color: var(--color-text-light);
    border-radius: 5px;
}
/* --- Xabarnomalar Sahifasi (Left-aligned) Stillari --- */

.main-content h2 {
    color: var(--color-accent);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: left; /* Sarlavhani chapga surish */
    padding-left: 20px;
}

/* Xabarnomalar Kontenerini Chapga joylashtirish */
.notifications-container {
    max-width: 500px; /* Panelga o'xshash kenglik */
    margin-left: 20px; /* Yon panel (sidebar) dan biroz uzoqlashtirish */
    margin-right: auto;
    padding: 0;
}

/* Har bir xabarnoma kartasi */
/* --- Instagram uslubidagi Xabarnoma Paneli (Drawer) Stillari --- */
/* --- Instagram/Modern Drawer Style for Notifications --- */

/* Asosiy Panel */
.notification-drawer {
    position: fixed;
    top: 0;
    left: 65px; /* Sidebar kengligidan keyin boshlanadi */
    height: 100vh;
    width: 380px; 
    
    /* Zamonaviy fon va Glassmorphism effekti */
    background-color: rgba(0, 5, 22, 0.95); /* Asosiy rangning yarim shaffofligi */
    backdrop-filter: blur(8px); /* Orqadagi kontentni xiralashtirish */
    
    border-right: 1px solid #001f4c;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.9); /* Yanada kuchliroq soya */
    z-index: 1050; 
    
    transform: translateX(-450px); /* Boshida yashirish */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Yumshoq animatsiya */
    overflow-y: auto;
    padding: 0;
}

/* Panel aktiv holati */
.notification-drawer.open {
    transform: translateX(0);
}

/* Scrollbar stili (Agar brauzer qo'llasa) */
.notification-drawer::-webkit-scrollbar {
    width: 5px;
}
.notification-drawer::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}
.notification-drawer::-webkit-scrollbar-track {
    background: var(--color-base);
}

/* --- Panel Sarlavhasi --- */
.drawer-header {
    padding: 20px 20px 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #001f4c;
    position: sticky; 
    top: 0;
    background-color: var(--color-sidebar); /* Sarlavhani ajratish */
    z-index: 10;
}

.drawer-header h2 {
    margin: 0;
    color: var(--color-accent);
    font-size: 1.6rem;
    font-weight: 700;
}

.drawer-header .close-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.drawer-header .close-btn:hover {
    color: var(--color-text-light);
}

/* --- Xabarnomalar Kontenti --- */

.notifications-container {
    padding: 10px 10px 20px 10px;
}

/* Har bir xabarnoma kartasi */
.notifications-container .card {
    background-color: transparent; /* Fon shaffof */
    border: none;
    padding: 12px 10px !important;
    margin-bottom: 5px !important;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notifications-container .card:hover {
    background-color: #000a20; /* Engil fon */
}

/* Foydalanuvchi nomi */
.notifications-container .card strong {
    color: var(--color-text-light); 
    font-weight: 600;
    margin-right: 5px;
}

/* Xabarnoma matni */
.notifications-container .card {
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Vaqt */
.notifications-container .card small {
    display: block;
    color: #6c757d !important;
    font-size: 0.7rem;
    margin-top: 3px;
}

/* Xabarnoma yo'q */
.notifications-container p {
    color: #a0a0a0;
    text-align: center;
    padding-top: 20px;
}

/* --- Overlay --- */
.notification-overlay {
    background-color: rgba(0, 0, 0, 0.7); /* Yanada to'qroq xira fon */
    z-index: 1040;
}
.notifications-container .card *, .notifications-container .card{
  color: white !important;
}





/* --- Profil Tahrirlash (Edit Profile) Stillari --- */

.main-content h2 {
    color: var(--color-accent);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

/* Asosiy Forma Konteyneri */
.main-content form {
    max-width: 700px; /* Kengroq forma */
    margin: 0 auto;
    padding: 10px !important;
    background-color: var(--color-sidebar); /* Asosiy fonga nisbatan ajratish */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #001f4c;
}

/* Sarlavhalar */
.main-content form h4 {
    color: var(--color-text-light);
    border-bottom: 1px solid #001f4c;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Django Form.as_p tomonidan chiqarilgan p elementlari uchun grid konteyner */
.hahh {
    display: grid;
    /* Katta ekranlarda 2 ustun */
    grid-template-columns: 1fr; 
    gap: 20px 30px; /* Vertikal va Gorizontal bo'shliq */
}
.form-grid label{
  margin-top: 20px;
}

/* Kichik ekranlar uchun 1 ustun */
@media (max-width: 768px) {
    .hahh-box {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Har bir p elementini grid maydoni sifatida belgilash */
.form-grid p {
    margin: 0; /* Bootstrap p marginlarini olib tashlash */
}
/* --- Input Elementlari Stillari (Yuklash sahifasidagi kabi) --- */

.main-content form label {
    display: block;
    color: #a0a0a0;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.main-content form input:not([type="submit"]):not([type="file"]), 
.main-content form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #001f4c;
    border-radius: 5px;
    background-color: var(--color-base); 
    color: var(--color-text-light);
    transition: border-color 0.3s ease;
}

.main-content form input:focus, 
.main-content form textarea:focus {
    border-color: var(--color-accent); 
    box-shadow: 0 0 5px rgba(255, 42, 109, 0.5);
    outline: none;
}

/* Avatar File Input stili */
.main-content form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #001f4c;
    border-radius: 5px;
    background-color: var(--color-base);
    color: var(--color-text-light);
    cursor: pointer;
}

/* --- Tugmalar Guruhini joylashtirish --- */
.form-actions {
    display: flex;
    justify-content: flex-end; /* Tugmalarni o'ngga surish */
    gap: 15px;
    margin-top: 30px;
    /* Saqlash tugmasini alohida ta'kidlash */
}

.btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #e02562;
    border-color: #e02562;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}
/* --- Ikkiga bo'lingan Profil Tahrirlash Sahifalari Stillari --- */

/* Avvalgi .main-content form stilini qayta ishlatish */
.user-edit-form, .profile-details-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--color-sidebar); 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #001f4c;
}

.form-section-box h4 {
    color: var(--color-text-light);
    border-bottom: 1px solid #001f4c;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Grid stili o'zgarmadi, 2 ustunlikni ta'minlaydi */
.form-grid {
    display: grid;
    grid-template-columns: 1fr !important; 
    gap: 20px 30px; 
}
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
#avatar-clear_id + label{
  width: 100%;
  margin-top: 0;
  /* display: inline; */
}

/* Tugmalar Guruhini joylashtirish */
.form-actions {
    display: flex;
    justify-content: flex-end; 
    gap: 15px;
    margin-top: 30px;
}
#avatar-clear_id {
    display: none;
}
/* Yangi "Keyingi Sahifa" tugmasi uchun stil (ko'k rang) */
.btn-info {
    background-color: var(--color-secondary); /* Yashil-ko'k rang */
    border-color: var(--color-secondary);
    font-weight: bold;
}
.btn-info:hover {
    background-color: #008c99;
    border-color: #008c99;
}

/* --- Avatarni o'chirish labelini o'zgartirish (Avvalgi javobimizdagi kod) --- */
/* Faqat avvalgi javobimizdagi CSS'ni ishlatishingiz kifoya. */
.form-grid p label[for="avatar-clear_id"] {
    display: inline-block;
    visibility: hidden;
    position: relative;
    padding-left: 0;
}
.form-grid p label[for="avatar-clear_id"]::after {
    content: "Avatarni o'chirish"; 
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    color: #ff2a6d; 
    font-weight: 500;
    cursor: pointer;
}






/* =================================================== */
/* 4. QIDIRUV SAHIFASI (SEARCH USERS) YANADA CHYROYLI STILLAR */
/* =================================================== */
.hhh{
    margin-bottom: 0 !important;
}

@media only screen and (max-width:768px) {
    .hhh{
        font-size: 27px !important;
        padding: 0 !important;
    }
}
@media only screen and (max-width:576px) {
    .hhh{
        font-size: 25px !important;
    }
    .container.py-4 .d-flex.justify-content-between.align-items-center.mb-4{
        display: grid !important;
        gap: 15px;
        grid-template-columns: 100% !important;
    }
}
.main-content h2 {
    color: var(--color-accent);
    margin-bottom: 25px;
    font-size: 2rem; /* Sarlavhani kattalashtirdik */
    font-weight: 700;
    text-align: left;
    padding: 0 20px;
}

/* --- 1. QIDIRUV FORMASI --- */

.input-group {
    padding: 0 20px;
    max-width: 550px; /* Kengroq qidiruv paneli */
    margin-bottom: 40px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Yengil soya qo'shish */
    border-radius: 12px; /* Umumiy konteyner uchun yumaloq burchak */
    overflow: hidden; /* Input va buttonni bir joyda tutish uchun */
}

.input-group .form-control {
    background-color: var(--color-sidebar);
    border: none; /* Chegarani olib tashladik */
    border-right: 1px solid #001f4c; /* Tugmadan ajratish uchun chiziq */
    color: var(--color-text-light);
    height: 50px; /* Balandlikni oshirish */
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.input-group .form-control:focus {
    background-color: #000a20; /* Fokusda biroz to'qlashish */
    box-shadow: none; /* Bootstrapning standart fokus soyasini o'chirish */
    border-color: #001f4c;
}

.input-group .btn-outline-primary {
    /* Qidiruv tugmasiga stil berish */
    background-color: var(--color-accent);
    color: white;
    border: none; /* Chegarani olib tashladik */
    font-weight: 600;
    padding: 0 20px;
    height: 50px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.input-group .btn-outline-primary:hover {
    background-color: #e02562;
    transform: translateY(-1px); /* Engil ko'tarilish */
}

/* --- 2. NATIJA KARTALARI --- */

.row {
    padding: 0 10px;
}

.col-md-4 .card {
    background-color: var(--color-sidebar);
    border: none; /* Qalin chegaralarni olib tashladik */
    border-radius: 15px; /* Katta yumaloq burchaklar */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.col-md-4 .card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    background-color: #000a20; /* Hoverda fonni biroz to'qlashtirish */
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px; /* Ichki bo'shliqni oshirish */
}

/* Avatar Rasmi (Yanada ko'zga tashlanadigan) */
.card-body img.rounded-circle {
    width: 80px;
    height: 80px;
    border: 3px solid var(--color-accent); /* Qalinroq aksent chegara */
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.5); /* Avatar atrofida porlash */
}

.card-body h5 {
    margin: 0;
    font-weight: 700;
}

.card-body h5 a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.card-body h5 a:hover {
    color: var(--color-accent);
}

/* Bio matni */
.card-body p.text-muted {
    color: #8c9299 !important; /* To'qroq kul rang */
    font-size: 0.9rem;
    margin-top: 5px;
}
.overlay-actions a{
  margin-top: 0;
}




.modal-content {
  border: none;
  border-radius: 16px;
  background-color: #0a0a1a;
}
.list-group-item {
  border-color: rgba(255, 255, 255, 0.1);
}
.list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.btn-close-white {
  filter: invert(1);
}
#topPostsGrid .position-relative {
  transition: transform 0.2s;
}
#topPostsGrid .position-relative:hover {
  transform: scale(1.03);
}
.btn-close-white {
  filter: invert(1);
}

.notification-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100vh;
  background: #0a0a1a;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1050;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.drawer-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.close-btn {
  color: white;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.notifications-container {
  padding: 16px;
}

.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}




