*{
    margin: 0;
    padding: 0;
}
body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    /* max-width: 1300px; */
    margin-left: 248px;
}

.sidebar {
    width: 312px; /* Default width */
    height: 100vh;
    transition: width 0.3s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    background: #000;
    padding: 10px;
    border-right:1px solid #333 ;
    position: fixed;
    left: 0;
}
.side-list{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90vh;
}
.sidebar li a{
    list-style-type: none;
    color: #fff;
    text-decoration: none;
    /* margin-bottom: 10px; */
    display: flex;
        align-items: center;
        justify-content: center;
}

/* Shrinking sidebar */
.sidebar.collapsed {
    width: 68px; /* Shrinks to icon size */
    text-align: center;
    border-right: 1px solid #333;
}
.sidebar.collapsed li img{
    /* margin-right: 20px; */
    height: 24px;
    width: 24px;
}


/* Hide text labels when sidebar is collapsed */
.titles.hide {
    display: none;
}

/* Logo Visibility */
.logo-1 {
    display: block; /* Default logo */
}

.logo-2 {
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}
.sidebar.collapsed .list-1{
    margin-bottom: 147px;

}
.sidebar.collapsed .logo-2 img{
    margin-bottom: 10px;
}

.sidebar.collapsed li{
    width: 100%;
    margin: 5px 0;
    font-size: 18px;
    cursor: pointer;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-1 img{
    width: 103px;
    height: 29px;
    padding: 33px 12px 16px;
    margin-bottom: 13px;
}
.logo-2 img{
    height: 24px;
    width: 24px;
    padding: 12px;
    margin-top: 30px;
    /* display: none; */
    margin-bottom: 40px;
}

.sidebar ul {
    list-style: none;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* align-items: center;
    justify-content: center; */
    
}


.sidebar li {
    width: 294px;
    margin: 5px 0;
    font-size: 18px;
    cursor: pointer;
    padding: 12px 12px 12px 12px;
    display: flex;
}

.sidebar li:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
.s-head{
    margin-top: 24px;
}
.posts {
    /* width: 600px;
    margin: 0 auto; */
    padding: 0px 20px 20px 20px;
    margin-top: 8px;
    padding: 0px 20px 20px 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 640px; /* Adjust for container width */
    margin: auto 0;
    overflow: hidden;
    padding: 10px 0;
}

.stories {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    gap: 15px; /* Adjusted for spacing */
    scrollbar-width: none; /* Hide scrollbar */
    -ms-overflow-style: none;
    padding: 5px 5px; /* Keeps space for buttons */
}

.stories::-webkit-scrollbar {
    display: none;
}

.story {
    width: 66px; /* Slightly larger to match reference */
    height: 66px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    ; /* Increases outer border thickness */
}

.story img {
    width: 58px; /* Adjusted for correct inner spacing */
    height: 58px;
    border-radius: 50%;
    background: black; /* Adds space between border & image */
    padding: 2px;
}
.story-name {
    font-size: 10px;
    color: white;
    text-align: center;
    margin-top: 5px;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prev, .next {
    position: absolute;
    background: #f5f5f5;
    color: black;
    border: none;
    width: 28px; /* Slightly smaller buttons */
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    opacity: 1;
}

.prev {
    left: 5px;
}

.next {
    right: 5px;
}



.instagram-post {
    /* background-color: #121212; */
    padding: 15px;
    max-width: 468px;
    
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}
.instagram-post span{
    cursor: pointer;
    color: white;
}

.instagram-post .profile-pic img{
    height: 34px;
    width: 34px;
    border-radius: 50%;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.username {
    font-weight: bold;
    display: flex;
}

.time {
    color: gray;
    font-size: 14px;
    margin-left: auto;
}

.post-image {
    max-width: 468px;
    height: 570px;
    background-color: #000;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: cover;
    background-position: center;
    border: 1px solid #333;
    
}

.post-image img{
    width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
 border: 0.5px solid #000;
 border-radius: 4px;

}
.post-image video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures it fills the container properly */
    border-radius: 5px; /* Optional */
}

.post-content p {
    font-size: 16px;
    margin: 2px 0;
}

.post-content .highlight {
    background-color: yellow;
    color: black;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

.post-footer {
    margin-top: 10px;
}



.sidebar li img{
    /* margin-right: 20px; */
    height: 24px;
    width: 24px;
}
.sidebar li .titles{
    margin-left: 20px;
    font-size: 16px;
    margin-top: 3px;
}
.list-1{
    margin-bottom: 143px;
}
.post-icons{
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 15px;
}
.post-icons i{
    font-size: 24px;
    cursor: pointer;
    
}
.post-icon-right i{
    margin-right: 15px;
}
.post-icons i:hover{
    color: gray;
}
.like-button {
    font-size: 24px; /* Adjust size if needed */
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.liked {
    color: red;
    
}
.caption{
    font-size: 14px;
    margin-top: 0;
}
.round {
    border-radius: 50%;
    height: 36px;
    width: 36px;
}
.input-container {
    position: relative;
    width: 100%;
    /* max-width: 400px; */
    /* margin: 20px; */
    display: flex;
    align-items: center;
    /* border: 1px solid #ccc; */
    border-radius: 20px;
    padding: 10px;
    /* background-color: #222; */
}

input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 14px;
    padding: 5px;
}

#postLink {
    text-decoration: none;
    color: #0095f6;
    font-size: 14px;
    font-weight: 600;
    margin-right: 35px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#postLink:hover{
    color: #fff;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

#postLink.visible {
    opacity: 1;
    pointer-events: auto;
}
.bi-emoji-smile{
    position: absolute;
    right: 20px;
    font-size: 14px;
}
.bi-emoji-smile:hover{
    color: #464444;
}

.sidebar2 {
    width: 300px;
    color: white;
    font-family: Arial, sans-serif;
    margin-top: 36px;
    margin-left: 40px;
    
}

.profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.profile-info {
    flex-grow: 1;
    margin-left: 10px;
}

.profile-info .username {
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-info .name {
    font-size: 12px;
    color: gray;
}

.switch {
    color: #0095f6;
    font-size: 12px;
    text-decoration: none;
}
.switch:hover{
    color: #fff;
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.suggestions-header p {
    font-weight: 600;
    color:#a8a8a8 ;
    font-size: 13px;
}

.suggestions-header a {
    color: white;
    text-decoration: none;
    font-size: 12px;
}
.suggestions-header a:hover{
    color:rgb(85, 85, 85) ;
}

.suggested-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.suggested-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info {
    flex-grow: 1;
    margin-left: 10px;
}

.user-info .username {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.user-info .mutual {
    font-size: 12px;
    color: gray;
    margin-top: 3px;
}

.follow-btn {
    color: #0095f6;
    font-size: 12px;
    text-decoration: none;
    
}
.follow-btn:hover{
    color: #fff;
}

.footer {
    margin-top: 60px;
    font-size: 12px;
    color: gray;
}

.footer p {
    margin: 20px 0;
}
.username .sub-p{
    font-size: 14px;
    color: #a8a8a8;
    font-weight: 500;
    display: flex;
    align-items: center;
    /* justify-content: center; */
}
.bi-dot{
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}
.username p{
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-top{
    display: none;
}
.top-icons{
    display: flex;
}
.bottom-nav{
    display: none;
}
/* Search Menu (Initially Hidden) */
.custom-search-menu {
    position: absolute;
    top: 0px;
    left: 94px;
    background: #000;
    padding: 20px;
    display: none;
    border-radius: 10px;
    /* box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2); */
    transition: all 0.3s ease-in-out;
    border-right: 1px solid #333;
    height: 100vh;
}
.custom-search-menu .things{
    position: relative;
}
.custom-search-menu.visible {
    display: block; /* Becomes visible when toggled */
}

/* Input Field */
.custom-search-menu input {
    width: 313px;
    
    padding: 13px;
    margin-top: 30px;
    background-color: #333;
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
}

/* Close Button */
.custom-search-menu button {
    background: rgb(199, 199, 199);
    position: absolute;
    font-size: 8px;
    top: 79px;
    right: 10px;
    height: 14px;
    width: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #333;
    border: none;
    cursor: pointer;
    /* padding: 8px; */
    margin-left: 10px;
    /* border-radius: 5px; */
}

/* Show Search Menu When Sidebar Shrinks */
.sidebar.shrunk + .custom-search-menu {
    display: block;
    left: 90px; /* Moves closer when sidebar shrinks */
    top: 0px;
}


.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999; 
  }
  .popup h2{
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 10px;
  }
  
  .popup-content {
    background: #222;
    padding: 20px;
    text-align: center;
    /* border-radius: 10px; */
    color: white;
    width: 27%;
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .popup-content p{
    margin-bottom: 20px;
    font-size: 20px;
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
  }
  .create-img{
    margin-bottom: 20px;
  }
  #select-from{
    background-color:rgb(0, 149, 246);
    color: white;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
  }
  #select-from:hover{
    background-color: rgb(20, 98, 198);
  }
  #caption{
    /* width: 300px; */
    
  }
  #postDetails{
    display: flex;
    align-items: center;
  }
  #postButton{
    background-color:rgb(0, 149, 246);
    color: white;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
  }
  
.profile-box{
    display: flex;
    margin-top: 80px;
    align-items: center;
    /* border-bottom: 1px solid #333; */
    margin-bottom: 30px;
}
.profile-img{
    width: 283.66px;
    height: 181px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-box img{
    /* margin-right: 120px; */
    height: 150px;
    width: 150px;
    border-radius: 50%;
}
.profile-info{
    display: flex;
    flex-direction: column;
}

.profile-data{
    display: flex;
    margin-bottom: 28px;
}
.name-data{
    display: flex;
    align-items: center;
}
.followers{
    display: flex;
    margin-bottom: 28px;
}
.my-name{
    font-size: 20px;
    margin-right: 20px;
}
.pro-btns{
    padding: 8px 16px;
    font-size: 14px;
    background-color: #363636;
    border-radius: 8px;
    border: none;
    outline: none;
    color: #fff;
    margin-right: 10px;
    font-weight: 600;
}
.bi-gear-wide{
    font-size: 25px;
}
.follow-data{
    margin-right: 40px;
}
.follow-span{
    color: #a8a8a8;
}
.data-btn{
    background-color: rgb(74, 74, 74);
    padding: 5px;
    border: none;
    outline: none;
    color: #f5f5f5;
    border-radius: 50px;
    margin-bottom: 5px;
}
.bi-check-circle{
    color:white;
    background-color: rgb(61, 162, 136);
    border-radius: 50%;
    /* font-size: 20px; */
    
}
.data-p2{
    font-size: 12px;
}
.data-p{
    font-weight: 600;
    margin-bottom: 5px;
}
.profile-highlights{

    .story-container {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 923px; /* Adjust for container width */
        margin: auto 0;
        overflow: hidden;
        padding: 10px 0;
    }
    
    .stories {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        white-space: nowrap;
        gap: 15px; /* Adjusted for spacing */
        scrollbar-width: none; /* Hide scrollbar */
        -ms-overflow-style: none;
        padding: 5px 22px; /* Keeps space for buttons */
    }
    
    .stories::-webkit-scrollbar {
        display: none;
    }
    .full-story{
        
        margin-right: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .story {
        width: 81px; /* Slightly larger to match reference */
        height: 81px;
        border-radius: 50%;
        border: 1px solid lightgray;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); */
        ; /* Increases outer border thickness */
    }
    
    .story img {
        width: 77px; /* Adjusted for correct inner spacing */
        height: 77px;
        border-radius: 50%;
        background: black; /* Adds space between border & image */
        padding: 2px;
    }
    .story-name {
        font-size: 10px;
        color: white;
        text-align: center;
        margin-top: 15px;
        max-width: 70px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

}

.profile-content{
    margin-left: 200px;
}




