
  .mainstories {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: start;
    flex-direction: column;
    overflow-y: auto;
  }
  
  .user-story-circle {
    display: flex;
    flex-direction: column;
    text-align: start;
    width: 100%;
    cursor: pointer;
  }
  .user-story-circle:hover{
    background-color: var(--chatheader);
    transition: 0.3s;
  }
  .user-story-circle img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3.4px solid var(--bubble-parth);
  
  }
  .not-viewed img{
    border: none;
  }
  .imgviewsed {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
   
  }
  
  
  .not-viewed .circular  .imgviewsed img{
    border: 5px solid var(--message-sent-bg);}
  /* Story Viewer */
  .story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navbar-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    color: var(--primary-strong);
  }
  .story-progress-bars {
    display: flex;
    gap: 3px;
    padding-top: 1px;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .progress-bar {
    flex: 1;
    height: 3.5px;
    background-color: rgba(0, 0, 0, 0.578);
    overflow: hidden;
    position: relative;
  }
  
  .progress-bar::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: var(--primary-strong); /* Cool gradient */
    transition: width 5s linear;
    border-radius: 10px;
  }
  .progress-bar.completed{
    background: var(--primary-strong); /* Cool gradient */
  }
  .teamsto{
    margin-left: 1rem;
    margin-top: 0.3rem;
    font-size: 20px;
    margin-bottom: 0;
  }
  
  .progress-bar.active::before {
    width: 100%;
    animation: widtho 6s ease-in-out;
    transition: width 0.5s ;
  }
  .progress-bar.active{
    animation: widtho 4s ease-in-out;
  }
  @keyframes widtho {
    0%{
      width: 0;
    }
  }
  .story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--chatheader);
  }
  
  .story-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .story-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
  }
  
  .story-user-details {
    display: flex;
    flex-direction: column;
  }
  
  .story-username {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
  }
  
  .story-timestamp {
    font-size: 12px;
    color: var(--navbar-buttons);
    margin: 0;
  }
  
  .story-actions {
    display: flex;
    gap: 16px;
  }
  
  .close-story-btn {
    background: transparent;
    border: none;
    color: var(--navbar-buttons);
    font-size: 20px;
    cursor: pointer;
  }
  
  .story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .story-content iframe,
  .story-content img,
  .story-content video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
  }
  
  .story-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .story-reactions {
    display: flex;
    gap: 16px;
  }
  .comment-btn {
    display: none;
  }
  .like-btn,
  .view-viewers-btn {
    background: transparent;
    border: none;
    color: var(--primary-strong);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
  }
  
  .like-btn i.bi-heart-fill {
    color: #ff3b5c;
  }
  
  .story-viewers {
    display: flex;
    align-items: center;
  }
  /* Viewers Modal */
  .viewers-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 1000;
  }
  
  .viewers-content {
    width: 90%;
    max-width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.15);
    overflow: hidden;
    height: 100%;
  }
  
  .viewers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  
  .viewers-header h3 {
    margin: 0;
    color: var(--message-sent-bg);
    font-size: 18px;
  }
  
  .close-viewers-btn {
    background: transparent;
    border: none;
    color: var(--navbar-buttons);
    font-size: 16px;
    cursor: pointer;
  }
  
  .viewers-list {
    max-height: 80%;
    overflow-y: auto;
    padding: 8px 0;
    display: flex;
    flex-direction: column-reverse;
  }
  
  .viewer-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    transition: background-color 0.2s;
  }
  
  .viewer-item:hover {
    background-color: var(--aliceblue);
  }
  
  .viewer-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    display: flex;
  }
  
  .viewer-info {
    flex: 1;
  }
  
  .viewer-name {
    margin: 0 0 4px 0;
    font-weight: 500;
    color: var(--primary-strong);
  }
  
  .viewer-time {
    margin: 0;
    font-size: 12px;
    color: var(--system-message-text);
  }
  
  #storiesContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: transparent;
    align-items: start;
    justify-content: start;
    width: 100%;
    background-color: var(--navbar-bg);
   
  }
  #storiesContainer::-webkit-scrollbar{
    display: none;
  }

  
  .circular {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 10px;
    height: 70px;
  }
  
  .circular img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    display: flex;
  }
  .circular .colss{
    display: flex;
    flex-direction: column;
    width: 90%;
  }
  .colss .story-timestamp{
    margin-left: 0.5rem;
  }
  .sender-name {
    font-weight: 500;
    color: var(--primary-strong);
    margin: 0;
    margin-left: 0.5rem;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-y: hidden;
    ----base-line-clamp-line-height: 16px;
    --lineHeight: 16px;
    min-width: 0;
    overflow-x: hidden;
  }
  
  .story-content {
    min-height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin: 10px 0;
  }
  
  .story-content img,
  .story-content video {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
  }
  
  .story-content iframe {
    width: 100%;
    height: 300px;
    border: none;
  }
  
  .bircular {
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: 10px;
    color: var(--primary-strong);
  }
  
  .like-btn {
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    margin-right: 10px;
    color: var(--primary-strong);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }
  
  .like-btn i,
  .comment-btn i {
    font-size: 16px;
  }
  
  .like-btn.active i {
    color: #e91e63;
  }
  
  /* Loading spinner */
  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    flex-direction: column;
  }
  
  .spanloader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100px;
    flex-direction: column;
  }
  .spanloader::after {
    content: "Sharing TeamSTO...";
    margin-top: 2rem;
  }
  
  .spanloader span {
    width: 50px;
    height: 50px;
    border: 3px solid var(--message-sent-bg);
    border-left-color: var(--chatheader);
    border-right-color: var(--chatheader);
    animation: rotate 0.5s ease infinite;
    border-radius: 50%;
  }
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
#storiesSection {
  width: 100%;
  height: 100%;
  background-color: var(--navbar-bg);
  position: fixed;
  z-index: var(--layer6);
  flex-direction: column;
  transition: all 0.3s ease;
  
}

#storiesSection.to-left {
  animation: slideInRight 0.3s forwards;
}

#storiesSection.to-right {
  animation: slideOutRight 0.3s forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}