
.new-chat-btn {
  text-align: right;
  border: none;
}

.new-chat-btn:hover {
  background-color: #14B8A6;
  color: #FFFFFF;
  border: none;
  text-align: right;
}
.new-chat-btn:hover:active {
  background-color: #0d9186 !important;
} 

.sidebar-heading {
  color: #7d6c6c;
  font-size: 0.85rem;
  font-weight: 600;
  padding-right: 0.5rem;
  padding-top: 1rem;
  margin: 0rem;   /* margin make conflict white soace in night mode, use padding instead */
}



.conversation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: #1F2937;
  text-align: right;
  text-decoration: none;
}

.conversation-item:hover {
  background-color: #E5E7EB;
}

.conversation-item.active {
  background-color: #e9ecef;
  font-weight: 500;
}

.conversation-item i {
  font-size: 0.9rem;
  color: #6c757d;
}

.rotate-fixer {
    flex: 0 0 20%; /* Don't grow, don't shrink, 20% width */
    min-width: 0;
    height: 100%;
    overflow: hidden; /* Container shouldn't scroll */
    padding-top: 35px;
    /* اسکرول‌بار باریک */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.4);
}
.sidebar-container {
    flex: 0 0 20%;
    max-width: 20%;
    height: 100%;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 8px;
    margin: 0px;
    
}
inmobile-icon-small {
}

{% if is_image_background %}
.sidebar-container {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
}
{% endif %}


/* ✅ Mobile layout override */
@media (max-width: 767.98px) {
.conversation-item {
  display: flex;
  font-size: 11px !important;
  align-items: center;
  gap: 3px;
  padding: 0.5rem 0 0.5rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: #1F2937;
  text-align: right;
  text-decoration: none;
}

.conversation-item i {
  font-size: 0.9rem;
  color: #6c757d;
}

.inmobile-icon-small {
    font-size: 10px !important; /* Adjust this value to your needs */
    padding: 0px !important;
    margin: 0px !important;
}
}