
    @import url('https://fonts.googleapis.com/css2?family=Enriqueta:wght@400;500;600;700&display=swap');

    :root {
        --accent-color: rgb(48, 195, 182);
        --accent-hover: rgb(38, 181, 168);
        --accent-bg: #f0f9ff;
    }

    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    body {
        font-family: 'Inter', sans-serif;
        background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    }

    .logo {
        font-family: 'Enriqueta', serif;
    }

    .feed-container {
        min-height: calc(100vh - 4rem);
    }

    .experts-label {
      font-size: 1.25rem;
      margin-bottom: 1.5rem;
      opacity: 0.9;
    }

    .experts-avatars {
      display: flex;
      justify-content: center;
      gap: -10px;
      margin-left: -10px;

    }
    .experts-avatars:hover {


    }


    .avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 3px solid canvas;
      background-size: cover;
      background-position: center;
      margin-left: -10px;
      transition: transform 0.2s;
      filter: grayscale(.5) blur(0px); 
    }

    .avatar:hover {
      transform: scale(1.1);
      z-index: 1;
       filter: none; 
    }
    .institutions-logos .logo-medium {
      height: 50px;
    }

    .institutions-logos .logo-small {
      height: 40px;
    }
    .avatar.plus-more {
      background: var( --accent-color);
      display: grid;
      place-items: center;
      color: white;
      font-weight: 600;
      font-size: 0.9rem;
      filter: none !important; 
    }
    .post-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .post-card:hover {

        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
        border-color: rgba(48, 191, 182, 0.2);
    }

    .sidebar-item {
        transition: all 0.2s ease;
        position: relative;
    }

    .sidebar-item.active {
        background: linear-gradient(135deg, rgba(48, 191, 182, 0.1) 0%, rgba(48, 191, 182, 0.05) 100%);
        color: var(--accent-color);
        font-weight: 600;
    }



    .sidebar-item:hover:not(.active) {
        background: rgba(0, 0, 0, 0.02);

    }

    .digest {
        background: url('./bg1.jpg');
        position: relative;
        overflow: hidden;
    }

    .digest::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: pulse 4s ease-in-out infinite;
    }

.assistant {
    background: url('./bg2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}



    @keyframes pulse {
        0%, 100% { transform: scale(1); opacity: 0.5; }
        50% { transform: scale(1.1); opacity: 0.8; }
    }

    .avatar {
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .avatar:hover {

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.2);
        background-clip: padding-box;
    }

    .glass-effect {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .tag-badge {
        transition: all 0.2s ease;
    }

    .tag-badge:hover {

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .btn-primary {
        background: var(--accent-color);
        transition: all 0.3s var(--ease-out);
        box-shadow: 0 1px 3px rgba(15, 118, 110, 0.2), 0 4px 12px rgba(15, 118, 110, 0.08);
        font-weight: 600;
        letter-spacing: -0.01em;
        position: relative;
        overflow: hidden;
    }

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        background: var(--accent-hover);
        box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25), 0 8px 20px rgba(15, 118, 110, 0.12);

    }

    .btn-primary:active {
        transform: translateY(0);
    }


    .search-input {
        transition: all 0.3s ease;
    }

    .search-input:focus {
        box-shadow: 0 0 0 3px rgba(48, 195, 182, 0.1);
    }

    .curator-card {
        padding: 0.1rem;
        background: white;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.1rem;
    }

    .curator-card img {
        width: 32px;
        height: 32px;
    }

    .curator-card h4 {
        font-size: 0.875rem; /* text-sm */
        line-height: 1.2;
    }

    .curator-card .text-xs {
        font-size: 0.7rem;
    }

    /* Smaller rank badges */
    .curator-card .w-8 {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    @media (max-width: 768px) {
        .feed-container {
            min-height: calc(100vh - 8rem);
        }
    }

    .gradient-border {
        position: relative;
    }

    .gradient-border::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;

        background: #30c3b6;
    }
    .markdown-content table {
        border-collapse: collapse;
        width: 100%;
        margin: 1em 0;
    }

    .markdown-content th,
    .markdown-content td {
        border: 1px solid #e5e7eb;
        padding: 0.5em;
        text-align: left;
    }

    .markdown-content th {
        background-color: #f3f4f6;
        font-weight: 600;
    }

    .markdown-content code {
        background-color: #f3f4f6;
        padding: 0.2em 0.4em;
        border-radius: 3px;
        font-size: 0.9em;
    }
    .comments-section {
        border-top: 1px solid #e5e7eb;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .comment-box {
        background: #f9fafb;
        border-radius: 0.5rem;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .comment-author {
        font-weight: 600;
        font-size: 0.875rem;
        color: #1f2937;
    }

    .comment-time {
        font-size: 0.75rem;
        color: #6b7280;
    }

    .comment-content {
        font-size: 0.875rem;
        color: #374151;
        margin-top: 0.5rem;
    }

    .comment-input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        resize: vertical;
        min-height: 80px;
    }

    .comment-input:focus {
        outline: none;
        border-color: #30c3b6;
        ring: 2px;
        ring-color: rgba(48, 195, 182, 0.2);
    }
    /* DM Styles */
    .conversation-item {
        transition: all 0.2s ease;
    }

    .conversation-item:hover {
        background: #f9fafb;
    }

    .conversation-item.active {
        background: #f0f9ff;
        border-left: 3px solid #30c3b6;
    }

    .message-bubble {
        max-width: 70%;
        word-wrap: break-word;
    }

    .message-bubble.sent {
        background: linear-gradient(135deg, #30c3b6 0%, #26aba2 100%);
        color: white;
        border-radius: 18px 18px 4px 18px;
        margin-left: auto;
    }

    .message-bubble.received {
        background: #f3f4f6;
        color: #1f2937;
        border-radius: 18px 18px 18px 4px;
    }

    #messageInput {
        max-height: 120px;
    }
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.markdown-content h1 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.25rem;
}

.markdown-content h3 {
    font-size: 1.1rem;
}

.markdown-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.markdown-content ul,
.markdown-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content strong {
    font-weight: 600;
    color: #111827;
}

.markdown-content code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}
/* Mobile-specific adjustments */
@media (max-width: 768px) {
    #dmModal #conversationsList {
        transition: transform 0.3s ease-in-out;
    }

    #dmModal #activeConversation.show-mobile {
        display: flex !important;
    }

    #dmModal #conversationsList.hide-mobile {
        display: none;
    }

    /* Ensure textarea doesn't cause layout issues on mobile */
    #messageInput {
        max-height: 120px;
    }
}

/* Better scrolling on mobile */
#messagesContainer {
    -webkit-overflow-scrolling: touch;
}

/* Conversation list items styling */
.conversation-item {
    @apply p-3 md:p-4 border-b border-gray-200 hover:bg-gray-100 cursor-pointer transition-colors;
}

.conversation-item.active {
    @apply bg-blue-50 border-l-4 border-l-primary;
}

/* Message bubbles */
.message-bubble {
    @apply max-w-[85%] md:max-w-[70%] rounded-lg px-3 py-2 md:px-4 md:py-2;
}

.message-bubble.sent {
    @apply bg-primary text-white ml-auto;
}

.message-bubble.received {
    @apply bg-gray-200 text-gray-900;
}