/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--shadow-strong);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.sidebar-header h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E6EDFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.01em;
}

.sidebar-header small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar-button {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 16px;
    margin: 8px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.0625rem;
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.005em;
}

.sidebar-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 8px 32px rgba(107, 126, 232, 0.3), 
                0 0 20px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
}

.sidebar-button i {
    margin-right: 10px;
}

.conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.conversation-item {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    font-size: 0.9rem;
    border: 1px solid transparent;
    letter-spacing: 0.005em;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.conversation-item:active {
    font-weight: 700;
}

.conversation-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
    color: #1A1B3A;
    font-weight: 700;
    border: 1px solid rgba(107, 126, 232, 0.4);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.about-link:hover {
    opacity: 1 !important;
    color: var(--primary-light) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 100vh;
        position: fixed;
        left: -100%;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.show {
        left: 0;
    }
}