body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden; /* Prevent page scrolling */
}



html, body {
    height: 100%; /* Ensure body takes full height */
    margin: 0; /* Remove default margin */
}







.rounded-button, .post-btn {
    padding: 12px 24px; /* Increase padding for better touch targets */
}





  .sidebar {
    height: 100vh;
    width: 300px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    position: relative;
  }

  .list-in {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .sidebar li {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #f1f1f1;
    color: black;
  }

  .sidebar li:hover {
    background-color: #EFEEEE;
  }

  .icon {
    margin-right: 10px;
  }

  .badge {
    background-color: #ff3b30;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: auto;
  }

  .post-btn {
    width: 100%;
    background-color: #f1f1f1;
    color: black;
    border: none;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    border-radius: 8px;
  }

  .post-btn:hover {
    background-color: #EFEEEE;
  }

  .logo {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    align-self: flex-start;
  }

  .profile {
    display: flex; 
    width: 100%;
    height: 70px;
    padding: 15px;
    background-color: #f1f1f1;
    color: black;
    font-size: 16px;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    margin-bottom: 25px;
    border-radius: 35px;
    align-items: center;
  }

  .profile-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 15px;
  }

  .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: black;
  }

  .content p {
    margin: 0;
  }

  .content p:first-child {
    font-weight: bold;
  }

  /* Make entire list item clickable */
  .sidebar a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
  }

  .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
  }

  .user-info {
    flex-grow: 1;
  }

  .username {
    font-weight: 600;
    color: #000000;
  }

  .display-name {
    font-size: 0.9em;
    color: #8899A6;
  }

  .loading {
    text-align: center;
    color: #8899A6;
    margin: 20px 0;
  }



      .profile-menu {
          width: 100%;
          background-color: #f1f1f1;
          border-radius: 8px;
          overflow: hidden;
          display: none;
          flex-direction: column;
          /* Ensure items stack vertically */
          position: absolute;
          bottom: 0;
          margin-bottom: 95px;
          border-radius: 8px;
      }

      .profile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        /* Ensure the ul takes full width */
    }

    .profile-menu li {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 15px;
        font-size: 16px;
        cursor: pointer;
        background-color: #f1f1f1;
        color: black;
    }

    .profile-menu li:hover {
        background-color: #EFEEEE;
    }

    .profile-menu a {
        display: block;
        /* Ensure the anchor tag fills the li */
        text-decoration: none;
        color: inherit;
        width: 100%;
        /* Make the link fill the li */
    }

    .profile-info-main {
        display: flex;
        flex-direction: column;
        /* Aligns the text vertically */
        justify-content: center;
    }

    .profile {
        display: flex;
        width: 100%;
        height: 70px;
        padding: 15px;
        background-color: #f1f1f1;
        color: black;
        font-size: 16px;
        cursor: pointer;
        position: absolute;
        bottom: 0;
        margin-bottom: 25px;
        border-radius: 35px;
        align-items: center;
    }

    .profile-circle {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #fff;
        margin-right: 15px;
        overflow: hidden;
        /* Ensures the image stays within the circle */
    }

    .profile-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Ensure the image covers the entire circle */
    }

    #toast-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}

.toast {
background: white;
color: black;
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 15px 20px;
margin-bottom: 10px;
animation: slideUp 0.3s ease, slideDown 0.3s ease 5s forwards;
}

