body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #0f1419;
  }
  
  .container {
    display: grid;
    grid-template-columns: 250px 1fr 350px;
    max-width: 1200px;
    margin: 0 auto;
    border-left: 1px solid #ebeef0;
    border-right: 1px solid #ebeef0;
  }
  
  .sidebar-left {
    border-right: 1px solid #ebeef0;
    padding: 20px;
  }
  
  .sidebar-logo {
    margin-bottom: 20px;
  }
  
  .sidebar-logo img {
    width: 48px;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: column;
  }
  
  .nav-item {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #0f1419;
    font-weight: 600;
    font-size: 18px;
  }
  
  .nav-item:hover {
    background-color: #f2f2f2;
  }
  
  .nav-item.active {
    color: #ee83b9;
  }
  
  .tweet-btn {
    margin-top: 20px;
    background-color: #ee83b9;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
  }
  
  .tweet-btn:hover {
    background-color: #f93da1;
  }
  
  .feed {
    border-right: 1px solid #ebeef0;
  }
  
  .feed-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid #ebeef0;
    padding: 15px;
    z-index: 100;
  }
  
  .feed-header h2 {
    font-size: 20px;
    font-weight: 700;
  }
  
  .tweet-composer {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #ebeef0;
  }
  
  .tweet-composer .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
  }
  
  .tweet-composer input {
    width: 100%;
    border: none;
    font-size: 18px;
    outline: none;
    color: #0f1419;
  }
  
  .tweet {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #ebeef0;
  }
  
  .tweet .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
  }
  
  .tweet-content {
    flex: 1;
  }
  
  .tweet-header {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 15px;
    margin-bottom: 5px;
  }
  
  .user-name {
    font-weight: 600;
  }
  
  .user-handle {
    color: #536471;
    font-weight: 400;
  }
  
  .tweet-text {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .tweet-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    width: 100%;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    left: -30px;
  }
  
  .tweet-actions span {
    cursor: pointer;
    padding: 8px;
  }
  
  .tweet-actions span:hover {
    opacity: 0.7;
  }
  
  .sidebar-right {
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
  
  .search-box input {
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    border: none;
    background-color: #ebeef0;
    margin-bottom: 20px;
    outline: none;
  }
  
  .trends, .who-to-follow {
    background: #f7f9fa;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .trends h3, .who-to-follow h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .trend-item, .follow-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }
  
  .trend-category {
    font-size: 13px;
    color: #536471;
  }
  
  .trend-title {
    font-weight: 600;
    font-size: 15px;
  }
  
  .trend-tweets {
    font-size: 13px;
    color: #536471;
  }
  
  .follow-item {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  
  .follow-item .avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .follow-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .follow-info .user-name {
    font-size: 14px;
    font-weight: 600;
  }
  
  .follow-info .user-handle {
    font-size: 13px;
    color: #536471;
  }
  
  .follow-btn {
    background-color: #0f1419;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
  }
  
  .follow-btn:hover {
    background-color: #ee83b9;
  }
  
  .show-more {
    text-decoration: none;
    color: #ee83b9;
    font-size: 14px;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 13px;
    color: #536471;
    margin-top: 20px;
  }
  
  .footer-links a {
    color: #536471;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 5px;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  .footer-links p {
    font-size: 13px;
    color: #536471;
    margin-top: 10px;
  }

  .tweet-images {
    margin-top: 10px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    z-index: 1;
  }
  
  .tweet-image {
    width: auto;
    max-width: 100%;
    max-height: 510px;
    border-radius: 16px;
    object-fit: contain;
  }
  
  /* For multiple images */
  .tweet-images.multiple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    border-radius: 16px;
    overflow: hidden;
  }
  
  .tweet-images.multiple .tweet-image {
    width: 100%;
    height: 360px; /* Fixed height for consistent grid */
    object-fit: cover; /* This will crop the image to fill the space */
    border-radius: 0; /* Remove individual image border radius */
    margin: 0;
  }
  
  /* When there are exactly 2 images */
  .tweet-images.multiple:has(img:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tweet-media {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    z-index: 1;
  }
  
  .tweet-video {
    width: auto;
    max-width: 100%;
    max-height: 510px;
    border-radius: 16px;
    background-color: #000;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
  }

  .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }

  #modalImage {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: auto;
  }

  .close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
  }

  /* Make tweet images clickable */
  .tweet-image {
    cursor: pointer;
  }

  .verified-badge {
    width: 20px;
    height: 20px;
    margin: 0 0px;
    vertical-align: middle;
    display: inline-block;
    background-color: transparent;
    object-fit: contain;
  }

  .tweet-media-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
  }

  .media-items {
    display: flex;
    width: 150%;
    gap: 2px;
    transition: transform 0.3s ease;
  }

  .media-items img, 
  .media-items video {
    width: calc(33.333% - 2px);
    flex-shrink: 0;
    object-fit: cover;
  }

  /* Round the outer corners of visible items */
  .media-items > * {
    border-radius: 0;  /* Remove all rounded corners by default */
  }

  /* Only round the outer corners of visible items */
  .media-items > *:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .media-items > *:nth-child(2) {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  /* When slid to second position, adjust rounded corners */
  .tweet-media-carousel[data-index="1"] .media-items > *:nth-child(2) {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .tweet-media-carousel[data-index="1"] .media-items > *:nth-child(3) {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .prev { 
    left: 10px; 
    display: none;  /* Hide initially */
  }

  .next { 
    right: 10px;
  }

  /* Show prev button when not on first slide */
  .tweet-media-carousel[data-index="1"] .prev {
    display: flex;
  }

  /* Hide next button on last slide */
  .tweet-media-carousel[data-index="1"] .next {
    display: none;
  }

  .carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
  }

  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
  }

  .dot.active {
    background: white;
  }

  .poll-container {
    border: 1px solid #ebeef0;
    border-radius: 16px;  /* Increased radius to match Twitter */
    padding: 12px;
    margin: 10px 0;
    background: #f7f9fa;
  }

  .poll-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 8px;  /* Added horizontal padding */
    cursor: pointer;  /* Show pointer on hover */
    transition: background-color 0.2s;  /* Smooth hover effect */
  }

  .poll-option:hover {
    background-color: rgba(0, 0, 0, 0.03);  /* Subtle hover effect */
  }

  .poll-option:not(:last-child) {
    border-bottom: 1px solid #ebeef0;
  }

  .poll-bar {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: #ee83b9;  /* Changed to match your pink theme */
    border-radius: 4px;
    opacity: 0.2;
  }

  .poll-option-text {
    position: relative;
    font-size: 15px;
    margin: 0 10px;
    z-index: 1;
    color: #0f1419;
    flex: 1;
    font-weight: 400;
  }

  .poll-percentage {
    position: relative;
    font-size: 15px;
    color: #536471;
    z-index: 1;
    margin-left: 10px;
    font-weight: 600;  /* Made percentage bold */
  }

  .poll-info {
    font-size: 13px;
    color: #536471;
    margin-top: 12px;
    text-align: left;
    padding-top: 8px;
    border-top: 1px solid #ebeef0;  /* Added separator line */
  }