@keyframes slideUp {
from {
    opacity: 0;
    transform: translateY(20px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes slideDown {
from {
    opacity: 1;
    transform: translateY(0);
}
to {
    opacity: 0;
    transform: translateY(20px);
}
}

.post-popup-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
    
        /* Use flexbox for centering */
        justify-content: center;
        align-items: center;
        z-index: 1000;
        backdrop-filter: blur(10px);
        /* Adds the blur effect */
    }

    .post-popup-content {
        margin: 20px;
        background-color: white;
        border-radius: 8px;
        width: 630px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        /* Changed to column for stacked inputs */
        position: relative;
        /* Make it the reference for the close button */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        /* Optional: Add shadow for better visibility */
    }

    .Title-Popup-Post {
        align-items: left;
        font-size: 18px;
        font-weight: 500;
    }

    .post-textbox {
        width: 100%;
        padding: 10px;
        overflow-y: auto;
        font-size: 16px;
        white-space: pre-wrap;
        margin-top: 20px;
        border-radius: 8px;
        position: relative;
        margin-bottom: 10px;

    }



    .post-textbox:focus {
        outline: none;
        /* Ensure no outline appears when focused */
        border: none;
        /* Keep the border consistent */
    }

    .post-textbox::before {
        content: attr(data-placeholder);
        /* Use the placeholder text */
        color: #aaa;
        /* Placeholder text color */
        position: absolute;
        pointer-events: none;
        /* Prevent interaction with the placeholder */
        left: 10px;
        top: 10px;
    }

    .post-textbox:focus::before,
    .post-textbox:not(:empty)::before {
        content: '';
        /* Hide placeholder when focused or content exists */
    }


    .max-char-limit {
        margin-top: 10px;
    }

    .one-line {
        position: relative;
    }

    .one-line i {
        font-size: 20px;
        position: absolute;
        margin-top: 10px;
        right: 0;
    }

    .one-line i:hover {
        color: #8d8d8d;
    }

.sidest-left, .sidest-right {
overflow: hidden;
position: relative;
}





    .image-container {
text-align: left; /* Aligns the contents of the div to the left */
}

.image-post-popup {

max-height: 150px;
height: auto; /* Maintain aspect ratio */
width: auto;
display: block;
margin: 0; /* Remove any centering */
object-fit: contain; /* Prevent distortion */
}

.rounded-button {
        background-color: #f1f1f1;
        color: black;
        border: none;
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        border-radius: 8px;
        transition: background-color 0.3s;
        margin-top: 20px;
    }

    .rounded-button:hover {
        background-color: #EFEEEE;
    }

    .rounded-button:disabled {
        background-color: #d3d3d3;
        color: #a9a9a9;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .popup-close {
        position: absolute;
        top: 5px;
        right: 10px;
        margin-right: 5px;
        ;
        font-size: 35px;
        cursor: pointer;
        color: #888;
    }

.vertical-line {
top: 0;
bottom: 0;
width: 2px; /* Adjust the width of the line */
background-color: #f1f1f1; /* Line color */
transform: translateX(-50%);
}

.post-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    min-width: 150px;
}

.post-dropdown.active {
    display: block;
}

.post-dropdown button {
    display: block;
    width: 100%;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
}

.post-dropdown button:hover {
    background: #f5f5f5;
}

.post-bottom-button, .post-bottom-info {
  background: #F2F2F2;
  color: black;
  border-radius: 5px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 5px; /* Adds spacing between icon and text */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.post-bottom-button:hover {
  transform: rotate(5deg) scale(1.05);
  opacity: 0.9;
}

.post-bottom-button:active {
  transform: scale(0.95);
}

html, body {
    height: 100%; /* Ensure body takes full height */
    margin: 0; /* Remove default margin */
}

html, body {
    height: 100%; /* Ensure body takes full height */
    margin: 0; /* Remove default margin */
}

/* For screens smaller than 768px */
@media (max-width: 768px) {
    /* Main content area */
    .main-content {
        padding-bottom: 60px; /* Space for the floating icons at the bottom */
        height: calc(100vh - 60px); /* Make content fit above the icons */
        overflow-y: auto; /* Allow scrolling if content is long */
    }

    /* Sidebar (fixed at the bottom of the screen) */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px; /* Adjust height for sidebar */
        display: flex;
        justify-content: space-around; /* Space out icons horizontally */
        padding: 10px 0;
        z-index: 1000; /* Ensure it stays on top */
    }

    .sidebar ul {
        display: flex; /* Ensure the list displays in a row */
        padding: 0; /* Remove default padding */
        margin: 0; /* Remove default margin */
    }

    .sidebar li {
        list-style: none; /* Remove default list style */
        position: relative; /* For positioning the separator */
        font-size: 0px;
    }

.sidebar li span {
    font-size: 16px !important;
}



    /* Floating profile icon */
    .profile-icon {
        position: fixed;
        bottom: 10px;
        left: 10px;
        font-size: 24px;
        color: white;
        background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
        padding: 10px;
        border-radius: 50%;
        z-index: 1100; /* Ensure it's on top */
    }

    .page-logo {
        display: none;
    }

    /* Floating post button icon */
    .post-button-icon {
        position: fixed;
        bottom: 10px;
        right: 10px;
        font-size: 24px;
        color: white;
        background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
        padding: 10px;
        border-radius: 50%;
        z-index: 1100; /* Ensure it's on top */
    }

    /* Make sure the normal profile and post links are hidden on mobile */
    .profile, .post-btn {
        display: none;
    }
}

/* For larger screens above 768px */
@media (min-width: 769px) {
    /* Show normal profile and post on larger screens */
    .profile, .post-btn {
        display: flex;
    }

    /* Hide the floating profile and post buttons on larger screens */
    .profile-icon, .post-button-icon {
        display: none;
    }
}
